ContentModerationConfig¶
- class oci.generative_ai_agent.models.ContentModerationConfig(**kwargs)¶
Bases:
objectThe configuration details about whether to apply the content moderation feature to input and output. Content moderation removes toxic and biased content from responses. It is recommended to use content moderation.
Methods:
__init__(**kwargs)Initializes a new ContentModerationConfig object with values from keyword arguments.
Attributes:
Gets the should_enable_on_input of this ContentModerationConfig.
Gets the should_enable_on_output of this ContentModerationConfig.
- __init__(**kwargs)¶
Initializes a new ContentModerationConfig object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
should_enable_on_input (bool) – The value to assign to the should_enable_on_input property of this ContentModerationConfig.
should_enable_on_output (bool) – The value to assign to the should_enable_on_output property of this ContentModerationConfig.
- property should_enable_on_input¶
Gets the should_enable_on_input of this ContentModerationConfig. A flag to enable or disable content moderation on input.
- Returns
The should_enable_on_input of this ContentModerationConfig.
- Return type
bool
- property should_enable_on_output¶
Gets the should_enable_on_output of this ContentModerationConfig. A flag to enable or disable content moderation on output.
- Returns
The should_enable_on_output of this ContentModerationConfig.
- Return type
bool