Package org.springframework.ai.minimax
Class MiniMaxChatOptions.AbstractBuilder<B extends MiniMaxChatOptions.AbstractBuilder<B>>
java.lang.Object
org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder<B>
org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder<B>
org.springframework.ai.minimax.MiniMaxChatOptions.AbstractBuilder<B>
- All Implemented Interfaces:
ChatOptions.Builder<B>,ToolCallingChatOptions.Builder<B>
- Direct Known Subclasses:
MiniMaxChatOptions.Builder
- Enclosing class:
MiniMaxChatOptions
protected abstract static class MiniMaxChatOptions.AbstractBuilder<B extends MiniMaxChatOptions.AbstractBuilder<B>>
extends DefaultToolCallingChatOptions.Builder<B>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable Booleanprotected @Nullable Integerprotected @Nullable MiniMaxApi.ChatCompletionRequest.ResponseFormatprotected @Nullable Integerprotected @Nullable Stringprotected @Nullable List<MiniMaxApi.FunctionTool> Fields inherited from class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
internalToolExecutionEnabled, toolCallbacks, toolContext, toolNamesFields inherited from class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
frequencyPenalty, maxTokens, model, presencePenalty, stopSequences, temperature, topK, topP -
Constructor Summary
Constructors -
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.maskSensitiveInfo(@Nullable Boolean maskSensitiveInfo) responseFormat(@Nullable MiniMaxApi.ChatCompletionRequest.ResponseFormat responseFormat) toolChoice(@Nullable String toolChoice) tools(@Nullable List<MiniMaxApi.FunctionTool> tools) Methods inherited from class org.springframework.ai.model.tool.DefaultToolCallingChatOptions.Builder
internalToolExecutionEnabled, toolCallbacks, toolCallbacks, toolContext, toolContext, toolNames, toolNamesMethods inherited from class org.springframework.ai.chat.prompt.DefaultChatOptionsBuilder
frequencyPenalty, maxTokens, model, presencePenalty, self, stopSequences, temperature, topK, topPMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.model.tool.ToolCallingChatOptions.Builder
frequencyPenalty, maxTokens, model, presencePenalty, stopSequences, temperature, topK, topP
-
Field Details
-
n
-
responseFormat
-
seed
-
maskSensitiveInfo
-
tools
-
toolChoice
-
-
Constructor Details
-
AbstractBuilder
protected AbstractBuilder()
-
-
Method Details
-
N
-
responseFormat
-
seed
-
stop
-
maskSensitiveInfo
-
tools
-
toolChoice
-
combineWith
Description copied from interface:ChatOptions.BuilderMutate this builder by taking allother's values that are non-null, retainingthisother values.- Specified by:
combineWithin interfaceChatOptions.Builder<B extends MiniMaxChatOptions.AbstractBuilder<B>>- Overrides:
combineWithin classDefaultToolCallingChatOptions.Builder<B extends MiniMaxChatOptions.AbstractBuilder<B>>
-
build
Description copied from interface:ChatOptions.BuilderBuild theChatOptions.- Specified by:
buildin interfaceChatOptions.Builder<B extends MiniMaxChatOptions.AbstractBuilder<B>>- Specified by:
buildin interfaceToolCallingChatOptions.Builder<B extends MiniMaxChatOptions.AbstractBuilder<B>>- Overrides:
buildin classDefaultToolCallingChatOptions.Builder<B extends MiniMaxChatOptions.AbstractBuilder<B>>- Returns:
- the Chat options.
-