Interface ChatCompletionToolChoiceOption
- All Known Implementing Classes:
ChatCompletionToolChoiceOption.InnerChatCompletionNamedToolChoice,ChatCompletionToolChoiceOption.InnerString
public interface ChatCompletionToolChoiceOption
Controls which (if any) tool is called by the model. `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. Specifying a particular tool via `{\"type\":
\"function\", \"function\": {\"name\":
\"my_function\"}}` forces the model to call that tool. `none` is the
default when no tools are present. `auto` is the default if tools are present.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordHelper class to createChatCompletionNamedToolChoicethat implementsChatCompletionToolChoiceOption.static final recordHelper class to createStringthat implementsChatCompletionToolChoiceOption. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionCreator to enable deserialization ofString.Creator to enable deserialization ofChatCompletionNamedToolChoice.
-
Method Details
-
createInnerChatCompletionNamedToolChoice
@Nonnull static ChatCompletionToolChoiceOption.InnerChatCompletionNamedToolChoice createInnerChatCompletionNamedToolChoice(@Nonnull ChatCompletionNamedToolChoice val) Creator to enable deserialization ofChatCompletionNamedToolChoice.- Parameters:
val- the value to use- Returns:
- a new instance of
ChatCompletionToolChoiceOption.InnerChatCompletionNamedToolChoice.
-
create
Creator to enable deserialization ofString.- Parameters:
val- the value to use- Returns:
- a new instance of
ChatCompletionToolChoiceOption.InnerString.
-