What Is Captured
- Chat Completions request and response messages
- Responses API input and output text
- Tool call names, IDs, and JSON arguments
- Tool result messages passed back into later turns
- JSON schema response format in invocation parameters
- Model name, finish reason, usage, and token counts
Install
Basic Chat
Tool Calling
The first model call records the assistant tool call. The second model call records the tool result message and the final answer.Structured Outputs
response_format is included in invocation parameters, so you can inspect which
schema constrained the model call.
TypeScript
Responses API
Responses API calls are traced with the same OpenInference attribute families as Chat Completions.TypeScript