Tech
[程序员] 不用 Python 也能搞 AI Agent —— 一个纯 Go 实现的 SDK 和 Agent 平台
之前看到不少人说搞 AI Agent 绑定 Python ,想试试用 Go 能做到什么程度。
起因是 OpenAI 开源了 openai-agents-python ,觉得设计挺好的,就拿当时刚出的 Claude Fable 5 一把梭把核心逻辑移植成了 Go 版本(后来 Fable 5 下线了,后续用 Claude Code 断断续续补完的)。
SDK 在这里: github.com/zzir/agents-go
移植完 SDK 之后顺手写了个完整的 Web Demo ,算是验证 SDK 能不能真正跑起来: agents-server
单二进制部署,内嵌前端,SQLite ,开箱即用。
目前实现的东西:
多 Agent 协作,自动 Handoff 切换
MCP Server 接入( Stdio / Streamable HTTP )
代码沙箱(本地 / Docker / SSH )
输入输出 Guardrails (正则 / 长度限制,支持自定义)
Human-in-the-loop ,工具调用前人工审批
会话分叉 & 置...
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX