GuardrailsResults¶
-
class
oci.generative_ai_inference.models.GuardrailsResults(**kwargs)¶ Bases:
objectThe results of applying each guardrail.
Methods
__init__(**kwargs)Initializes a new GuardrailsResults object with values from keyword arguments. Attributes
content_moderationGets the content_moderation of this GuardrailsResults. personally_identifiable_informationGets the personally_identifiable_information of this GuardrailsResults. prompt_injectionGets the prompt_injection of this GuardrailsResults. -
__init__(**kwargs)¶ Initializes a new GuardrailsResults object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - content_moderation (oci.generative_ai_inference.models.ContentModerationResult) – The value to assign to the content_moderation property of this GuardrailsResults.
- personally_identifiable_information (list[oci.generative_ai_inference.models.PersonallyIdentifiableInformationResult]) – The value to assign to the personally_identifiable_information property of this GuardrailsResults.
- prompt_injection (oci.generative_ai_inference.models.PromptInjectionProtectionResult) – The value to assign to the prompt_injection property of this GuardrailsResults.
-
content_moderation¶ Gets the content_moderation of this GuardrailsResults.
Returns: The content_moderation of this GuardrailsResults. Return type: oci.generative_ai_inference.models.ContentModerationResult
-
personally_identifiable_information¶ Gets the personally_identifiable_information of this GuardrailsResults. The result of PII detection
Returns: The personally_identifiable_information of this GuardrailsResults. Return type: list[oci.generative_ai_inference.models.PersonallyIdentifiableInformationResult]
-
prompt_injection¶ Gets the prompt_injection of this GuardrailsResults.
Returns: The prompt_injection of this GuardrailsResults. Return type: oci.generative_ai_inference.models.PromptInjectionProtectionResult
-