diff --git a/backend/ai-core/internal/orchestrator/enrichment.go b/backend/ai-core/internal/orchestrator/enrichment.go index f60661b..b0397e7 100644 --- a/backend/ai-core/internal/orchestrator/enrichment.go +++ b/backend/ai-core/internal/orchestrator/enrichment.go @@ -15,10 +15,15 @@ type EnrichmentData struct { // PendingToolResult holds the result of a tool that completed asynchronously. type PendingToolResult struct { - ToolCallID string `json:"tool_call_id"` - ToolName string `json:"tool_name"` - Result string `json:"result"` - Success bool `json:"success"` + ToolCallID string `json:"tool_call_id"` + ToolName string `json:"tool_name"` + Result string `json:"result"` + 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