Skip to content

Commit 7e2b8bd

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 41f492c commit 7e2b8bd

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
@@ -54,7 +54,7 @@ public class GenerateContentResponse(
5454
* [thinking](https://firebase.google.com/docs/ai-logic/thinking?api=dev).
5555
*/
5656
public val functionCalls: List<FunctionCallPart> by lazy {
57-
candidates.firstOrNull()?.content?.parts?.filterIsInstance<FunctionCallPart>().orEmpty()
57+
candidates.firstOrNull()?.nonThoughtParts()?.filterIsInstance<FunctionCallPart>().orEmpty()
5858
}
5959

6060
/**

0 commit comments

Comments
 (0)