Skip to content

fix: function is not found in the tools_dict #2289

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/google/adk/flows/llm_flows/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ async def handle_function_calls_async(
for function_call in function_calls:
if filters and function_call.id not in filters:
continue
if function_call.name is None or function_call.name.strip() == '':
continue
tool, tool_context = _get_tool_and_context(
invocation_context,
function_call_event,
Expand Down