> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getnetra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Agno

Trace Agno functionalities with Netra auto-instrumentation. Monitor agents, teams, workflows, tool calls, and interactions.

<img src="https://mintcdn.com/netra/pKiEF3j4ymBFFZpF/images/integration-logos/ai-frameworks/agno.png?fit=max&auto=format&n=pKiEF3j4ymBFFZpF&q=85&s=ca171a9ddcfca9ae6e95a2810c2f60df" alt="Agno" width="531" height="198" data-path="images/integration-logos/ai-frameworks/agno.png" />

## Installation

Install both the Netra SDK and Agno:

<CodeGroup>
  ```bash Python theme={null}
  pip install netra-sdk agno
  ```
</CodeGroup>

## Usage

Initialize the Netra SDK to automatically trace all Agno operations:

<CodeGroup>
  ```python Python theme={null}
  from netra import Netra
  from agno.agent import Agent
  from agno.tools.yfinance import YFinanceTools
  import os

  # Initialize Netra
  Netra.init(
      headers=f"x-api-key={os.environ.get('NETRA_API_KEY')}",
      trace_content=True
  )

  agent = Agent(
      name="Finance Agent",
      model="openai:gpt-5.4",
      tools=[YFinanceTools()],
      instructions="Fetch market data and produce a one-line take.",
  )

  agent.print_response("What's NVDA trading at today?")
  ```
</CodeGroup>

### Getting Started

Trace basic team execution:

<CodeGroup>
  ```python Python theme={null}
  from netra import Netra
  from agno.agent import Agent
  from agno.team import Team
  from agno.tools.yfinance import YFinanceTools
  import os

  # Initialize Netra
  Netra.init(
      headers=f"x-api-key={os.environ.get('NETRA_API_KEY')}",
      trace_content=True
  )

  bull = Agent(
      name="Bull",
      model="openai:gpt-5.4",
      role="Make the case FOR investing.",
      tools=[YFinanceTools()],
  )

  bear = Agent(
      name="Bear",
      model="openai:gpt-5.4",
      role="Make the case AGAINST investing.",
      tools=[YFinanceTools()],
  )

  team = Team(
      name="Investment Committee",
      members=[bull, bear],
      instructions="Hear both sides, then synthesize a balanced recommendation.",
  )

  team.print_response("Should I invest in NVIDIA?")
  ```
</CodeGroup>

### Workflow

Trace workflow invocation in Agno:

<CodeGroup>
  ```python Python theme={null}
  from netra import Netra
  from agno.agent import Agent
  from agno.team import Team
  from agno.tools.yfinance import YFinanceTools
  from agno.workflow import Step, Workflow
  import os

  # Initialize Netra
  Netra.init(
      headers=f"x-api-key={os.environ.get('NETRA_API_KEY')}",
      trace_content=True
  )

  researcher = Agent(
      model="openai:gpt-5.4",
      tools=[YFinanceTools()],
      instructions="Gather raw market data.",
  )

  bull = Agent(model="openai:gpt-5.4", role="Make the case FOR investing.")
  bear = Agent(model="openai:gpt-5.4", role="Make the case AGAINST investing.")

  committee = Team(
      name="Investment Committee",
      members=[bull, bear],
      instructions="Debate the position.",
  )

  writer = Agent(
      model="openai:gpt-5.4",
      instructions="Write a 200-word investment brief.",
  )

  workflow = Workflow(
      name="Stock Research",
      steps=[
          Step(name="Research", agent=researcher),
          Step(name="Debate", team=committee),
          Step(name="Report", agent=writer),
      ],
  )

  workflow.print_response("Analyze NVIDIA for investment.")
  ```
</CodeGroup>
