Skip to content

Commit 0aa1e88

Browse files
Update firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerateContentResponse.kt
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 7e2b8bd commit 0aa1e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-ai/src/main/kotlin/com/google/firebase/ai/type/GenerateContentResponse.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class GenerateContentResponse(
6464
* Learn more about [thinking](https://firebase.google.com/docs/ai-logic/thinking?api=dev).
6565
*/
6666
public val thoughtSummary: String? by lazy {
67-
candidates.firstOrNull()?.thoughtParts()?.filterIsInstance<TextPart>()?.joinToString(" ")
67+
candidates.firstOrNull()?.thoughtParts()?.filterIsInstance<TextPart>()?.joinToString(" ") { it.text }
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)