Class DashScopeChatOptions

java.lang.Object
com.alibaba.cloud.ai.dashscope.chat.DashScopeChatOptions
All Implemented Interfaces:
org.springframework.ai.chat.prompt.ChatOptions, org.springframework.ai.model.ModelOptions, org.springframework.ai.model.tool.ToolCallingChatOptions

public class DashScopeChatOptions extends Object implements org.springframework.ai.model.tool.ToolCallingChatOptions
Options for the DashScope Chat API.
Author:
nottyjay
  • Constructor Details

    • DashScopeChatOptions

      public DashScopeChatOptions()
  • Method Details

    • getTranslationOptions

      public DashScopeApiSpec.TranslationOptions getTranslationOptions()
    • setTranslationOptions

      public void setTranslationOptions(DashScopeApiSpec.TranslationOptions translationOptions)
    • getOutputFormat

      public String getOutputFormat()
    • setOutputFormat

      public void setOutputFormat(String outputFormat)
    • getTopLogProbs

      public Integer getTopLogProbs()
    • setTopLogProbs

      public void setTopLogProbs(Integer topLogProbs)
    • getLogprobs

      public Boolean getLogprobs()
    • setLogprobs

      public void setLogprobs(Boolean logprobs)
    • getOcrOptions

      public DashScopeApiSpec.OCROption getOcrOptions()
    • setOcrOptions

      public void setOcrOptions(DashScopeApiSpec.OCROption ocrOptions)
    • getVlEnableImageHwOutput

      public Boolean getVlEnableImageHwOutput()
    • setVlEnableImageHwOutput

      public void setVlEnableImageHwOutput(Boolean vlEnableImageHwOutput)
    • getAudio

      public Object getAudio()
    • setAudio

      public void setAudio(Object audio)
    • getStreamOptions

      public Object getStreamOptions()
    • setStreamOptions

      public void setStreamOptions(Object streamOptions)
    • getAsrOptions

      public Object getAsrOptions()
    • setAsrOptions

      public void setAsrOptions(Object asrOptions)
    • getMaxInputTokens

      public Integer getMaxInputTokens()
    • setMaxInputTokens

      public void setMaxInputTokens(Integer maxInputTokens)
    • getModalities

      public List<String> getModalities()
    • setModalities

      public void setModalities(List<String> modalities)
    • getModel

      public String getModel()
      Specified by:
      getModel in interface org.springframework.ai.chat.prompt.ChatOptions
    • getFrequencyPenalty

      public Double getFrequencyPenalty()
      Specified by:
      getFrequencyPenalty in interface org.springframework.ai.chat.prompt.ChatOptions
    • getMaxTokens

      public Integer getMaxTokens()
      Specified by:
      getMaxTokens in interface org.springframework.ai.chat.prompt.ChatOptions
    • setMaxTokens

      public void setMaxTokens(Integer maxTokens)
    • getPresencePenalty

      public Double getPresencePenalty()
      Specified by:
      getPresencePenalty in interface org.springframework.ai.chat.prompt.ChatOptions
    • getStopSequences

      public List<String> getStopSequences()
      Specified by:
      getStopSequences in interface org.springframework.ai.chat.prompt.ChatOptions
    • setModel

      public void setModel(String model)
    • getStream

      public Boolean getStream()
    • setStream

      public void setStream(Boolean stream)
    • getTemperature

      public Double getTemperature()
      Specified by:
      getTemperature in interface org.springframework.ai.chat.prompt.ChatOptions
    • setTemperature

      public void setTemperature(Double temperature)
    • setSearchOptions

      public void setSearchOptions(DashScopeApiSpec.SearchOptions searchOptions)
    • getSearchOptions

      public DashScopeApiSpec.SearchOptions getSearchOptions()
    • getParallelToolCalls

      public Boolean getParallelToolCalls()
    • setParallelToolCalls

      public void setParallelToolCalls(Boolean parallelToolCalls)
    • setHttpHeaders

      public void setHttpHeaders(Map<String,String> httpHeaders)
    • getHttpHeaders

      public Map<String,String> getHttpHeaders()
    • getTopP

      public Double getTopP()
      Specified by:
      getTopP in interface org.springframework.ai.chat.prompt.ChatOptions
    • copy

      public org.springframework.ai.chat.prompt.ChatOptions copy()
      Specified by:
      copy in interface org.springframework.ai.chat.prompt.ChatOptions
    • setTopP

      public void setTopP(Double topP)
    • getTopK

      public Integer getTopK()
      Specified by:
      getTopK in interface org.springframework.ai.chat.prompt.ChatOptions
    • setTopK

      public void setTopK(Integer topK)
    • getStop

      public List<Object> getStop()
    • setStop

      public void setStop(List<Object> stop)
    • getResponseFormat

      public DashScopeResponseFormat getResponseFormat()
    • getThinkingBudget

      public Integer getThinkingBudget()
    • setThinkingBudget

      public void setThinkingBudget(Integer thinkingBudget)
    • setResponseFormat

      public void setResponseFormat(DashScopeResponseFormat responseFormat)
    • getEnableSearch

      public Boolean getEnableSearch()
    • setEnableSearch

      public void setEnableSearch(Boolean enableSearch)
    • getRepetitionPenalty

      public Double getRepetitionPenalty()
    • setRepetitionPenalty

      public void setRepetitionPenalty(Double repetitionPenalty)
    • getTools

      public List<DashScopeApiSpec.FunctionTool> getTools()
    • setTools

      public void setTools(List<DashScopeApiSpec.FunctionTool> tools)
    • getToolChoice

      public Object getToolChoice()
    • setToolChoice

      public void setToolChoice(Object toolChoice)
    • getSeed

      public Integer getSeed()
    • setSeed

      public void setSeed(Integer seed)
    • getToolCallbacks

      public List<org.springframework.ai.tool.ToolCallback> getToolCallbacks()
      Specified by:
      getToolCallbacks in interface org.springframework.ai.model.tool.ToolCallingChatOptions
    • setToolCallbacks

      public void setToolCallbacks(List<org.springframework.ai.tool.ToolCallback> toolCallbacks)
      Specified by:
      setToolCallbacks in interface org.springframework.ai.model.tool.ToolCallingChatOptions
    • getToolNames

      public Set<String> getToolNames()
      Specified by:
      getToolNames in interface org.springframework.ai.model.tool.ToolCallingChatOptions
    • setToolNames

      public void setToolNames(Set<String> toolNames)
      Specified by:
      setToolNames in interface org.springframework.ai.model.tool.ToolCallingChatOptions
    • getInternalToolExecutionEnabled

      public Boolean getInternalToolExecutionEnabled()
      Specified by:
      getInternalToolExecutionEnabled in interface org.springframework.ai.model.tool.ToolCallingChatOptions
    • setInternalToolExecutionEnabled

      public void setInternalToolExecutionEnabled(Boolean internalToolExecutionEnabled)
      Specified by:
      setInternalToolExecutionEnabled in interface org.springframework.ai.model.tool.ToolCallingChatOptions
    • getToolContext

      public Map<String,Object> getToolContext()
      Specified by:
      getToolContext in interface org.springframework.ai.model.tool.ToolCallingChatOptions
    • setToolContext

      public void setToolContext(Map<String,Object> toolContext)
      Specified by:
      setToolContext in interface org.springframework.ai.model.tool.ToolCallingChatOptions
    • getIncrementalOutput

      public Boolean getIncrementalOutput()
    • setIncrementalOutput

      public void setIncrementalOutput(Boolean incrementalOutput)
    • getVlHighResolutionImages

      public Boolean getVlHighResolutionImages()
    • setVlHighResolutionImages

      public void setVlHighResolutionImages(Boolean vlHighResolutionImages)
    • getEnableThinking

      public Boolean getEnableThinking()
    • setEnableThinking

      public void setEnableThinking(Boolean enableThinking)
    • getMultiModel

      public Boolean getMultiModel()
    • setMultiModel

      public void setMultiModel(Boolean multiModel)
    • getExtraBody

      public Map<String,Object> getExtraBody()
    • setExtraBody

      public void setExtraBody(Map<String,Object> extraBody)
    • builder

    • fromOptions

      public static DashScopeChatOptions fromOptions(DashScopeChatOptions fromOptions)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object