No public description

COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/282 from hangfei:main 7b9c5e3bff76ed475fb57d45333a9ab135cac32d
PiperOrigin-RevId: 749616712
This commit is contained in:
Hangfei Lin 2025-04-20 16:04:19 -07:00 committed by Copybara-Service
parent 2af777af6d
commit f7b436a985

View File

@ -310,9 +310,7 @@ async def _process_function_live_helper(
function_response = {
'status': f'No active streaming function named {function_name} found'
}
elif inspect.isasyncgenfunction(tool.func):
print('is async')
elif hasattr(tool, "func") and inspect.isasyncgenfunction(tool.func):
# for streaming tool use case
# we require the function to be a async generator function
async def run_tool_and_update_queue(tool, function_args, tool_context):