We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1eea2d commit ef7e376Copy full SHA for ef7e376
src/google/adk/models/lite_llm.py
@@ -98,6 +98,9 @@
98
# 1. FinishReason.TOOL_CALL enum does not exist (as of google-genai 0.8.0)
99
# 2. Tool calls represent normal completion (model stopped to invoke tools)
100
# 3. Gemini native responses use STOP for tool calls (see lite_llm.py:910)
101
+# 4. Mapping tool-related finish reasons to STOP preserves backward
102
+# compatibility with existing ADK consumers that assume STOP
103
+# indicates a successful, non-error completion.
104
_FINISH_REASON_MAPPING = {
105
"length": types.FinishReason.MAX_TOKENS,
106
"stop": types.FinishReason.STOP,
0 commit comments