adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

LLM response without content and parts can return non-failure finish reason in the error code

Open jmhbh opened this issue 1 year ago • 1 comments

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

jmhbh avatar Sep 10 '25 18:09 jmhbh

@speedstorm1 I can take a look at this as part of https://github.com/google/adk-python/issues/3248

speedstorm1 avatar Oct 27 '25 21:10 speedstorm1