docs(mvp): archive session run trace issue

This commit is contained in:
zhuyongxin
2026-07-11 16:46:20 +08:00
parent 3578709896
commit 30d3296043
7 changed files with 49 additions and 15 deletions
+5 -3
View File
@@ -110,10 +110,10 @@ sequenceDiagram
participant H as AgentLoggingHook
participant DB as agent_step
A->>H: before_model(messages, sessionId)
H->>DB: 写入 model_input / step_index / agent_name
A->>H: before_model(messages, sessionId, runId)
H->>DB: 写入 session_id / run_id / model_input / step_index / agent_name
A-->>A: LLM 推理
A->>H: after_model(messages, sessionId)
A->>H: after_model(messages, sessionId, runId)
H->>DB: 回填 model_output / thought / has_tool_call / duration / token_count
```
@@ -126,6 +126,8 @@ sequenceDiagram
- token count。
- Verifier 的 JSON 输出摘要。
新写入必须带 `run_id`;`session_id` 仍保留用于粗粒度排查和历史兼容。
## 5. Tool Invocation 门禁
工具调用记录由 `ToolInvocationRecorder` 和具体工具共同完成。