feat: 子会话结果增加创建/结束时间戳

- SubSessionResult 新增 CreatedAt / FinishedAt 字段
- manager.Dispatch 在各路径统一设置时间戳:成功/失败/超时

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-06-22 20:31:48 +08:00
parent 8783cadf9b
commit 7e475bdfa6
2 changed files with 11 additions and 3 deletions
@@ -49,7 +49,9 @@ type SubSessionResult struct {
Confidence float64 `json:"confidence"` // 置信度 0-1
Progress float64 `json:"progress"` // 执行进度 0.0 ~ 1.0
Error string `json:"error,omitempty"`
Metadata map[string]any `json:"metadata"` // 类型特定的元数据
Metadata map[string]any `json:"metadata"` // 类型特定的元数据
CreatedAt time.Time `json:"created_at"` // 任务创建时间
FinishedAt time.Time `json:"finished_at"` // 任务结束时间
}
// ToolCallRecord 工具调用记录