Skip to content

Commit c9bc3ba

Browse files
committed
Document the includeThought config
1 parent fd54bec commit c9bc3ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ private constructor(
4343
this.thinkingBudget = thinkingBudget
4444
}
4545

46+
/**
47+
* Indicates whether to request the model to include the thoughts parts in the response.
48+
*
49+
* Keep in mind that once enabled, you should check for the `isThought` property when processing
50+
* a `Part` instance to correctly handle both thoughts and the actual response.
51+
*
52+
* The default value is `false`.
53+
*/
4654
public fun setIncludeThoughts(includeThoughts: Boolean): Builder = apply {
4755
this.includeThoughts = includeThoughts
4856
}

0 commit comments

Comments
 (0)