adk-python
adk-python copied to clipboard
LLM response without content and parts can return non-failure finish reason in the error code
Describe the bug When the LLM response does not contain content and parts, a finish reason that does not represent an error ie: STOP can be returned as an error code by adk see here. If the LLM response does not contain content and parts, the LLM responses's error code should only contain finish reasons that represent actual errors.
Model Information: Gemini-2.0-flash
@speedstorm1 I can take a look at this as part of https://github.com/google/adk-python/issues/3248