Tracking Agents
Associate operations with specific named agents
AgentOps automatically tracks LLM interactions in your application. For more detailed tracking, especially in multi-agent systems, you can use additional features to associate operations with specific agents.
Basic Agent Tracking
For simple applications, AgentOps will automatically track your LLM calls without additional configuration:
Advanced: Using the Agent Decorator
For more structured tracking in complex applications, you can use the @agent
decorator to explicitly identify different agents in your system:
If you don’t specify a name, the agent will use the class name by default:
Dashboard Visualization
All operations are automatically associated with the agent that originated them. Agents are given a name which is what you will see in the dashboard.
Operations are labeled with the name of the Agent that originated them
Best Practices
-
Start Simple: For most applications, just using
agentops.init()
is sufficient. -
Use Decorators When Needed: Add the
@agent
decorator when you need to clearly distinguish between multiple agents in your system. -
Meaningful Names: Choose descriptive names for your agents to make them easier to identify in the dashboard.