Skip to content

Commit 3a5958f

Browse files
authored
fix(langgraph): fallback to event name when ToolMessage.name is None in normal branch (#1404)
1 parent 0947b43 commit 3a5958f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • integrations/langgraph/python/ag_ui_langgraph

integrations/langgraph/python/ag_ui_langgraph/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ async def _handle_single_event(self, event: Any, state: State) -> AsyncGenerator
942942
ToolCallStartEvent(
943943
type=EventType.TOOL_CALL_START,
944944
tool_call_id=tool_call_output.tool_call_id,
945-
tool_call_name=tool_call_output.name,
945+
tool_call_name=tool_call_output.name or event.get("name", ""),
946946
parent_message_id=tool_call_output.id,
947947
raw_event=event,
948948
)

0 commit comments

Comments
 (0)