页面加载中...
一站式 Agent 开发框架,原生支持 MCP 协议全特性(含 Sampling 和 Elicitations)。声明式语法定义 Agent,CLI 交互式调试,支持 Anthropic/OpenAI/Google/Ollama 等多种模型。
首个完整支持 MCP 协议全特性(含 Sampling 和 Elicitations)的 Agent 开发框架。
Fast-Agent 是一个灵活的 LLM 交互框架,特别适合作为编码 Agent、开发工具包、评估或工作流平台使用。
核心亮点:
@fast.chain 将多个 Agent 串联成工作流# 推荐:使用 uv 安装 uv pip install fast-agent-mcp # 或直接运行(无需安装) uvx fast-agent-mcp@latest -x # 安装到系统 uv tool install -U fast-agent-mcp
from fast_agent import FastAgent fast = FastAgent("Agent Example") @fast.agent( instruction="Given an object, respond only with an estimate of its size." ) async def main(): async with fast.run() as agent: await agent.interactive()
@fast.agent("url_fetcher", "Given a URL, provide a comprehensive summary", servers=["fetch"]) @fast.agent("social_media", "Write a 280 character social media post for any given text.") @fast.chain(name="post_writer", sequence=["url_fetcher", "social_media"]) async def main(): async with fast.run() as agent: await agent.post_writer("http://example.com")
# 连接 stdio MCP Server /connect @modelcontextprotocol/server-everything # 连接 Streamable HTTP Server /connect https://huggingface.co/mcp
官网: https://fast-agent.ai GitHub: https://github.com/evalstate/fast-agent (3.8k stars)
版本
v0.3.0
作者
evalstate
平台
发布时间
2026年4月18日