Skip to content

Function calls with extraneous arguments #1014

@monojack

Description

@monojack

Describe the bug
Sometimes, a function call would receive a tool_code parameter which would fail validation:

"function_call": {
  "id": "adk-.....",
  "args": {
    "tool_code": "print(default_api.get_weather(query = \"What is the weather in San Francisco?\"))",
    "agent_name": "WeatherAgent"
  },
  "name": "transfer_to_agent"
}

# Error during processing: transfer_to_agent() got an unexpected keyword argument 'tool_code'. 
# Did you mean 'tool_context’?

Desktop (please complete the following information):

  • OS: OSX
  • Python version(python -V): Python 3.13.3
  • ADK version(pip show google-adk): Version: 1.0.0

Metadata

Metadata

Assignees

Labels

tools[Component] This issue is related to tools

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions