Skip to content

Commit 4a795db

Browse files
fix: rename member content var in on_tool_call_completed to satisfy mypy
The member branch bound the member snapshot dict to `content`, which the non-member path later reassigns to a JSON string, tripping a mypy assignment-type error after the rebase onto latest main.
1 parent 8aec3f0 commit 4a795db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

libs/agno/agno/os/interfaces/agui/handlers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ def on_tool_call_completed(chunk: BaseRunOutputEvent, state: StreamState) -> Lis
240240
return events
241241

242242
if _is_member_chunk(chunk):
243-
_, content = state.get_or_create_member(_member_key(chunk))
244-
content["status"] = "running"
245-
content["currentTool"] = None
243+
_, member_content = state.get_or_create_member(_member_key(chunk))
244+
member_content["status"] = "running"
245+
member_content["currentTool"] = None
246246
return [_member_activity_snapshot(chunk, state)]
247247

248248
if tool.tool_call_id in state.ended_tool_call_ids:

0 commit comments

Comments
 (0)