Enum Class OciApiFormat

java.lang.Object
java.lang.Enum<OciApiFormat>
com.oracle.database.selectai.model.OciApiFormat
All Implemented Interfaces:
Serializable, Comparable<OciApiFormat>, Constable

public enum OciApiFormat extends Enum<OciApiFormat>
OCI Generative AI API formats that can be supplied in profile attributes.
See Also:
  • Enum Constant Details

    • COHERE

      public static final OciApiFormat COHERE
      OCI endpoint uses Cohere-compatible request/response format.
    • GENERIC

      public static final OciApiFormat GENERIC
      OCI endpoint uses the generic chat API format.
  • Method Details

    • values

      public static OciApiFormat[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OciApiFormat valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Returns the DBMS_CLOUD_AI OCI API format value.
      Returns:
      OCI API format value
    • fromValue

      public static OciApiFormat fromValue(String value)
      Parses an OCI API format value.
      Parameters:
      value - OCI API format text
      Returns:
      matching OCI API format, or null when input is null/blank
      Throws:
      IllegalArgumentException - when value is not a supported OCI API format