Skip to content

Error when using tool invocation on new Gemini API #66

@SimonGurney

Description

@SimonGurney

When scanning cacti with Gemini with toll invocations, the following error is present for every file.

2025-11-26 21:44:44,899 - saist - ERROR - [Error] File 'graph_image.php': status_code: 400, model_name: gemini-3-pro-preview, body: {
  "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:read_file_contents` , position 2. Please refer to https://ai.google.dev/gemini-api/docs/thought-signatures for more details.",
    "status": "INVALID_ARGUMENT"
  }
}

Not sure if this is a warning, or impacts scanning

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