Step Types Overview
AgentStep
Runs an agent. UseinputFrom to derive the agent’s input from state.
Maps state to the agent’s input string. If omitted, the full state is JSON-stringified. Agent output is stored as
state[stepName + “_output”].Example
FunctionStep
Runs custom logic. Return a partial state object to merge into the workflow state.Async function. Receives current state and RunContext. Return partial state to merge.
Example
ConditionStep
Branches based on a condition. Runs nested steps only whencondition(state) is true.