✓ PASS

any-llm 1.40.2

tools.parallel-calls · gemini

Back to results · Scenario

Requirements

IdLevelStatusEvidence
calls-reportedMUSTSATISFIEDtool_calls[0] id="call_120847", name="get_weather", args={"city": "São Paulo"}, parsed=true; truth id="call_120847", name="get_weather", args={"city": "São Paulo"}, parsed=true; tool_calls[1] id="call_120848", name="get_weather", args={"city": "Zürich"}, parsed=true; truth id="call_120848", name="get_weather", args={"city": "Zürich"}, parsed=true

Notes

  • shim: Gemini reasoning_effort none is unsupported by any-llm; omitted to use the model default.

What the provider sent

Finish
tool_calls
Raw finish
STOP
Text
null
Tool calls
[
  {
    "arguments": {
      "city": "São Paulo"
    },
    "arguments_parsed_ok": true,
    "arguments_raw": "{\"city\":\"São Paulo\"}",
    "id": "call_120847",
    "name": "get_weather"
  },
  {
    "arguments": {
      "city": "Zürich"
    },
    "arguments_parsed_ok": true,
    "arguments_raw": "{\"city\":\"Zürich\"}",
    "id": "call_120848",
    "name": "get_weather"
  }
]
Usage
{
  "alternatives": {},
  "cached_input": null,
  "input": 69,
  "output": 34,
  "raw": {
    "candidatesTokenCount": 34,
    "promptTokenCount": 69,
    "promptTokensDetails": [
      {
        "modality": "TEXT",
        "tokenCount": 69
      }
    ],
    "serviceTier": "standard",
    "totalTokenCount": 103
  },
  "reasoning": null,
  "total": 103
}
Stream completed
null
Error
null
Wire excerpt
status: 200
content-type: application/json; charset=UTF-8
body (json):
{
  "candidates": [
    {
      "content": {
        "parts": [
          {
            "functionCall": {
              "name": "get_weather",
              "args": {
                "city": "São Paulo"
              },
              "id": "call_120847"
            },
            "thoughtSignature": "EmAKXgFpFH0TucStVhN+6mgGthmi4ZTSeXOraFjbeCmsoaavB5dIA0B5vGZy5k0Pzv8P83Tu07mHaNUyxKlTdDTX4/jln5bEXkbPUr0u5/9V2FRkpP2krwRNuCvFaArPNjk="
          },
          {
            "functionCall": {
              "name": "get_weather",
              "args": {
                "city": "Zürich"
              },
              "id": "call_120848"
            }
          }
        ],
        "role": "model"
      },
      "finishReason": "STOP",
      "index": 0,
      "finishMessage": "Model generated function call(s)."
    }
  ],
  "usageMetadata": {
    "promptTokenCount": 69,
    "candidatesTokenCount": 34,
    "totalTokenCount": 103,
    "promptTokensDetails": [
      {
        "modality": "TEXT",
        "tokenCount": 69
      }
    ],
    "serviceTier": "standard"
  },
  "modelVersion": "gemini-3.5-flash-lite",
  "responseId": "jQTOasLtM62a9MoPzJKqyAg"
}

What the library reported

Outcome
returned
Finish
{
  "raw": "tool_calls",
  "source": "choices[0].finish_reason",
  "surface": "primary",
  "value": "tool_calls"
}
Text
Value
null
Surface
absent
Tool calls
[
  {
    "arguments": {
      "city": "São Paulo"
    },
    "arguments_parsed_ok": true,
    "arguments_raw": "{\"city\": \"S\\u00e3o Paulo\"}",
    "id": "call_120847",
    "name": "get_weather"
  },
  {
    "arguments": {
      "city": "Zürich"
    },
    "arguments_parsed_ok": true,
    "arguments_raw": "{\"city\": \"Z\\u00fcrich\"}",
    "id": "call_120848",
    "name": "get_weather"
  }
]
Usage
{
  "cached_input": null,
  "input": 69,
  "output": 34,
  "reasoning": null,
  "surface": {
    "cached_input": "absent",
    "input": "primary",
    "output": "primary",
    "reasoning": "absent",
    "total": "primary"
  },
  "total": 103
}
Stream
{
  "chunks_seen": null,
  "completed": null,
  "used": false
}
Error
null
Unsupported reason
null
Full observation JSON
{
  "elapsed_ms": 641.4431584998965,
  "error": null,
  "finish": {
    "raw": "tool_calls",
    "source": "choices[0].finish_reason",
    "surface": "primary",
    "value": "tool_calls"
  },
  "format": "wiretruth.observation/v1",
  "library": {
    "api": "any_llm.completion",
    "language": "python",
    "name": "any-llm",
    "version": "1.40.2"
  },
  "notes": [
    "Gemini reasoning_effort none is unsupported by any-llm; omitted to use the model default."
  ],
  "outcome": "returned",
  "stream": {
    "chunks_seen": null,
    "completed": null,
    "used": false
  },
  "structured": {
    "attempted": false,
    "returned_as_success": false,
    "value": null
  },
  "text": {
    "surface": "absent",
    "value": null
  },
  "tool_calls": [
    {
      "arguments": {
        "city": "São Paulo"
      },
      "arguments_parsed_ok": true,
      "arguments_raw": "{\"city\": \"S\\u00e3o Paulo\"}",
      "id": "call_120847",
      "name": "get_weather"
    },
    {
      "arguments": {
        "city": "Zürich"
      },
      "arguments_parsed_ok": true,
      "arguments_raw": "{\"city\": \"Z\\u00fcrich\"}",
      "id": "call_120848",
      "name": "get_weather"
    }
  ],
  "unsupported_reason": null,
  "usage": {
    "cached_input": null,
    "input": 69,
    "output": 34,
    "reasoning": null,
    "surface": {
      "cached_input": "absent",
      "input": "primary",
      "output": "primary",
      "reasoning": "absent",
      "total": "primary"
    },
    "total": 103
  }
}

Fixture

recorded gemini/tools.parallel-calls

ProvenanceValue
Recorded at2026-10-13T10:14:37Z
Requested modelgemini-3.5-flash-lite
Returned modelgemini-3.5-flash-lite
CI runhttps://github.com/kartsan03/wiretruth/actions/runs/38381941285

Reproduce

wiretruth serve gemini/tools.parallel-calls

Plain-library snippet from the shim manifest.

any_llm.completion(model=model, provider='gemini', api_base=WIRETRUTH_BASE_URL_GEMINI, api_key=WIRETRUTH_API_KEY); host-root base URL

Upstream

released Issue · PR

Fixed in: 1.38.0

any-llm's Gemini provider builds call_{hash(function_call.name)}_{n} ids (providers/gemini/utils.py, non-stream and stream converters) and never reads FunctionCall.id, which google-genai exposes and Gemini sends. The ids also differ between processes because str hash() is salted. Reproduced on 1.33.0 and on main at 18ed82b. PR #1514 fixed the ids in 1.38.0 without linking this issue; the issue was closed on 2026-10-20.

History

VersionGrade
1.40.2✓ PASS
1.38.0✓ PASS
1.33.0✗ WRONG