From 30d5b9b464c78feca1631b5b3ed12fdcdcab271d Mon Sep 17 00:00:00 2001 From: AskaEth Date: Tue, 23 Jun 2026 20:39:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=87=8D=E6=96=B0=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=BC=82=E6=AD=A5=E6=89=A7=E8=A1=8C=20(?= =?UTF-8?q?=E8=A2=ABgit=20checkout=E4=B8=A2=E5=A4=B1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/ai-core/internal/orchestrator/enrichment.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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