Skip to main content
The OpenAI Agents SDK lets you build agentic applications powered by OpenAI models. Use LangSmith to trace OpenAI Agents SDK runs, including agent steps, model calls, tool calls, and handoffs.

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

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.