We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
required
1 parent 36e99cd commit e45f18dCopy full SHA for e45f18d
openai-core/src/commonMain/kotlin/com.aallam.openai.api/chat/ToolChoice.kt
@@ -36,6 +36,9 @@ public sealed interface ToolChoice {
36
/** Represents the `none` mode. */
37
public val None: ToolChoice = Mode("none")
38
39
+ /** Represents the `required` mode. */
40
+ public val Required: ToolChoice = Mode("required")
41
+
42
/** Specifies a function for the model to call **/
43
public fun function(name: String): ToolChoice =
44
Named(type = ToolType.Function, function = FunctionToolChoice(name = name))
0 commit comments