From ef1c1cd068da2f24a9c912d96b8b489a51f38020 Mon Sep 17 00:00:00 2001 From: thucpn <thucsh2@gmail.com> Date: Wed, 19 Mar 2025 18:34:48 +0700 Subject: [PATCH] always send message annotation --- packages/server/src/utils/workflow.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/server/src/utils/workflow.ts b/packages/server/src/utils/workflow.ts index 9bebd3198..d8e9fd672 100644 --- a/packages/server/src/utils/workflow.ts +++ b/packages/server/src/utils/workflow.ts @@ -80,10 +80,6 @@ function handleEvent( if (event instanceof StopEvent) { return event.data as AsyncGenerator<ChatResponseChunk>; } else { - console.log("handleWorkflowEvent", event, event instanceof WorkflowEvent); - dataStream.appendMessageAnnotation({ - type: "agent", - data: event.data as JSONValue, - }); + dataStream.appendMessageAnnotation(event.data as JSONValue); } } -- GitLab