Skip to main content
The OpenAI Agents SDK lets you build agents powered by OpenAI models. Use LangSmith to trace OpenAI Agents SDK runs, including agent steps, model calls, tool calls, and handoffs.
In an agent-based workspace, create an agent once before sending traces. Use agent addressing to select its identifier and environment. If an integration requires project_name, use the selected environment’s tracer_session_name as a compatibility value.

Installation

Requires Python SDK version langsmith>=0.3.15.
Install LangSmith with OpenAI Agents support:
This installs both the LangSmith library and the OpenAI Agents SDK.

Environment configuration

Sending traces to an agent requires langsmith>=0.14.9.
Shell

Quick start

Integrate LangSmith tracing with the OpenAI Agents SDK by using the OpenAIAgentsTracingProcessor class.
The agent’s execution flow, including spans and their details, is logged to LangSmith.