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.output["stdout"])
)).await?;Structs§
- Workflow
Context - Execution context for a single workflow run.