Skip to main content
Trace an agent with a knowledge base in AgentOS. The traces capture knowledge searches, model calls, and all agent operations.
1

Create a Python file

agent_with_knowledge_tracing.py
2

Set up your virtual environment

3

Install dependencies

4

Export your API keys

5

Start PostgreSQL with pgvector

Make sure you have PostgreSQL running with pgvector extension. You can use Docker:
6

Run AgentOS

Your AgentOS will be available at http://localhost:7777. View traces in the AgentOS dashboard.