Steps
Steps capture the internal processing of an AI agent, including reasoning (thinking), tool calls, and outputs. They’re optional but provide valuable insight for evaluation.
Structure
Note: The order of steps is automatically inferred from their position in the steps array (0-indexed). You don’t need to specify step_order.
Fields
model_name (optional)
The model used for this step. Defaults to "unknown".
agent_name (optional)
The name of the agent that executed this step. Useful for multi-agent systems to identify which agent and which tools to reference.
thinking (optional)
The model’s internal reasoning or chain-of-thought.
Information about a tool invocation.
The result returned from a tool execution. Can be an object or string.
output_structured (optional)
Structured output data (JSON object).
output_content (optional)
The final text output from this step.
Content Requirement
Each step must have at least one content field: thinking, tool_call, tool_result, output_structured, or output_content.
Common Patterns
Why Use Steps?
Steps enable more detailed evaluation:
- Reasoning Quality: Evaluate if the agent’s thinking is sound
- Tool Selection: Check if the right tools were used
- Error Handling: See how the agent responds to tool failures
- Efficiency: Measure unnecessary steps or redundant tool calls