正在打开每日关注
正在打开每日关注
AG-UI 1.0 以 JSON Schema 和稳定规范标准化 Agent 与前端的双向事件流,新增子代理、元数据、多模态与中断。
Introducing AG-UI 1.0 🪁 The open protocol that connects ANY agent to ANY app, now with a stable spec. AG-UI gives you an entire ecosystem for free. Adopted and supported by Google, Microsoft, Amazon, Oracle, Anthropic, LangChain, Mastra, and more. New in 1.0: → Subagents: expose delegated agent work → Metadata: send data from agent to UI → Multimodality (images, audio, video, docs) → Interrupts → Token usage per run Every SDK is now generated from one schema, so TypeScript, Python and .NET all behave the same. AG-UI 1.0 is fully backwards compatible. Full announcement: https://t.co/DeigmMD8KH
是什么
AG-UI 1.0 是 CopilotKit 推出的 Agent-User Interaction Protocol 的首个稳定版本:一个连接任意 Agent 后端与用户侧应用(Web、移动端、终端、Slack/Teams 等)的开放协议。它由 JSON Schema(定义每个事件的字段)与行为规范(事件顺序、Run 生命周期、错误处理)两部分组成,TypeScript、Python、.NET SDK 均由同一 Schema 生成,保证跨语言行为一致,且完全向后兼容。
核心设计
协议把 Agent 全生命周期抽象为双向事件流:RUN_STARTED → TOOL_CALL_START → TOOL_CALL_RESULT → STATE_DELTA → TEXT_MESSAGE_CONTENT → RUN_FINISHED,任何客户端都能解析,无需为每个框架写定制流式层。1.0 的关键增量包括:子代理事件带独立 subagentRunId,UI 可分卡片并行展示;metadata 支持消息级自定义数据(模型名、trace id);工具结果可携带图片、音频、视频、PDF 等多模态内容;interrupts 让 Run 可暂停等待人工输入;并支持按 Run 统计 token 用量。
关键洞察
文章给出的生态定位很清晰:MCP 解决 Agent 连接工具,A2A 解决 Agent 之间协作,AG-UI 补上 Agent 连接用户界面的第三块拼图。Google、Microsoft、Amazon、Oracle、Anthropic 的采用加上 LangChain、Mastra、Pydantic AI、TanStack 的规范反馈,显示「Agent-UI 事件流标准化」正在成为行业共识;「规范与 Schema 冲突时以 Schema 为准」这类确定性条款是协议工程成熟的标志。
边界与风险
1.0 稳定承诺虽降低了集成风险,但协议由 CopilotKit 主导,长期中立性取决于社区治理;前端侧最成熟的客户端仍是 CopilotKit 自家 SDK,实际落地深度仍需在多框架环境中验证。