Skip to main content
Give an agent a read-only ops view of the AgentOS it runs on with AgentOSTools. A worker agent generates real traced activity, then an ops agent reads usage, latency and tool statistics back from the same database and answers questions about the platform.
platform_ops_agent.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as platform_ops_agent.py, then run:
Full source: cookbook/05_agent_os/25_agentos_tools/platform_ops_agent.py