Skip to content

Persist v0.3.0

Choose a tag to compare

@github-actions github-actions released this 28 May 12:07

概述

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_sales SQL 模板)
  • @persist/mcp-tool-adapter — MCP → ToolDefinition / McpToolExecutor(integration)
  • Tool 契约ToolDefinitionToolExecutorToolExecutionSnapshot、扩展 ChatMessage / RuntimeChunk
  • executeChat §9 双路径 — 无 tool_call 单次 provider;有 tool_call 时 Tool 执行 + 第二次 memory injection + provider #2
  • SqliteInProcessToolExecutor + 独立只读 sales-fixture.db(Sales Demo)
  • ReplaySessionReplay.toolExecutionSnapshots
  • Qwen Function Calling — 流式 tool-call-* + done.providerMetadata.toolCalls

Architecture

  • packages/tool 无 I/O(NFR-TOOL-03);InProcess Executor 落 packages/storage
  • runtime 禁止 import mcp-tool-adapter
  • v0.2 Memory 语义不变(除 bugfix)

已知限制 / 集成说明

  • 默认 API DISqliteInProcessToolExecutor + query_sales Sales fixture(SALES_FIXTURE_DATABASE_URL
  • McpToolExecutor:已在 @persist/mcp-tool-adapter 实现并通过测试;生产 API 未默认接线,可通过替换 ToolExecutor DI 启用
  • Web:SSE 忽略 tool observability / execution chunks;Tool Timeline 未实现(DoD 可选)