Skip to content

Conversation

@anubhav756
Copy link
Contributor

@anubhav756 anubhav756 commented Feb 6, 2026

This PR implements the _get_declaration method in ToolboxTool for the toolbox-adk package. This enables the ADK tool wrapper to natively provide a FunctionDeclaration schema directly to ADK orchestration, correctly exposing all underlying tool parameters, their types, and descriptions.

Because it wraps a ToolboxTool from toolbox-adk wraps that from toolbox-core, the framework's default reflection mechanisms struggles to parse the expected parameter signature. By explicitly constructing the Schema and FunctionDeclaration objects using the definitions present on the core tool, we ensure complete compatibility with the ADK's native schema builder.

@anubhav756 anubhav756 marked this pull request as ready for review February 6, 2026 22:27
@anubhav756 anubhav756 requested a review from a team as a code owner February 6, 2026 22:27
@anubhav756 anubhav756 assigned anubhav756 and unassigned dishaprakash Feb 9, 2026
@anubhav756 anubhav756 changed the title fix(adk): Implement generating FunctionDeclaration from tool parameters. fix(adk): implement _get_declaration to natively support ADK schema builder Feb 9, 2026
@anubhav756 anubhav756 merged commit 4f11229 into main Feb 9, 2026
25 checks passed
@anubhav756 anubhav756 deleted the anubhav-adk branch February 9, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants