Expand description
WorkflowContext — execution context for dynamic workflows.
Provides step execution methods that automatically persist results to the
store. Each call to shell,
http, agent, or
workflow creates a step record, executes the
operation, captures the output, and returns a
StepOutput that the next step can
reference.
§Examples
use ironflow_engine::context::WorkflowContext;
use ironflow_engine::config::{ShellConfig, AgentStepConfig};
use ironflow_engine::error::EngineError;
let build = ctx.shell("build", ShellConfig::new("cargo build")).await?;
let review = ctx.agent("review", AgentStepConfig::new(
&format!("Build output:\n{}", build.stdout())
)).await?;Structs§
- Agent
Reply - What an agent step answered, with the metadata the provider attached to it.
- Workflow
Context - Execution context for a single workflow run.
Constants§
- PARENT_
RUN_ ID_ LABEL - Label set on every child run of a sub-workflow step, holding the id of the run that started it. Defined by the store, which follows it to list the descendants of a run; re-exported here where workflow code looks for it.