Class DefaultChatOptionsBuilder
java.lang.Object
org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
- All Implemented Interfaces:
- ChatOptions.Builder
Implementation of 
ChatOptions.Builder to create DefaultChatOptions.- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotected
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Build theChatOptions.frequencyPenalty(Double frequencyPenalty) Builds with the frequency penalty to use for the chat.Builds with the maximum number of tokens to use for the chat.Builds with the model to use for the chat.presencePenalty(Double presencePenalty) Builds with the presence penalty to use for the chat.stopSequences(List<String> stop) Builds with the stop sequences to use for the chat.temperature(Double temperature) Builds with the temperature to use for the chat.Builds with the top K to use for the chat.Builds with the top P to use for the chat.
- 
Field Details- 
options
 
- 
- 
Constructor Details- 
DefaultChatOptionsBuilderpublic DefaultChatOptionsBuilder()
- 
DefaultChatOptionsBuilder
 
- 
- 
Method Details- 
modelDescription copied from interface:ChatOptions.BuilderBuilds with the model to use for the chat.- Specified by:
- modelin interface- ChatOptions.Builder
- Returns:
- the builder
 
- 
frequencyPenaltyDescription copied from interface:ChatOptions.BuilderBuilds with the frequency penalty to use for the chat.- Specified by:
- frequencyPenaltyin interface- ChatOptions.Builder
- Returns:
- the builder.
 
- 
maxTokensDescription copied from interface:ChatOptions.BuilderBuilds with the maximum number of tokens to use for the chat.- Specified by:
- maxTokensin interface- ChatOptions.Builder
- Returns:
- the builder.
 
- 
presencePenaltyDescription copied from interface:ChatOptions.BuilderBuilds with the presence penalty to use for the chat.- Specified by:
- presencePenaltyin interface- ChatOptions.Builder
- Returns:
- the builder.
 
- 
stopSequencesDescription copied from interface:ChatOptions.BuilderBuilds with the stop sequences to use for the chat.- Specified by:
- stopSequencesin interface- ChatOptions.Builder
- Returns:
- the builder.
 
- 
temperatureDescription copied from interface:ChatOptions.BuilderBuilds with the temperature to use for the chat.- Specified by:
- temperaturein interface- ChatOptions.Builder
- Returns:
- the builder.
 
- 
topKDescription copied from interface:ChatOptions.BuilderBuilds with the top K to use for the chat.- Specified by:
- topKin interface- ChatOptions.Builder
- Returns:
- the builder.
 
- 
topPDescription copied from interface:ChatOptions.BuilderBuilds with the top P to use for the chat.- Specified by:
- topPin interface- ChatOptions.Builder
- Returns:
- the builder.
 
- 
buildDescription copied from interface:ChatOptions.BuilderBuild theChatOptions.- Specified by:
- buildin interface- ChatOptions.Builder
- Returns:
- the Chat options.
 
 
-