ContentModerationResult¶
- class oci.generative_ai_inference.models.ContentModerationResult(**kwargs)¶
Bases:
objectThe result of content moderation.
Methods:
__init__(**kwargs)Initializes a new ContentModerationResult object with values from keyword arguments.
Attributes:
[Required] Gets the categories of this ContentModerationResult.
- __init__(**kwargs)¶
Initializes a new ContentModerationResult object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
categories (list[oci.generative_ai_inference.models.CategoryScore]) – The value to assign to the categories property of this ContentModerationResult.
- property categories¶
[Required] Gets the categories of this ContentModerationResult. A list of categories with their respective scores.
- Returns
The categories of this ContentModerationResult.
- Return type