ChatCompletionToolChoiceOption.mode constructor

const ChatCompletionToolChoiceOption.mode(
  1. ChatCompletionToolChoiceMode value
)

none means the model will not call any tool and instead generates a message. auto means the model can pick between generating a message or calling one or more tools. required means the model must call one or more tools.

Implementation

const factory ChatCompletionToolChoiceOption.mode(
  ChatCompletionToolChoiceMode value,
) = ChatCompletionToolChoiceOptionEnumeration;