Skip to main content

Module executor

Module executor 

Source
Expand description

Step executor — reconstructs operations from configs and runs them.

Each step type (shell, HTTP, agent) has its own executor implementing the StepExecutor trait. The execute_step_config function dispatches to the appropriate executor based on the StepConfig variant.

Every executor declares the StepKind it handles via StepExecutor::kind, and execute_step_config derives the span and metric label from that kind. A new step type therefore only has to declare its kind instead of extending a match here.

Structs§

AgentExecutor
Executor for agent (AI) steps.
DecisionExecution
The result of executing a decision step: the typed output plus accounting.
HttpExecutor
Executor for HTTP steps.
ParallelStepResult
Result of a single step within a parallel batch.
ShellExecutor
Executor for shell steps.
StepArtifacts
Which artifacts a step can hand out as ArtifactRef handles.
StepOutput
Result of executing a single step.
StepResult
Enriched result of a completed step, for post-execution inspection.
SubWorkflowOutput
Result of a workflow step.

Enums§

ApprovalOutcome
Decision applied to an approval gate by a StepInterceptor.
HumanInputOutcome
Answer applied to a human input step by a StepInterceptor.

Traits§

StepExecutor
Trait for step executors.
StepInterceptor
Resolves steps without executing them.

Functions§

execute_decision
Execute a decision request against the provider.
execute_step_config
Execute a StepConfig and return structured output.
execute_step_config_intercepted
Execute a StepConfig, letting a StepInterceptor resolve it first.