Agno

Trace Agno agents, teams, and workflows with Neatlogs (Python).

Wrap an Agno Agent, Team, or Workflow with neatlogs.wrap() and its runs — model calls and tool calls — are captured.

Prerequisites

pip install -U "neatlogs[agno]" agno

Usage

import os
import neatlogs
from agno.agent import Agent
from agno.models.openai import OpenAIChat

neatlogs.init(api_key=os.environ["NEATLOGS_API_KEY"], workflow_name="agno-demo")

agent = neatlogs.wrap(Agent(model=OpenAIChat(id="gpt-4o")))

print(agent.run("In one sentence, what is Agno?").content)

neatlogs.flush()
neatlogs.shutdown()

wrap() accepts an Agent, a Team, or a Workflow. An Agent or Team run becomes an AGENT trace root; a Workflow run becomes a WORKFLOW root. Either way it's created automatically, with nested LLM and TOOL spans — no manual wrapper needed; add one only to group several runs into a single trace.

On this page