监控

您可以在 app.agno.com 上实时跟踪您的 Agent。

身份验证

通过 agno.com 身份验证,开始监控您的会话。 请查阅身份验证指南,了解如何与 Agno 进行身份验证。

启用监控

通过设置 AGNO_MONITOR=true,为单个 Agent 或所有 Agent 全局启用监控。

为特定 Agent

agent = Agent(markdown=True, monitoring=True)

为所有 Agent 全局设置

export AGNO_MONITOR=true

监控您的 Agent

运行您的 Agent,并在会话页面上查看会话。

1

创建包含示例代码的文件

monitoring.py
from agno.agent import Agent

agent = Agent(markdown=True, monitoring=True)
agent.print_response("Share a 2 sentence horror story")
2

运行您的 Agent

python monitoring.py
3

查看您的会话

app.agno.com/sessions 查看您的会话

遇到问题?请查看我们的故障排除指南

调试日志

想查看 system prompt、用户消息和工具调用吗?

Agno 内置了一个调试器,它将在终端中打印调试日志。在任何 Agent 上设置 debug_mode=True,或在您的环境中设置 AGNO_DEBUG=true

debug_logs.py
from agno.agent import Agent
from agno.models.anthropic import Claude
from agno.tools.yfinance import YFinanceTools

agent = Agent(
    model=Claude(id="claude-sonnet-4-20250514"),
    tools=[YFinanceTools(stock_price=True)],
    instructions="Use tables to display data. Don't include any other text.",
    markdown=True,
    debug_mode=True,
)
agent.print_response("What is the stock price of Apple?", stream=True)

运行 Agent 以在终端中查看调试日志:

python debug_logs.py