最新资讯
dev.to 我们在 DolphinBench 上测试记忆检索:纯关键词搜索暴露了自身回归 dev.to 别再把 Agent 写成 while 循环,把它建模为状态机 bloomberg.com Rightmove 与 Scout24 借 AI 产品应对低迷房市并上调展望 stackoverflow.blog 欢迎来到芯片时代:半导体制造、AI 数据中心与芯片设计的未来 www.youtube.com AI Agent 总犯同样的错:CentralAgent AI 将记忆重构为经验系统 pub.towardsai.net Netflix 科学家建议重采样 LLM 评判:5 次仅将误差棒缩小 13% pub.towardsai.net Jev 作为 LLM 前的静默层:构建提示感知的模型路由器 reddit.com OpenAI 称 Astra 仅满足 10% 安全任务标准 dev.to FreeToken:在自有 GPU 上运行前沿 MoE 模型及其内存需求 dev.to 当 AI Agent 说“完成”时,究竟完成了什么? dev.to 部署 Underdog Bark 3.0 Pro:逐字转写、自定义后端与分块设置 dev.to 为艰难对话构建 AI:五个 Agent、一条安全正则与一位盲评监督者
多元动态
登录 注册
智能体 dev.to · @tercel

为单一 Agent 能力标准构建跨语言 SDK

原文 我的收藏

文章讨论多语言技术栈下 AI Agent 能力模型只存在于单一语言时带来的问题:其他语言重复实现逻辑、校验与错误处理不一致、治理规则只覆盖 Python 部分。作者建议把能力协议作为主产物、语言 SDK 作为实现:定义 wire-level 协议与 schema,规定风险、成本、归属等元数据及 ACL、审批、审计等治理钩子的挂载方式,并让各语言 SDK 共用一致性测试、暴露符合语言习惯的 API、产生一致的运行时行为。

AI推荐理由 提出把能力协议作为主产物、各语言 SDK 作为实现的做法,并给出 wire-level 协议、元数据与治理钩子、统一一致性测试等具体工程要点,对多语言 Agent 平台设计有参考价值;但属于架构观点文章,未提供实现或验证数据。

72

正文

In most real-world systems, “AI agents” sit on top of a polyglot stack: Python for data and ML TypeScript/Node for backend and APIs Rust/Go for performance-sensitive pieces If your capability model only really exists in one language, you end up with: Duplicate logic in other languages Inconsistent validation and error handling Governance rules that only apply to the Python part A more sustainable pattern is to treat the capability protocol as the primary artifact and the language SDKs as implementations. Concretely: Specify a wire-level protocol and schema format. Define how metadata (risk, cost, ownership) and governance hooks (ACL, approvals, audit) attach to a capability. Build SDKs in your target languages that: Use the same conformance tests Expose idiomatic APIs Produce identical runtime behavior Now a capability implemented in Rust can be: Called by a Python-based agent Exposed as an HTTP endpoint by a TypeScript service Invoked via CLI by ops teams …without reinventing validation, approvals, or tracing. If you are designing your own internal runtime, consider starting with the protocol and tests first, and only then layering language-specific ergonomics on top. It is slower upfront but pays off when your stack inevitably becomes polyglot.

来源报道 · 1 篇 · 以下链接均前往原始媒体

← 返回精选动态 原文

更多内容