Class OracleGenAiChatOptions

java.lang.Object
com.oracle.spring.ai.oracle.OracleGenAiChatOptions
All Implemented Interfaces:
org.springframework.ai.chat.prompt.ChatOptions, org.springframework.ai.model.ModelOptions, org.springframework.ai.model.tool.ToolCallingChatOptions
Direct Known Subclasses:
ChatProperties

public class OracleGenAiChatOptions extends Object implements org.springframework.ai.model.tool.ToolCallingChatOptions
OCI Generative AI chat options.
  • Constructor Details

    • OracleGenAiChatOptions

      public OracleGenAiChatOptions()
  • Method Details

    • builder

      public static OracleGenAiChatOptions.Builder builder()
    • fromOptions

      public static OracleGenAiChatOptions fromOptions(org.springframework.ai.chat.prompt.ChatOptions options)
    • getModel

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

      public void setModel(String model)
    • getFrequencyPenalty

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

      public void setFrequencyPenalty(Double frequencyPenalty)
    • 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
    • setPresencePenalty

      public void setPresencePenalty(Double presencePenalty)
    • getStopSequences

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

      public void setStopSequences(List<String> stopSequences)
    • getTemperature

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

      public void setTemperature(Double temperature)
    • getTopK

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

      public void setTopK(Integer topK)
    • getTopP

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

      public void setTopP(Double topP)
    • getCompartmentId

      public String getCompartmentId()
    • setCompartmentId

      public void setCompartmentId(String compartmentId)
    • getServingMode

      public OracleGenAiServingMode getServingMode()
    • setServingMode

      public void setServingMode(OracleGenAiServingMode servingMode)
    • getEndpointId

      public String getEndpointId()
    • setEndpointId

      public void setEndpointId(String endpointId)
    • getApiFormat

      public GenAiApiFormat getApiFormat()
    • setApiFormat

      public void setApiFormat(GenAiApiFormat apiFormat)
    • 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)
    • 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)
    • copy

      public <T extends org.springframework.ai.chat.prompt.ChatOptions> T copy()
    • mutate

      Specified by:
      mutate in interface org.springframework.ai.chat.prompt.ChatOptions
      Specified by:
      mutate in interface org.springframework.ai.model.tool.ToolCallingChatOptions
    • validate

      default void validate()
    • copyServingOptionsTo

      default void copyServingOptionsTo(com.oracle.spring.ai.oracle.OracleGenAiServingOptions target)
    • mergeServingOptionsTo

      default void mergeServingOptionsTo(com.oracle.spring.ai.oracle.OracleGenAiServingOptions target)
    • toServingMode

      default com.oracle.bmc.generativeaiinference.model.ServingMode toServingMode()