aida-agent 运行时总览

aida-agent 运行时总览 由 Archify 生成的架构图。 Clients · Desktop/Web/IM/Eval · 架构组件 Clients Desktop/Web/IM/Eval Hono Gateway · Auth · Tenant · SSE · Agent Runtime(packages/agent) · createApp Hono Gateway Auth · Tenant · SSE createApp SessionBinding · Unified Entry · Router · Agent Runtime(packages/agent) · Capability SessionBinding Unified Entry · Router Capability OrchestratorRuntime · resolveAndRun · ReAct · Agent Runtime(packages/agent) · Agent loop OrchestratorRuntime resolveAndRun · ReAct Agent loop Interaction Kernel · 授权 · continuation · Agent Runtime(packages/agent) Interaction Kernel 授权 · continuation BT Agent Harness · advance → outbox · Agent Runtime(packages/agent) · 非 ReAct BT Agent Harness advance → outbox 非 ReAct Fixed Tool Pipeline · Pre · Execute · Post · Agent Runtime(packages/agent) Fixed Tool Pipeline Pre · Execute · Post ExecutionHostRouter · 单一 dispatch · Agent Runtime(packages/agent) ExecutionHostRouter 单一 dispatch Spring Backends · tool-client → HTTP · 架构组件 · Server Spring Backends tool-client → HTTP Server Desktop Host · LocalExecutor · LFV4 · Desktop 宿主侧(跨仓) · 跨仓 Desktop Host LocalExecutor · LFV4 跨仓 Postgres · Run·Msg·Checkpoint · Agent Runtime(packages/agent) Postgres Run·Msg·Checkpoint Audit WAL · primary · secondary · Agent Runtime(packages/agent) Audit WAL primary · secondary /api/chat route resume outbox 交接 tools Server Desktop 存取状态 audit Agent Runtime(packages/agent) Desktop 宿主侧(跨仓)

仓边界

  • • 仓内:agent · tool-client · web · agent-eval
  • • 仓外:aida-desktop / ai-chat;聊天 UI 不在本仓
  • • packages/web 是 Admin,不是聊天 Client

主路径

  • • Gateway → SessionBinding/Entry → resolveAndRun
  • • Fixed Tool Pipeline → ExecutionHostRouter 单一 dispatch
  • • Stores + Audit 是强制持久化依赖

别搅

  • • LocalExecutor ≠ 全局 Agent loop
  • • BT Harness ≠ ReAct;Plugins ≠ Server runtime
  • • V2.1 纯文本切片默认关闭