Skip to content

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. #152

@vorburger

Description

@vorburger

Describe the bug

[INFO] [stdout] 2025-05-31T19:30:49.207+02:00 ERROR 403845 --- [ebServer.main()] 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.
[INFO] [stdout] 2025-05-31T19:30:49.214+02:00 ERROR 403845 --- [ebServer.main()] 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.

To Reproduce

Follow https://google.github.io/adk-docs/get-started/.

Also https://github.com/google/adk-docs/blob/005d3ca985942e60f9dcd03bf5fc8ed1192e479b/examples/java/cloud-run/pom.xml#L1

Expected behavior
No confusing looks errors shown when following getting start / quick guide.

Additional context

This is of course because of a missing -parameters arg to javac in the POM.

Interestingly, when I've tried to add it, it didn't seem to help.

Maybe it's a Maven problem?!

Needs a closer look.

Some day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions