@finalai/agent-protocol

中文文档
0.6.1发布于 2026/11/01Apache-2.0TypeScriptES Module

Canonical public agent HTTP and realtime contracts. Import agent-facing schemas and types from /agent-platform; JSON, tolerance, process inspection, and base58 helpers have focused entrypoints.

原始使用文档

@finalai/agent-protocol

Canonical public agent HTTP and realtime contracts. Import agent-facing schemas and types from /agent-platform; JSON, tolerance, process inspection, and base58 helpers have focused entrypoints.

Server responses tolerate additive fields and unknown enum values; request schemas validate what clients send. Supported features include definitions and publication, provider discovery, sessions and approvals, conversations and attachments, schedules, sandbox access, and realtime.

projectId (prj_...) is optional on creates and lists. A create without it uses the API key's parent project (a person's My Work); a list without it returns everything the caller can access, and with it that project and the projects below it.

/device-egress exports workspace egress requests, tolerant lease/status responses, and persisted outer network policy contracts.

版本与发布记录

@finalai/agent-protocol 共发布 13 个版本,首次发布于 2026/10/15;过去 12 个月发布了 13 个版本。

版本发布日期距今
0.6.1latest2026/11/012 天前
0.6.02026/10/313 天前
0.5.02026/10/286 天前
0.4.22026/10/277 天前
0.4.12026/10/2212 天前
0.4.02026/10/2212 天前

关于 @finalai/agent-protocol 的常见问题

@finalai/agent-protocol 是什么?

规范的公共代理HTTP和实时合约。导入面向代理的模式和类型 /agent-platform;JSON、容错、过程检查和base58 helper都有重点入口点。

如何安装 @finalai/agent-protocol?

在项目目录运行 npm install @finalai/agent-protocol,或使用 pnpm add / yarn add / bun add。

@finalai/agent-protocol 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@finalai/agent-protocol 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@finalai/agent-protocol 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=26。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@finalai/agent-protocol 可以商用吗?

@finalai/agent-protocol 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@finalai/agent-protocol 还在维护吗?

最新版本 0.6.1 发布于 2026/11/01(2 天前);至今共发布 13 个版本,其中过去 12 个月发布了 13 个;首次发布于 2026/10/15。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。