Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Function calls with 'id' fails with 400 using Gemini

Abierto
#694 1 comentario 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@hemasekhar-p ya está trabajando en esto.

Desde el 8/12/2025.

  • #973 de @YuqiGuo105 — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

priority: p2 type: bug

Thanks for stopping by to let us know something could be better!

PLEASE READ: If you have a support contract with Google, please create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Is this a client library issue or a product issue? We will only be able to assist with issues that pertain to the behaviors of this library. If the issue you're experiencing is due to the behavior of the product itself, please visit the Support page to reach the most relevant engineers.

If the support paths suggested above still do not result in a resolution, please provide the following details.

Environment details
  • Programming language: Java
  • OS: Linux
  • Language runtime version: 17
  • Package version: 1.8.0
Steps to reproduce
  1. Use a multi agent setup using Java Google ADK (v 0.3.0) with a function call.
  2. When LLM returns response to invoke a function call, agent invokes and sending the response back to Gemini causes com.google.genai.errors.ClientException: 400 . Invalid JSON payload received. Unknown name "id" at 'contents[5].parts[0].function_call': Cannot find field. Invalid JSON payload received. Unknown name "id" at 'contents[6].parts[0].function_response': Cannot find field.
  3. I patched the java-genai package to add @JsonIgnore in FunctionCall and FunctionResponse.
    @JsonProperty("id") @JsonIgnore public abstract Optional<String> id();
  4. Ran the agent again, and it succeeded.

It looks like Google Gemini does not expect 'id' in Functions but java-genai sends it.

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

Lenguaje dominante
Java
Estrellas
398
Forks
126
Merge medio
1 d 12 h
PR fusionados (30 d)
71

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de googleapis/java-genai

Todos los issues de googleapis/java-genai

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.