Interface ChatOptions
- All Superinterfaces:
ModelOptions
- All Known Subinterfaces:
StructuredOutputChatOptions, ToolCallingChatOptions
- All Known Implementing Classes:
DefaultChatOptions, DefaultToolCallingChatOptions
ModelOptions representing the common options that are portable across different
chat models.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatOptions.Builderbuilder()Creates a newChatOptions.Builderto create the defaultChatOptions.<T extends ChatOptions>
Tcopy()Returns a copy of thisChatOptions.Returns the frequency penalty to use for the chat.Returns the maximum number of tokens to use for the chat.getModel()Returns the model to use for the chat.Returns the presence penalty to use for the chat.Returns the stop sequences to use for the chat.Returns the temperature to use for the chat.getTopK()Returns the top K to use for the chat.getTopP()Returns the top P to use for the chat.
-
Method Details
-
getModel
Returns the model to use for the chat.- Returns:
- the model to use for the chat
-
getFrequencyPenalty
Returns the frequency penalty to use for the chat.- Returns:
- the frequency penalty to use for the chat
-
getMaxTokens
Returns the maximum number of tokens to use for the chat.- Returns:
- the maximum number of tokens to use for the chat
-
getPresencePenalty
Returns the presence penalty to use for the chat.- Returns:
- the presence penalty to use for the chat
-
getStopSequences
-
getTemperature
Returns the temperature to use for the chat.- Returns:
- the temperature to use for the chat
-
getTopK
Returns the top K to use for the chat.- Returns:
- the top K to use for the chat
-
getTopP
Returns the top P to use for the chat.- Returns:
- the top P to use for the chat
-
copy
Returns a copy of thisChatOptions.- Returns:
- a copy of this
ChatOptions
-
builder
Creates a newChatOptions.Builderto create the defaultChatOptions.- Returns:
- Returns a new
ChatOptions.Builder.
-