Scripts2026年3月31日·1 分钟阅读

Phidata — Build & Deploy AI Agents at Scale

Framework for building, running, and managing AI agents at scale. Memory, knowledge, tools, reasoning, and team workflows. Monitoring dashboard included. 39K+ stars.

TO
TokRepo精选 · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

pip install phidata
from phi.agent import Agent
from phi.model.openai import OpenAIChat
from phi.tools.duckduckgo import DuckDuckGo

agent = Agent(
    model=OpenAIChat(id="gpt-4o"),
    tools=[DuckDuckGo()],
    show_tool_calls=True,
    markdown=True,
)
agent.print_response("What are the top AI news today?", stream=True)

介绍

Phidata (now Agno) is a framework for building, running, and managing AI agents at scale. Create agents with memory, knowledge bases, tool use, structured outputs, and multi-step reasoning. Compose agents into teams for complex workflows. Includes a monitoring dashboard for production observability. 39,000+ GitHub stars, Apache 2.0 licensed.

Best for: Python developers building production AI agents with memory, tools, and team coordination Works with: OpenAI, Anthropic, Google, Ollama, Groq, Together, AWS Bedrock


Key Features

Agents with Memory

Agents remember past conversations and learn from interactions:

agent = Agent(
    model=OpenAIChat(id="gpt-4o"),
    storage=PgAgentStorage(table_name="agents", db_url=db_url),
    add_history_to_messages=True,
)

Knowledge Bases

Add domain knowledge from PDFs, websites, databases, or custom sources:

knowledge = PDFKnowledgeBase(path="docs/", vector_db=PgVector(table="docs"))
agent = Agent(knowledge=knowledge)

50+ Built-in Tools

Web search, file I/O, SQL queries, API calls, email, Slack, GitHub, and more.

Agent Teams

Compose specialized agents into teams with a coordinator:

team = Agent(team=[researcher, writer, editor], instructions="...")

Structured Output

Get typed responses using Pydantic models — not free text.

Monitoring Dashboard

Production dashboard at phidata.app for logs, metrics, and debugging.


FAQ

Q: What is Phidata? A: A Python framework for building AI agents with memory, knowledge bases, tools, reasoning, and team workflows. Includes production monitoring. 39K+ stars, Apache 2.0.

Q: Is Phidata the same as Agno? A: Yes, Phidata was rebranded to Agno. The package phidata continues to work and the GitHub repo is the same.


🙏

来源与感谢

Created by Phidata. Licensed under Apache 2.0. phidatahq/phidata — 39,000+ GitHub stars

相关资产