ResponseToolChoice

@Serializable(with = ResponseToolChoiceSerializer::class)
sealed interface ResponseToolChoice

Controls which tool, if any, the model calls.

Implementations:

When omitted the API defaults to auto. Naming a tool that is absent from the request's tool list is answered with 400.

Inheritors