Skip to content

Conversation

tucosh
Copy link
Contributor

@tucosh tucosh commented Jun 23, 2025

The @Schema parameter annotation is missing the parameter name, leading to the following error message:

[agents.multitool.MultiToolAgent.main()] ERROR com.google.adk.tools.FunctionTool -- Functions used in tools must have their parameters annotated with @Schema or at least the code must be compiled with the -parameters flag as a fallback. Your function tool will likely not work as expected and exit at runtime.

The @Schema parameter annotation is missing the parameter name, leading to the following error message:

[agents.multitool.MultiToolAgent.main()] ERROR com.google.adk.tools.FunctionTool -- Functions used in tools must have their parameters annotated with @Schema or at least the code must be compiled with the -parameters flag as a fallback. Your function tool will likely not work as expected and exit at runtime.
@lavinigam-gcp lavinigam-gcp requested a review from Sita04 June 28, 2025 03:48
Copy link
Collaborator

@Sita04 Sita04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for identifying the issue and sending the fix!

@tucosh tucosh changed the title Fix error message in MultiToolAgent.java example fix: Add missing "name=" to @Schema parameter annotation to eliminate error message Jul 15, 2025
@Sita04 Sita04 merged commit 32b0be6 into google:main Jul 15, 2025
4 checks passed
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