#5466·spring-ai

GoogleGenAiChatModel 在与文本或思考部分结合时无法识别工具调用

作者: lazer-dev创建于 2026年2月16日更新于 2026年9月17日
标签status: waiting-for-triage

Bug description The GoogleGenAiChatModel fails to detect and extract tool calls when a model response contains a mix of text (or thought) parts and functionCall parts. This is caused by a strict allMatch check in responseCandidateToGeneration. If a response contains both reasoning text and a function call, the function call is ignored, and the tool-calling loop breaks.

内容来源: spring-projects/spring-ai