mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-15 19:52:55 -06:00
Fix AttributeError in run_live when using AgentTool (#274)
Co-authored-by: Hangfei Lin <hangfei@google.com>
This commit is contained in:
parent
30b1722cca
commit
daed456125
@ -310,7 +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):
|
||||
elif hasattr(tool, "func") and inspect.isasyncgenfunction(tool.func):
|
||||
print('is async')
|
||||
|
||||
# for streaming tool use case
|
||||
|
Loading…
Reference in New Issue
Block a user