We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7380f1 commit 8bb4215Copy full SHA for 8bb4215
core/src/main/java/com/google/adk/models/LlmResponse.java
@@ -180,6 +180,7 @@ public final Builder response(GenerateContentResponse response) {
180
Optional<List<Candidate>> candidatesOpt = response.candidates();
181
if (candidatesOpt.isPresent() && !candidatesOpt.get().isEmpty()) {
182
Candidate candidate = candidatesOpt.get().get(0);
183
+ this.finishReason(candidate.finishReason());
184
if (candidate.content().isPresent()) {
185
this.content(candidate.content().get());
186
this.groundingMetadata(candidate.groundingMetadata());
0 commit comments