Skip to content

Gemini 3 Flash Preview: Function call fails due to missing thought_signature #79

@gyuyeol

Description

@gyuyeol

When using the Gemini 3 Flash Preview model with picoclaw, function calls are consistently failing. The error messages indicate that a thought_signature is missing in the functionCall parts, which is stated as required for tools to work correctly and leads to degraded model performance.

This prevents the agent from properly utilizing available tools via function calling.

Error Message:

2026/02/12 15:56:24 [2026-02-12T15:56:24Z] [ERROR] agent: LLM call failed {iteration=2, error=API error: [{
  "error": {
    "code": 400,
    "message": "Function call is missing a thought_signature in functionCall parts. This is required for tools to work correctly, and missing thought_signature may lead to degraded model performance. Additional data, function call default_api:list_dir , position 10. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.",
    "status": "INVALID_ARGUMENT"
  "error": {
    "code": 400,
    "message": "Function call is missing a thought_signature in functionCall parts. This is required for tools to work correctly, and missing thought_signature may lead to degraded model performance. Additional data, function call default_api:list_dir , position 10. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.",
    "status": "INVALID_ARGUMENT"
  }
}
]}
Error: LLM call failed: API error: [{
  "error": {
    "code": 400,
    "message": "Function call is missing a thought_signature in functionCall parts. This is required for tools to work correctly, and missing thought_signature may lead to degraded model performance. Additional data, function call default_api:list_dir , position 10. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.",
    "status": "INVALID_ARGUMENT"
  }
}
]

Expected behavior:
Function calls should execute correctly without requiring manual intervention for thought_signature when using the Gemini 3 Flash Preview model, similar to how other models handle function calling.

Impact:
This issue severely limits the agent's ability to use tools and perform tasks when configured with the Gemini 3 Flash Preview model.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions