tracing=True and all agent runs, model calls, and tool executions are automatically captured.
1
Create a Python file
2
Add the following code to your Python file
basic_agent_tracing.py
3
Create a virtual environment
Open the
Terminal and create a python virtual environment.4
Install libraries
5
Export your OpenAI API key
6
Run AgentOS
http://localhost:7777. View traces in the AgentOS dashboard.