NamedResponseToolChoice

Forces the model to call one specific tool.

val params = responseParams {
tools = listOf(FunctionTool("get_weather"))
toolChoice = NamedResponseToolChoice.function("get_weather")
}

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val name: String?

Name of the function to call; set only when type is function.

Link copied to clipboard

Type of the tool that must be called.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String