Class OCICohereChatOptions

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

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

    • OCICohereChatOptions

      public OCICohereChatOptions()
  • Method Details

    • fromOptions

      public static OCICohereChatOptions fromOptions(OCICohereChatOptions fromOptions)
    • builder

      public static OCICohereChatOptions.Builder 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()
      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
    • 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
    • getTemperature

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

      public Integer getTopK()
      Specified by:
      getTopK in interface org.springframework.ai.chat.prompt.ChatOptions
    • 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
    • hashCode

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

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