Section 2 · What Agent Observability records

The request and response the SDK captures each time an agent calls an LLM provider, and what that capture includes.

Estimated time: 1 min

What a generation is

A generation is the request and response the SDK captures each time your agent calls an LLM provider. It is the core unit of data in Agent Observability.

What a generation includes

One generation holds the model that was called, the messages in and out, how many tokens the call used, and how long it took. Among the input messages is each tool result, what a tool returned after the agent called it, passed back to the model as an input message.

PartWhat it includes
Model provider and nameFor example, openai/gpt-4o
Input messagesSystem prompt, user messages, and tool results
Output messagesAssistant responses and tool calls
Token usageInput, output, cache read, cache write, and reasoning
TimingRequest start, first token, and completion
Metadata and tagsOptional values you pass on a single generation; they apply to that generation only

Why these parts matter

When you open a conversation in Agent Observability, its detail view shows these same parts for each generation: the input messages, the output messages, the token usage by type, and the timing. Because AI agents are non-deterministic, these parts are what you use to troubleshoot behavioral issues when they produce incorrect answers and to manage costs.