Class Anthropic3ChatOptions

java.lang.Object
org.springframework.ai.bedrock.anthropic3.Anthropic3ChatOptions
All Implemented Interfaces:
ChatOptions, ModelOptions

public class Anthropic3ChatOptions extends Object implements ChatOptions
Options for the Anthropic 3 chat API.
Since:
1.0.0
Author:
Ben Middleton, Thomas Vitale
  • Constructor Details

    • Anthropic3ChatOptions

      public Anthropic3ChatOptions()
  • Method Details

    • builder

      public static Anthropic3ChatOptions.Builder builder()
      Create a new Anthropic3ChatOptions.
      Returns:
      a new Anthropic3ChatOptions
    • fromOptions

      public static Anthropic3ChatOptions fromOptions(Anthropic3ChatOptions fromOptions)
      Create a new Anthropic3ChatOptions from the provided Anthropic3ChatOptions.
      Parameters:
      fromOptions - the options to copy
      Returns:
      a new Anthropic3ChatOptions
    • getTemperature

      public Double getTemperature()
      Get the temperature.
      Specified by:
      getTemperature in interface ChatOptions
      Returns:
      the temperature
    • setTemperature

      public void setTemperature(Double temperature)
      Set the temperature.
      Parameters:
      temperature - the temperature
    • getMaxTokens

      public Integer getMaxTokens()
      Get the maximum number of tokens.
      Specified by:
      getMaxTokens in interface ChatOptions
      Returns:
      the maximum number of tokens
    • setMaxTokens

      public void setMaxTokens(Integer maxTokens)
      Set the maximum number of tokens.
      Parameters:
      maxTokens - the maximum number of tokens
    • getTopK

      public Integer getTopK()
      Get the top k.
      Specified by:
      getTopK in interface ChatOptions
      Returns:
      the top k
    • setTopK

      public void setTopK(Integer topK)
      Set the top k.
      Parameters:
      topK - the top k
    • getTopP

      public Double getTopP()
      Get the top p.
      Specified by:
      getTopP in interface ChatOptions
      Returns:
      the top p
    • setTopP

      public void setTopP(Double topP)
      Set the top p.
      Parameters:
      topP - the top p
    • getStopSequences

      public List<String> getStopSequences()
      Get the stop sequences.
      Specified by:
      getStopSequences in interface ChatOptions
      Returns:
      the stop sequences
    • setStopSequences

      public void setStopSequences(List<String> stopSequences)
      Set the stop sequences.
      Parameters:
      stopSequences - the stop sequences
    • getAnthropicVersion

      public String getAnthropicVersion()
      Get the version of the generative to use.
      Returns:
      the version of the generative to use
    • setAnthropicVersion

      public void setAnthropicVersion(String anthropicVersion)
      Set the version of the generative to use.
      Parameters:
      anthropicVersion - the version of the generative to use
    • getModel

      public String getModel()
      Get the model.
      Specified by:
      getModel in interface ChatOptions
      Returns:
      the model
    • getFrequencyPenalty

      public Double getFrequencyPenalty()
      Get the frequency penalty.
      Specified by:
      getFrequencyPenalty in interface ChatOptions
      Returns:
      the frequency penalty
    • getPresencePenalty

      public Double getPresencePenalty()
      Get the presence penalty.
      Specified by:
      getPresencePenalty in interface ChatOptions
      Returns:
      the presence penalty
    • copy

      public Anthropic3ChatOptions copy()
      Get the embedding dimensions.
      Specified by:
      copy in interface ChatOptions
      Returns:
      the embedding dimensions