Catalyst instruments the OpenAI SDK in both TypeScript and Python. Initialize tracing before constructing clients so the OpenAI prototypes are patched before application calls start.Documentation Index
Fetch the complete documentation index at: https://docs.inference.net/llms.txt
Use this file to discover all available pages before exploring further.
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
agentSpan() / agent_span(), Catalyst adds
the active agent.id, agent.name, and agent.role to the OpenAI child LLM
spans. This is the preferred pattern for grouping OpenAI-backed agents in the
Agents dashboard.
Install
Basic Chat
OpenAI Inside An Agent
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