8000 Fix AttributeError in run_live when using AgentTool (#274) · shanthshivam/adk-python@daed456 · GitHub
[go: up one dir, main page]

Skip to content

Commit daed456

Browse files
RashRAJhangfei
andauthored
Fix AttributeError in run_live when using AgentTool (google#274)
Co-authored-by: Hangfei Lin <hangfei@google.com>
1 parent 30b1722 commit daed456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/flows/llm_flows/functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ async def _process_function_live_helper(
310310
function_response = {
311311
'status': f'No active streaming function named {function_name} found'
312312
}
313-
elif inspect.isasyncgenfunction(tool.func):
313+
elif hasattr(tool, "func") and inspect.isasyncgenfunction(tool.func):
314314
print('is async')
315315

316316
# for streaming tool use case

0 commit comments

Comments
 (0)
0