@ agenticprimitive/orchestration (英语)
部分 代理先导 ——代理应用程序的开源信任底板:可以签名的身份,行为时间检查权限,所有者携带的证据. 开发者工具包 • 妇女 所有软件包
环0 代理管弦乐核心:意图 计划 执行 观察循环 Planner 财务报告和审定财务报表
ToolInvoker 以及基于规则的决定性规划者 第一党的应用程序表示 目标; 这个
软件包 软件包 软件包
名称工具(ADR-0044)。 纯叶:无可运输,无LLM SDK,无链. 具体的LLM捆绑在后面
页:1 Planner 端口进入 @agenticprimitives/orchestration-anthropic。 。 。 .
安装
pnpm add @agenticprimitives/orchestration
快开始
import { runIntent, createRuleBasedPlanner, type ToolSpec } from '@agenticprimitives/orchestration';
const tools: ToolSpec[] = [
{ id: 'get_vault_record', description: 'Read one of the principal’s vault records by recordType.' },
{ id: 'get_pii', description: 'Read the principal’s PII (high sensitivity).' },
];
// Deterministic default planner — goal → tool. No model, no creds.
const planner = createRuleBasedPlanner([
{ match: /profile/, toolId: 'get_vault_record', args: { recordType: 'impact-profile' } },
{ match: /pii|personal/, toolId: 'get_pii' },
]);
const result = await runIntent(
{ goal: 'read my profile' },
{
planner,
tools,
// The invoker is where authority lives — the a2a skill binds this to the task's delegation.
invoke: async (toolId, args) => myMcpCall(toolId, args),
},
);
if (result.outcome === 'completed') console.log(result.result);
概念
Intent——申报目标({ goal, constraints?, context? }),从没有工具名称或调用序列.Planner—— 转出入球的注入端口+被曝光者ToolSpec[]改为 aPlan交换 决定性createRuleBasedPlanner用于LLM适配器而无需触碰回路.ToolInvoker——执行一步的注入端口. 管弦乐核心从没有任何象征, 键,或连锁客户端; 引用者带有链上权威(委托).runIntent——循环:计划 ——执行(与{ $ref }o 观察 o 定界再规划 失败。 关闭失败: 每个错误路径返回 afailedRunResult。 。 。 .
边界
纯花叶. 禁止进口: a2a, (中文(简体) ), mcp-runtime, (中文(简体) ), mcp-protocol, (中文(简体) ), delegation, (中文(简体) ), service-agent,以及任何LLM
SDK(英语:SDK). 见 spec.md + 键 capability.manifest.json。 。 。 .
许可证
麻省理工学院