fix: 重新应用工具异步执行 (被git checkout丢失)

This commit is contained in:
2026-06-23 20:39:51 +08:00
parent a3bdeba63a
commit 30d5b9b464
@@ -15,10 +15,15 @@ type EnrichmentData struct {
// PendingToolResult holds the result of a tool that completed asynchronously. // PendingToolResult holds the result of a tool that completed asynchronously.
type PendingToolResult struct { type PendingToolResult struct {
ToolCallID string `json:"tool_call_id"` ToolCallID string `json:"tool_call_id"`
ToolName string `json:"tool_name"` ToolName string `json:"tool_name"`
Result string `json:"result"` Result string `json:"result"`
Success bool `json:"success"` Success bool `json:"success"`
SessionID string `json:"session_id,omitempty"`
UserID string `json:"user_id,omitempty"`
Platform string `json:"platform,omitempty"` // 来源平台
ChannelID string `json:"channel_id,omitempty"` // 来源频道
ChannelType string `json:"channel_type,omitempty"` // direct/group
} }
// SessionEnrichmentStore is a thread-safe per-session cache for async // SessionEnrichmentStore is a thread-safe per-session cache for async