GuardrailConfig¶
-
class
oci.generative_ai_agent.models.
GuardrailConfig
(**kwargs)¶ Bases:
object
The configuration details about whether to apply the guardrail checks to input and output.
Methods
__init__
(**kwargs)Initializes a new GuardrailConfig object with values from keyword arguments. Attributes
content_moderation_config
Gets the content_moderation_config of this GuardrailConfig. personally_identifiable_information_config
Gets the personally_identifiable_information_config of this GuardrailConfig. prompt_injection_config
Gets the prompt_injection_config of this GuardrailConfig. -
__init__
(**kwargs)¶ Initializes a new GuardrailConfig object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - content_moderation_config (oci.generative_ai_agent.models.ContentModerationGuardrailConfig) – The value to assign to the content_moderation_config property of this GuardrailConfig.
- prompt_injection_config (oci.generative_ai_agent.models.PromptInjectionGuardrailConfig) – The value to assign to the prompt_injection_config property of this GuardrailConfig.
- personally_identifiable_information_config (oci.generative_ai_agent.models.PersonallyIdentifiableInformationGuardrailConfig) – The value to assign to the personally_identifiable_information_config property of this GuardrailConfig.
-
content_moderation_config
¶ Gets the content_moderation_config of this GuardrailConfig.
Returns: The content_moderation_config of this GuardrailConfig. Return type: oci.generative_ai_agent.models.ContentModerationGuardrailConfig
-
personally_identifiable_information_config
¶ Gets the personally_identifiable_information_config of this GuardrailConfig.
Returns: The personally_identifiable_information_config of this GuardrailConfig. Return type: oci.generative_ai_agent.models.PersonallyIdentifiableInformationGuardrailConfig
-
prompt_injection_config
¶ Gets the prompt_injection_config of this GuardrailConfig.
Returns: The prompt_injection_config of this GuardrailConfig. Return type: oci.generative_ai_agent.models.PromptInjectionGuardrailConfig
-