Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Update limitations for using both search and functioncall tools

Aperta
#418 2 commenti 3 reazioni 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@hemasekhar-p ci sta già lavorando.

Dal 10/3/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

priority: p3 type: feature request

Is your feature request related to a problem? Please describe.
When using Gemini 2.0+ APIs with both a search tool and a functioncall tool, the API returns a error: 400 . Multiple tools are supported only when they are all search tools.
This appears to be a limitation of the service itself and cannot be addressed within this library.

For example, if a developer registers a VertexAISearch tool to allow the model to retrieve internal documents (e.g., product manuals or company policies), and at the same time attempts to use a function tool to perform operations like submitting a request or triggering an action, the API will fail with the above error.

Describe the solution you'd like
Please update the relevant methods and documentation to clearly state this limitation, similar to how it was handled in google/adk-docs#56. This would help developers avoid unexpected runtime errors when configuring tools.

Describe alternatives you've considered
A potential workaround would be to implement a parent agent system that delegates to child agents, each handling a non-conflicting subset of tools. This pattern is discussed in google/adk-python#53 and could help manage tool conflicts by separating them across isolated agents.

Lingua principale
Java
Stelle
398
Fork
126
Merge medio
1g 12h
PR unite (30g)
71

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di googleapis/java-genai

Tutte le issue di googleapis/java-genai

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.