Persist v0.3.0
概述
Persist v0.3.0 — Tool-Augmented Execution Runtime
在 v0.2 Memory-aware Runtime 上引入 Single Tool Call Runtime:Provider Function Calling + Runtime-controlled ToolExecutor + ToolExecutionSnapshot 可审计 Replay。
Added
@persist/tool— 纯 policy(单 call 限制、多 call 截断、payload 截断、query_salesSQL 模板)@persist/mcp-tool-adapter— MCP →ToolDefinition/McpToolExecutor(integration)- Tool 契约 —
ToolDefinition、ToolExecutor、ToolExecutionSnapshot、扩展ChatMessage/RuntimeChunk executeChat§9 双路径 — 无 tool_call 单次 provider;有 tool_call 时 Tool 执行 + 第二次 memory injection + provider #2SqliteInProcessToolExecutor+ 独立只读sales-fixture.db(Sales Demo)- Replay —
SessionReplay.toolExecutionSnapshots - Qwen Function Calling — 流式
tool-call-*+done.providerMetadata.toolCalls
Architecture
packages/tool无 I/O(NFR-TOOL-03);InProcess Executor 落packages/storageruntime禁止 importmcp-tool-adapter- v0.2 Memory 语义不变(除 bugfix)
已知限制 / 集成说明
- 默认 API DI:
SqliteInProcessToolExecutor+query_salesSales fixture(SALES_FIXTURE_DATABASE_URL) McpToolExecutor:已在@persist/mcp-tool-adapter实现并通过测试;生产 API 未默认接线,可通过替换ToolExecutorDI 启用- Web:SSE 忽略 tool observability / execution chunks;Tool Timeline 未实现(DoD 可选)