From f0f819a69ae0cbab48cccac88eed3099af3f9af7 Mon Sep 17 00:00:00 2001 From: ran Date: Wed, 1 Apr 2026 18:05:10 +0200 Subject: [PATCH] fix(langgraph): fallback to event name when ToolMessage.name is None in normal branch --- integrations/langgraph/python/ag_ui_langgraph/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/langgraph/python/ag_ui_langgraph/agent.py b/integrations/langgraph/python/ag_ui_langgraph/agent.py index 15319f3e45..c837426b8b 100644 --- a/integrations/langgraph/python/ag_ui_langgraph/agent.py +++ b/integrations/langgraph/python/ag_ui_langgraph/agent.py @@ -942,7 +942,7 @@ async def _handle_single_event(self, event: Any, state: State) -> AsyncGenerator ToolCallStartEvent( type=EventType.TOOL_CALL_START, tool_call_id=tool_call_output.tool_call_id, - tool_call_name=tool_call_output.name, + tool_call_name=tool_call_output.name or event.get("name", ""), parent_message_id=tool_call_output.id, raw_event=event, )