ModelModalitySupport

class oci.generative_ai.models.ModelModalitySupport(**kwargs)

Bases: object

A supported input-to-output modality transformation for a model.

Attributes:

INPUT_AUDIO

A constant which can be used with the input property of a ModelModalitySupport.

INPUT_IMAGE

A constant which can be used with the input property of a ModelModalitySupport.

INPUT_TEXT

A constant which can be used with the input property of a ModelModalitySupport.

INPUT_VIDEO

A constant which can be used with the input property of a ModelModalitySupport.

OUTPUT_AUDIO

A constant which can be used with the output property of a ModelModalitySupport.

OUTPUT_IMAGE

A constant which can be used with the output property of a ModelModalitySupport.

OUTPUT_TEXT

A constant which can be used with the output property of a ModelModalitySupport.

OUTPUT_VIDEO

A constant which can be used with the output property of a ModelModalitySupport.

input

[Required] Gets the input of this ModelModalitySupport.

output

[Required] Gets the output of this ModelModalitySupport.

Methods:

__init__(**kwargs)

Initializes a new ModelModalitySupport object with values from keyword arguments.

INPUT_AUDIO = 'AUDIO'

A constant which can be used with the input property of a ModelModalitySupport. This constant has a value of “AUDIO”

INPUT_IMAGE = 'IMAGE'

A constant which can be used with the input property of a ModelModalitySupport. This constant has a value of “IMAGE”

INPUT_TEXT = 'TEXT'

A constant which can be used with the input property of a ModelModalitySupport. This constant has a value of “TEXT”

INPUT_VIDEO = 'VIDEO'

A constant which can be used with the input property of a ModelModalitySupport. This constant has a value of “VIDEO”

OUTPUT_AUDIO = 'AUDIO'

A constant which can be used with the output property of a ModelModalitySupport. This constant has a value of “AUDIO”

OUTPUT_IMAGE = 'IMAGE'

A constant which can be used with the output property of a ModelModalitySupport. This constant has a value of “IMAGE”

OUTPUT_TEXT = 'TEXT'

A constant which can be used with the output property of a ModelModalitySupport. This constant has a value of “TEXT”

OUTPUT_VIDEO = 'VIDEO'

A constant which can be used with the output property of a ModelModalitySupport. This constant has a value of “VIDEO”

__init__(**kwargs)

Initializes a new ModelModalitySupport object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • input (str) – The value to assign to the input property of this ModelModalitySupport. Allowed values for this property are: “AUDIO”, “VIDEO”, “TEXT”, “IMAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • output (str) – The value to assign to the output property of this ModelModalitySupport. Allowed values for this property are: “AUDIO”, “VIDEO”, “TEXT”, “IMAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

property input

[Required] Gets the input of this ModelModalitySupport. The source modality accepted by the model.

Allowed values for this property are: “AUDIO”, “VIDEO”, “TEXT”, “IMAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The input of this ModelModalitySupport.

Return type

str

property output

[Required] Gets the output of this ModelModalitySupport. The target modality produced by the model.

Allowed values for this property are: “AUDIO”, “VIDEO”, “TEXT”, “IMAGE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The output of this ModelModalitySupport.

Return type

str