Skip to content

Step

Step = { text: string; type: "thinking"; } | { text: string; type: "thinking_summary"; } | { role: "assistant"; text: string; type: "text"; } | { durationMs: number; id: string; isError: boolean; name: string; output: string; params: Record<string, unknown>; type: "tool_call"; } | { index: number; type: "iteration_start"; } | { summary: string; tokensAfter: number; tokensBefore: number; type: "compaction"; } | { details?: unknown; message: string; recoverable: boolean; source: "provider" | "library"; type: "error"; }

Defined in: src/types.ts:161

A single step in the agent’s turn. Steps are the ordered record of everything the agent did.