Sitelet https://github.com/braintrustdata/braintrust-sdk-python/tree/main/examples/openai_agents
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

OpenAI Agents SDK + Braintrust

Calls braintrust.auto_instrument() to install BraintrustTracingProcessor as the SDK's tracing processor, then runs a small Agent via Runner. The trace shows the agent run as a root span with each model call nested underneath.

Run

export BRAINTRUST_API_KEY=...
export OPENAI_API_KEY=...

uv sync
uv run python example.py