Class DefaultChatOptions
java.lang.Object
org.springframework.ai.chat.prompt.DefaultChatOptions
- All Implemented Interfaces:
ChatOptions,ModelOptions
- Direct Known Subclasses:
DefaultStructuredOutputChatOptions,DefaultToolCallingChatOptions
Default implementation for the
ChatOptions.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.ai.chat.prompt.ChatOptions
ChatOptions.Builder<B extends ChatOptions.Builder<B>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable DoubleReturns the frequency penalty to use for the chat.@Nullable IntegerReturns the maximum number of tokens to use for the chat.@Nullable StringgetModel()Returns the model to use for the chat.@Nullable DoubleReturns the presence penalty to use for the chat.Returns the stop sequences to use for the chat.@Nullable DoubleReturns the temperature to use for the chat.@Nullable IntegergetTopK()Returns the top K to use for the chat.@Nullable DoublegetTopP()Returns the top P to use for the chat.inthashCode()mutate()Returns a newChatOptions.Builderinitialized with the values of thisChatOptions.
-
Constructor Details
-
DefaultChatOptions
-
-
Method Details
-
getModel
Description copied from interface:ChatOptionsReturns the model to use for the chat.- Specified by:
getModelin interfaceChatOptions- Returns:
- the model to use for the chat
-
getFrequencyPenalty
Description copied from interface:ChatOptionsReturns the frequency penalty to use for the chat.- Specified by:
getFrequencyPenaltyin interfaceChatOptions- Returns:
- the frequency penalty to use for the chat
-
getMaxTokens
Description copied from interface:ChatOptionsReturns the maximum number of tokens to use for the chat.- Specified by:
getMaxTokensin interfaceChatOptions- Returns:
- the maximum number of tokens to use for the chat
-
getPresencePenalty
Description copied from interface:ChatOptionsReturns the presence penalty to use for the chat.- Specified by:
getPresencePenaltyin interfaceChatOptions- Returns:
- the presence penalty to use for the chat
-
getStopSequences
Description copied from interface:ChatOptionsReturns the stop sequences to use for the chat.- Specified by:
getStopSequencesin interfaceChatOptions- Returns:
- the stop sequences to use for the chat
-
getTemperature
Description copied from interface:ChatOptionsReturns the temperature to use for the chat.- Specified by:
getTemperaturein interfaceChatOptions- Returns:
- the temperature to use for the chat
-
getTopK
Description copied from interface:ChatOptionsReturns the top K to use for the chat.- Specified by:
getTopKin interfaceChatOptions- Returns:
- the top K to use for the chat
-
getTopP
Description copied from interface:ChatOptionsReturns the top P to use for the chat.- Specified by:
getTopPin interfaceChatOptions- Returns:
- the top P to use for the chat
-
mutate
Description copied from interface:ChatOptionsReturns a newChatOptions.Builderinitialized with the values of thisChatOptions. Concrete ChatOptions classes must implement this and return the most concrete builder implementation.- Specified by:
mutatein interfaceChatOptions
-
equals
-
hashCode
public int hashCode()
-