ContentModerationConfiguration¶
-
class
oci.generative_ai_inference.models.
ContentModerationConfiguration
(**kwargs)¶ Bases:
object
Configuration for content moderation.
Methods
__init__
(**kwargs)Initializes a new ContentModerationConfiguration object with values from keyword arguments. Attributes
categories
[Required] Gets the categories of this ContentModerationConfiguration. -
__init__
(**kwargs)¶ Initializes a new ContentModerationConfiguration object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: categories (list[str]) – The value to assign to the categories property of this ContentModerationConfiguration.
-
categories
¶ [Required] Gets the categories of this ContentModerationConfiguration. The categories to detect in the input text.
Returns: The categories of this ContentModerationConfiguration. Return type: list[str]
-