OpenAI Agents SDK
The Braintrust SDK provides trace processors for the OpenAI Agents SDK that send traces and spans to Braintrust for monitoring and evaluation.
For TypeScript, install the Braintrust OpenAI Agents integration package:
pnpm add braintrust @braintrust/openai-agents @openai/agents
The constructor of the tracing processor can take a braintrust.Span
, braintrust.Experiment
, or braintrust.Logger
that serves as the root under which all spans will be logged.
If not provided, the current span, experiment, or logger
is selected automatically.
The Agents SDK can also be used to implement a task
in an Eval
,
making it straightforward to build and evaluate agentic workflows: