10000 Improve ToolFunction to recognize any variable typed ToolContext rather than only the hardcoded "tool_context" · Issue #1530 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content
Improve ToolFunction to recognize any variable typed ToolContext rather than only the hardcoded "tool_context" #1530
Open
@slilichenko

Description

@slilichenko

If the function signature contains a variable of ToolContext type not named "tool_context" the agent fails with a user-unfriendly exception like "ValueError: Failed to parse the parameter ctx: google.adk.tools.tool_context.ToolContext of function ...".

Ideally, the function should take any variable name and provide the context when called. At the very least, it should indicate that renaming the variable will solve the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0