render agent transfers and tool results in realtime

This commit is contained in:
Ramnique Singh 2025-04-29 02:18:16 +05:30
parent 739b7caa46
commit e99f31d2b7

View file

@ -75,7 +75,7 @@ export function Chat({
// collect published tool call results
const toolCallResults: Record<string, z.infer<typeof apiV1.ToolMessage>> = {};
messages
optimisticMessages
.filter((message) => message.role == 'tool')
.forEach((message) => {
toolCallResults[message.tool_call_id] = message;