ToolChoice

@Serializable(with = ToolChoiceSerializer::class)
sealed interface ToolChoice

Controls which (if any) function is called by the model.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
value class Mode(val value: String) : ToolChoice

Represents a function call mode.

Link copied to clipboard
@Serializable
data class Named(val type: ToolType? = null, val function: FunctionToolChoice? = null) : ToolChoice

Specifies a tool the model should use.