AI & LLM
AI Agent Run Trace JSON Example
A JSON example of an AI agent execution trace — includes the goal, ordered steps with thoughts, tool calls, observations, and the final answer. Copy-ready for agent logging and debugging.
Field Reference
runIdrequiredstringUnique id for this agent run; used to correlate logs and tracesgoalrequiredstringThe task the agent was asked to accomplishstatusrequiredstringRun outcome: running, completed, failed, or cancelledstepsrequiredarray<object>Ordered reasoning steps; each pairs a thought, an action, and an observation (ReAct style)steps[].action.toolrequiredstringName of the tool invoked in this stepsteps[].observationoptionalobject | nullResult returned by the tool, fed back into the next stepusageoptionalobjectAggregate metrics — tokens, tool-call count, and wall-clock durationVariants
Failed runA trace where a tool errored and the agent stopped.
Common Use Cases
- →Logging and replaying agent runs for debugging and evaluation
- →Displaying an agent's chain-of-thought and tool steps in a UI
- →Auditing which tools an agent called and how many tokens it spent
ai agentagentstracetool callingobservabilityllm
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.
Frequently Asked Questions
Related JSON Examples
AI & LLMLLM Tool / Function CallFunction-calling JSON: a tool definition plus the model's tool_call with arguments.AI & LLMChat Conversation HistoryOrdered messages array with system, user, and assistant roles for LLM chats.AI & LLMAnthropic Claude Messages ResponseClaude Messages API response with content blocks, stop_reason, and token usage.