Class DefaultToolCallingChatOptions
java.lang.Object
org.springframework.ai.chat.prompt.DefaultChatOptions
org.springframework.ai.model.tool.DefaultToolCallingChatOptions
- All Implemented Interfaces:
ChatOptions,ModelOptions,ToolCallingChatOptions
public class DefaultToolCallingChatOptions
extends DefaultChatOptions
implements ToolCallingChatOptions
Default implementation of
ToolCallingChatOptions.- Since:
- 1.0.0
- Author:
- Thomas Vitale, Sebastien Deleuze, Christian Tzolov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefault implementation ofToolCallingChatOptions.Builder. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultToolCallingChatOptions(@Nullable List<ToolCallback> toolCallbacks, @Nullable Map<String, Object> toolContext, @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) -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultToolCallingChatOptions.Builder<?>builder()A builder to create a newToolCallingChatOptionsinstance.boolean@Nullable List<ToolCallback>ToolCallbacks to be registered with the ChatModel.Get the configured tool context.inthashCode()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
-
DefaultToolCallingChatOptions
protected DefaultToolCallingChatOptions(@Nullable List<ToolCallback> toolCallbacks, @Nullable Map<String, Object> toolContext, @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)
-
-
Method Details
-
getToolCallbacks
Description copied from interface:ToolCallingChatOptionsToolCallbacks to be registered with the ChatModel.- Specified by:
getToolCallbacksin interfaceToolCallingChatOptions
-
getToolContext
Description copied from interface:ToolCallingChatOptionsGet the configured tool context.- Specified by:
getToolContextin interfaceToolCallingChatOptions- Returns:
- the tool context map.
-
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 interfaceToolCallingChatOptions- Overrides:
mutatein classDefaultChatOptions
-
equals
- Overrides:
equalsin classDefaultChatOptions
-
hashCode
public int hashCode()- Overrides:
hashCodein classDefaultChatOptions
-
builder
Description copied from interface:ToolCallingChatOptionsA builder to create a newToolCallingChatOptionsinstance.- Returns:
- Returns a new
ChatOptions.Builder.
-