Member Junction
    Preparing search index...

    Variable CHAT_FINISH_REASON_UNEXPECTED_TOOL_CALLConst

    CHAT_FINISH_REASON_UNEXPECTED_TOOL_CALL: "unexpected_tool_call" = 'unexpected_tool_call'

    The normalized finish_reason a driver reports when the model called a tool the request did not make available — Gemini's UNEXPECTED_TOOL_CALL, raised when the model calls a tool on a request whose tool choice forbids it or that declared no such tool. Like a malformed call, the turn carries no toolCalls; the agent loop turns it into a corrective retry.