Skip to main content
The Agents view in Netra provides a centralized dashboard of all AI agents used in your project. It shows when each agent was first and last active, how many traces it has generated, and which tools it uses.

Viewing Agents

Access the Agents view from Observability → Agents in the Netra dashboard. For each agent, Netra displays:

Agent Actions

Each agent card provides two actions:
  • View Traces - Opens the Traces view filtered to this agent, showing all executions, inputs, outputs, latency, and cost
  • Tools - Opens a modal listing tools invoked by the agent and their call counts

Configuring Agents

Agents are automatically tracked when you use the @agent decorator or create spans with SpanType.AGENT.

Using the Agent Decorator

The @agent decorator is the recommended way to define agents. It automatically creates spans with the correct type and tracks agent activity.

Decorating Agent Classes

You can also decorate entire classes. All public methods will be instrumented as part of the agent.

Manual Agent Spans

For more control, create agent spans manually:

Agent with Tools

Track which tools your agent uses by nesting @task or SpanType.TOOL spans within agent spans:
The Tools modal in the Agents view will show call counts for web-search and summarize-results.

Best Practices

  1. Use descriptive agent names - Names like customer-support-agent or code-review-agent are more useful than agent1
  2. Nest tools within agents - Use @task for tools to track which tools each agent uses
  3. Add custom attributes - Include relevant context like input queries, user intent, or decision outcomes
  4. Use classes for stateful agents - The class decorator tracks all methods as part of the agent

Next Steps

Last modified on March 17, 2026