Interface ChatOptions.Builder<B extends ChatOptions.Builder<B>>
- All Known Subinterfaces:
ToolCallingChatOptions.Builder<B>
- All Known Implementing Classes:
AnthropicChatOptions.AbstractBuilder,AnthropicChatOptions.Builder,AzureOpenAiChatOptions.AbstractBuilder,AzureOpenAiChatOptions.Builder,BedrockChatOptions.AbstractBuilder,BedrockChatOptions.Builder,DeepSeekChatOptions.AbstractBuilder,DeepSeekChatOptions.Builder,DefaultChatOptionsBuilder,DefaultToolCallingChatOptions.Builder,GoogleGenAiChatOptions.AbstractBuilder,GoogleGenAiChatOptions.Builder,MiniMaxChatOptions.AbstractBuilder,MiniMaxChatOptions.Builder,MistralAiChatOptions.AbstractBuilder,MistralAiChatOptions.Builder,OllamaChatOptions.AbstractBuilder,OllamaChatOptions.Builder,OpenAiSdkChatOptions.AbstractBuilder,OpenAiSdkChatOptions.Builder,ZhiPuAiChatOptions.AbstractBuilder,ZhiPuAiChatOptions.Builder
- Enclosing interface:
ChatOptions
public static interface ChatOptions.Builder<B extends ChatOptions.Builder<B>>
Builder for creating
ChatOptions instance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build theChatOptions.combineWith(ChatOptions.Builder<?> other) Mutate this builder by taking allother's values that are non-null, retainingthisother values.frequencyPenalty(@Nullable 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(@Nullable Double presencePenalty) Builds with the presence penalty to use for the chat.stopSequences(@Nullable List<String> stopSequences) Builds with the stop sequences to use for the chat.temperature(@Nullable 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.
-
Method Details
-
model
Builds with the model to use for the chat.- Parameters:
model-- Returns:
- the builder
-
frequencyPenalty
Builds with the frequency penalty to use for the chat.- Parameters:
frequencyPenalty-- Returns:
- the builder.
-
maxTokens
Builds with the maximum number of tokens to use for the chat.- Parameters:
maxTokens-- Returns:
- the builder.
-
presencePenalty
Builds with the presence penalty to use for the chat.- Parameters:
presencePenalty-- Returns:
- the builder.
-
stopSequences
Builds with the stop sequences to use for the chat.- Parameters:
stopSequences-- Returns:
- the builder.
-
temperature
Builds with the temperature to use for the chat.- Parameters:
temperature-- Returns:
- the builder.
-
topK
Builds with the top K to use for the chat.- Parameters:
topK-- Returns:
- the builder.
-
topP
Builds with the top P to use for the chat.- Parameters:
topP-- Returns:
- the builder.
-
build
ChatOptions build()Build theChatOptions.- Returns:
- the Chat options.
-
combineWith
Mutate this builder by taking allother's values that are non-null, retainingthisother values.
-