Skip to content

Commit f7b436a

Browse files
hangfeicopybara-github
authored andcommitted
No public description
COPYBARA_INTEGRATE_REVIEW=#282 from hangfei:main 7b9c5e3 PiperOrigin-RevId: 749616712
1 parent 2af777a commit f7b436a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

+1-3
Original file line numberDiff line numberDiff line change
@@ -310,9 +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):
314-
print('is async')
315-
313+
elif hasattr(tool, "func") and inspect.isasyncgenfunction(tool.func):
316314
# for streaming tool use case
317315
# we require the function to be a async generator function
318316
async def run_tool_and_update_queue(tool, function_args, tool_context):

0 commit comments

Comments
 (0)