You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gemini 3 and 4 Bots fail after their first tool call: "Function call is missing a thought_signature" #2363
A Bot on Gemini 3.x or Gemini 4 stops as soon as one of its tools returns. The model answers:
400 Function call is missing a thought_signature in functionCall parts
From Gemini 3 on, Google refuses a function call in the current turn unless it carries the thought
signature the model gave it. OpenBot runs each tool between two runs and hands the call back to
the model. An AG-UI tool call has no field for a signature, so every engine sends it back unsigned.
Who is affected
A Google AI Studio key saved in Settings or OpenBot Desktop (Google's OpenAI-compatible
endpoint): every engine that sends handed-back calls as function calls. That is ADK, AG2, CrewAI,
LangChain, LangGraph (TypeScript), Langroid, Mastra and Strands.
BOT_PROVIDER=google: LangGraph (TypeScript), when the thread brings back no signature.
LiteLLM, langchain-google-genai and AG2's Gemini config already add Google's placeholder on this
path.
Antigravity and LlamaIndex replay handed-back calls as text, so they are not affected.
Two related bugs on BOT_PROVIDER=google
These fail for every Gemini model, old or new:
ADK, Strands, Langroid, CrewAI and LlamaIndex address the model as google/<model>. LiteLLM reads gemini/<model>, so they fail with "LLM Provider NOT provided".
AG2 has no Gemini config. It falls through to its OpenAI config and asks for OPENAI_API_KEY.
To reproduce
Give a Bot gemini-3.8-flash or gemini-4-hydrogen with a Google key, on any affected engine.
Ask it something that needs a tool, such as looking up an order.
The tool runs, and the next model call fails with the 400 above.
Checked against the live API on 2026-11-27: an unsigned handed-back call gets the 400 on both
Gemini's own generateContent and the OpenAI-compatible endpoint. Google's documented placeholder, skip_thought_signature_validator, is accepted on both.
Expected
The Bot finishes the tool call and answers. A real signature, when there is one, is kept. Requests
to other providers are unchanged.
Also
The model check (scripts/model-compat.ts) runs one plain prompt per model, so it verified these
models even though a Bot cannot finish a tool call on them. It should replay a handed-back call.
Activity
lorenzejay commentedon Nov 28, 2026
Fix, with live results on gemini-4-hydrogen and gemini-3.8-flash for every engine: lorenzejay#4 (branch
fix/gemini-thought-signatures).