OpenAI Agents SDK
When installed with the openai-agents
extra,
the Braintrust SDK provides a tracing.TracingProcessor
implementation
that sends the traces and spans from the OpenAI Agents SDK to Braintrust.
The constructor of BraintrustTracingProcessor
can take a braintrust.Span
, braintrust.Experiment
, or braintrust.Logger
that serves as the root under which all spans will be logged.
If None
is passed, the current span, experiment, or logger
will be selected exactly as in braintrust.start_span
.
The Agents SDK can also be used to implement a task
in an Eval
,
making it straightforward to build and evaluate agentic workflows: