Iron Gorilla Developers

step

Define one durable step in an agent workflow.

SDK v2026.4.0

Kind: function

Signature

Example
export function step<TInput, TOutput>(name: string, inputSchema: StepSchema<TInput>, outputSchema: StepSchema<TOutput>, fn: (input: TInput) => Promise<TOutput>): StepDefinition<TInput, TOutput>

Remarks

Use steps to separate context gathering, decision-making, and side effects into explicit units of work.

Parameters

  • name: string
  • inputSchema: schema describing step input
  • outputSchema: schema describing step output
  • fn: async function implementing the step

On this page