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.
Trace Agno functionalities with Netra auto-instrumentation. Monitor agents, teams, workflows, tool calls, and interactions.
Installation
Install both the Netra SDK and Agno:
pip install netra-sdk agno
Usage
Initialize the Netra SDK to automatically trace all Agno operations:
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?")
Getting Started
Trace basic team execution:
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?")
Workflow
Trace workflow invocation in Agno:
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.")