Class DefaultStructuredOutputChatOptions
java.lang.Object
org.springframework.ai.chat.prompt.DefaultChatOptions
org.springframework.ai.model.tool.DefaultStructuredOutputChatOptions
- All Implemented Interfaces:
ChatOptions,ModelOptions,StructuredOutputChatOptions
public class DefaultStructuredOutputChatOptions
extends DefaultChatOptions
implements StructuredOutputChatOptions
Default implementation of
StructuredOutputChatOptions.
Mainly to be used in model generic tests, as concrete chat implementations typically
use dedicated sub implementations specific to the model.- Author:
- Eric Bottard, Sebastien Deleuze
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultStructuredOutputChatOptions(@Nullable String model, @Nullable Double frequencyPenalty, @Nullable Integer maxTokens, @Nullable Double presencePenalty, @Nullable List<String> stopSequences, @Nullable Double temperature, @Nullable Integer topK, @Nullable Double topP, @Nullable String outputSchema) -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable StringinthashCode()mutate()Returns a newChatOptions.Builderinitialized with the values of thisChatOptions.Methods inherited from class org.springframework.ai.chat.prompt.DefaultChatOptions
getFrequencyPenalty, getMaxTokens, getModel, getPresencePenalty, getStopSequences, getTemperature, getTopK, getTopPMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ai.chat.prompt.ChatOptions
getFrequencyPenalty, getMaxTokens, getModel, getPresencePenalty, getStopSequences, getTemperature, getTopK, getTopP
-
Constructor Details
-
DefaultStructuredOutputChatOptions
protected DefaultStructuredOutputChatOptions(@Nullable String model, @Nullable Double frequencyPenalty, @Nullable Integer maxTokens, @Nullable Double presencePenalty, @Nullable List<String> stopSequences, @Nullable Double temperature, @Nullable Integer topK, @Nullable Double topP, @Nullable String outputSchema)
-
-
Method Details
-
getOutputSchema
- Specified by:
getOutputSchemain interfaceStructuredOutputChatOptions
-
mutate
Description copied from interface:ChatOptionsReturns a newChatOptions.Builderinitialized with the values of thisChatOptions. Concrete ChatOptions classes must override this to return the most concrete builder implementation.- Specified by:
mutatein interfaceChatOptions- Specified by:
mutatein interfaceStructuredOutputChatOptions- Overrides:
mutatein classDefaultChatOptions
-
equals
- Overrides:
equalsin classDefaultChatOptions
-
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultChatOptions
-