Class OCICohereChatOptions

java.lang.Object
org.springframework.ai.oci.cohere.OCICohereChatOptions
All Implemented Interfaces:
ChatOptions, ModelOptions

public class OCICohereChatOptions extends Object implements ChatOptions
The configuration information for OCI chat requests.
Author:
Anders Swanson, Ilayaperumal Gopinathan
  • Constructor Details

    • OCICohereChatOptions

      public OCICohereChatOptions()
  • Method Details

    • fromOptions

      public static OCICohereChatOptions fromOptions(OCICohereChatOptions fromOptions)
    • builder

      public static OCICohereChatOptions.Builder builder()
      Description copied from interface: ChatOptions
      Creates a new ChatOptions.Builder to create the default ChatOptions.
      Returns:
      Returns a new ChatOptions.Builder.
    • setPresencePenalty

      public void setPresencePenalty(Double presencePenalty)
    • setFrequencyPenalty

      public void setFrequencyPenalty(Double frequencyPenalty)
    • setTopK

      public void setTopK(Integer topK)
    • setTopP

      public void setTopP(Double topP)
    • setTemperature

      public void setTemperature(Double temperature)
    • getPreambleOverride

      public String getPreambleOverride()
    • setPreambleOverride

      public void setPreambleOverride(String preambleOverride)
    • getServingMode

      public String getServingMode()
    • setServingMode

      public void setServingMode(String servingMode)
    • getCompartment

      public String getCompartment()
    • setCompartment

      public void setCompartment(String compartment)
    • setMaxTokens

      public void setMaxTokens(Integer maxTokens)
    • setModel

      public void setModel(String model)
    • getStop

      public List<String> getStop()
    • setStop

      public void setStop(List<String> stop)
    • getDocuments

      public List<Object> getDocuments()
    • setDocuments

      public void setDocuments(List<Object> documents)
    • getTools

      public List<com.oracle.bmc.generativeaiinference.model.CohereTool> getTools()
    • setTools

      public void setTools(List<com.oracle.bmc.generativeaiinference.model.CohereTool> tools)
    • getModel

      public String getModel()
      Description copied from interface: ChatOptions
      Returns the model to use for the chat.
      Specified by:
      getModel in interface ChatOptions
      Returns:
      the model to use for the chat
    • getFrequencyPenalty

      public Double getFrequencyPenalty()
      Description copied from interface: ChatOptions
      Returns the frequency penalty to use for the chat.
      Specified by:
      getFrequencyPenalty in interface ChatOptions
      Returns:
      the frequency penalty to use for the chat
    • getMaxTokens

      public Integer getMaxTokens()
      Description copied from interface: ChatOptions
      Returns the maximum number of tokens to use for the chat.
      Specified by:
      getMaxTokens in interface ChatOptions
      Returns:
      the maximum number of tokens to use for the chat
    • getPresencePenalty

      public Double getPresencePenalty()
      Description copied from interface: ChatOptions
      Returns the presence penalty to use for the chat.
      Specified by:
      getPresencePenalty in interface ChatOptions
      Returns:
      the presence penalty to use for the chat
    • getStopSequences

      public List<String> getStopSequences()
      Description copied from interface: ChatOptions
      Returns the stop sequences to use for the chat.
      Specified by:
      getStopSequences in interface ChatOptions
      Returns:
      the stop sequences to use for the chat
    • getTemperature

      public Double getTemperature()
      Description copied from interface: ChatOptions
      Returns the temperature to use for the chat.
      Specified by:
      getTemperature in interface ChatOptions
      Returns:
      the temperature to use for the chat
    • getTopK

      public Integer getTopK()
      Description copied from interface: ChatOptions
      Returns the top K to use for the chat.
      Specified by:
      getTopK in interface ChatOptions
      Returns:
      the top K to use for the chat
    • getTopP

      public Double getTopP()
      Description copied from interface: ChatOptions
      Returns the top P to use for the chat.
      Specified by:
      getTopP in interface ChatOptions
      Returns:
      the top P to use for the chat
    • copy

      public ChatOptions copy()
      Description copied from interface: ChatOptions
      Returns a copy of this ChatOptions.
      Specified by:
      copy in interface ChatOptions
      Returns:
      a copy of this ChatOptions