Skip to content

Remove id from FunctionCall and FunctionResponse when using Vertex AI #557

Description

@kawolum

** Please make sure you read the contribution guide and file the issues in the rigth place. **
Contribution guide.

Describe the bug
A clear and concise description of what the bug is.

Vertex AI does not accept id for FunctionCall and FunctionResponse. ADK sends FunctionCall and FunctionResponse with id regardless of Vertex AI.

To Reproduce
Steps to reproduce the behavior:

  1. Create an agent with tools
  2. Use Vertex AI with any Gemini models
  3. Make the agent use a tool

Expected behavior
A clear and concise description of what you expected to happen.

Remove id from FunctionCall and FunctionResponse when it is configured for Vertex AI.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] Linux
  • Java version: 21
  • ADK version(see maven dependency): 0.3.0

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwaiting on reporterWaiting for reaction by reporter. Failing that, maintainers will eventually closed it as stale.

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions