Skip to content
Snippets Groups Projects
Commit ef1c1cd0 authored by thucpn's avatar thucpn
Browse files

always send message annotation

parent 44fd5778
No related branches found
No related tags found
No related merge requests found
...@@ -80,10 +80,6 @@ function handleEvent( ...@@ -80,10 +80,6 @@ function handleEvent(
if (event instanceof StopEvent) { if (event instanceof StopEvent) {
return event.data as AsyncGenerator<ChatResponseChunk>; return event.data as AsyncGenerator<ChatResponseChunk>;
} else { } else {
console.log("handleWorkflowEvent", event, event instanceof WorkflowEvent); dataStream.appendMessageAnnotation(event.data as JSONValue);
dataStream.appendMessageAnnotation({
type: "agent",
data: event.data as JSONValue,
});
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment