@assemblyline-agents/pi

中文文档
10.5.2发布于 2026/11/03MITTypeScriptES Module近 30 天下载 2324

Canonical Pi agent loop for Assembly Line behind the internal AgentHarness runtime contract.

原始使用文档
文档目录3 节
  1. Install
  2. Part of Assembly Line
  3. License

@assemblyline-agents/pi

The canonical Pi agent loop for Assembly Line, packaged behind the framework's internal AgentHarness runtime contract.

It adapts the Pi agent engine (@earendil-works/pi-agent-core / @earendil-works/pi-ai) to Assembly Line's harness interface: tool descriptors, continuations, retries, transcript management, media inputs, message phases, and normalized events. It starts with no model providers and loads only the packages selected and frozen in the agent manifest.

The runtime owns tool-output limits and durable full-result retrieval. Pi preserves its model-facing result envelopes, including read_tool_result references, without applying a second 8,000-character cap. The obsolete boundModelOutput export has been removed from both Pi and core.

Before every provider request, the harness retains only the two newest image-bearing tool results (subject to an 8 MiB history budget) and replaces older images with a small marker. Stale image references are also removed from tool-detail metadata. User-provided images remain intact. Raw tool outputs remain in durable runtime records, while continuations store the same bounded model-facing transcript. This keeps long computer-use runs from resending every prior screenshot and growing input cost and request size on each action.

Model plugins own provider registration, discovery, authentication, request payload semantics, embeddings, response accounting, reconciliation, billing mode, and deployment requirements. Pi contains no providers/all catalog and no OpenRouter, OpenAI, or Codex branches. The Assembly Line runtime uses this provider-neutral harness to drive agent turns; it is included automatically with the umbrella @assemblyline-agents/sdk package.

Install

npm install @assemblyline-agents/pi

Part of Assembly Line

This package is part of Assembly Line, a vendor-neutral, filesystem-first framework for durable AI agents. See the developer documentation in docs/developers/ for setup, agent authoring, and deployment guides.

License

MIT

版本与发布记录

@assemblyline-agents/pi 共发布 70 个版本,首次发布于 2026/07/31;过去 12 个月发布了 70 个版本。

版本发布日期距今
10.5.2latest2026/11/034 天前
10.5.12026/11/016 天前
10.5.02026/11/017 天前
10.4.22026/11/017 天前
10.4.12026/11/017 天前
10.4.02026/10/011 个月前

其他发布通道:next → 0.1.0。

关于 @assemblyline-agents/pi 的常见问题

@assemblyline-agents/pi 是什么?

Canonical Pi agent loop for Assembly Line behind the internal AgentHarness runtime contract.

如何安装 @assemblyline-agents/pi?

在项目目录运行 npm install @assemblyline-agents/pi,或使用 pnpm add / yarn add / bun add。

@assemblyline-agents/pi 支持 TypeScript 吗?

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

@assemblyline-agents/pi 支持 ESM 还是 CommonJS?

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

@assemblyline-agents/pi 需要什么版本的 Node.js?

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

@assemblyline-agents/pi 可以商用吗?

@assemblyline-agents/pi 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@assemblyline-agents/pi 的下载量有多少?

根据 npm 官方下载统计,@assemblyline-agents/pi 在 2026/10/07 – 2026/11/05 这 30 天内被下载 2,324 次,日均约 77 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@assemblyline-agents/pi 还在维护吗?

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