ApplyGuardrailsResult¶
-
class
oci.generative_ai_inference.models.ApplyGuardrailsResult(**kwargs)¶ Bases:
objectThe result of applying guardrails to the input text.
Methods
__init__(**kwargs)Initializes a new ApplyGuardrailsResult object with values from keyword arguments. Attributes
guardrail_versionGets the guardrail_version of this ApplyGuardrailsResult. results[Required] Gets the results of this ApplyGuardrailsResult. -
__init__(**kwargs)¶ Initializes a new ApplyGuardrailsResult object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - results (oci.generative_ai_inference.models.GuardrailsResults) – The value to assign to the results property of this ApplyGuardrailsResult.
- guardrail_version (oci.generative_ai_inference.models.GuardrailVersionResponse) – The value to assign to the guardrail_version property of this ApplyGuardrailsResult.
-
guardrail_version¶ Gets the guardrail_version of this ApplyGuardrailsResult.
Returns: The guardrail_version of this ApplyGuardrailsResult. Return type: oci.generative_ai_inference.models.GuardrailVersionResponse
-
results¶ [Required] Gets the results of this ApplyGuardrailsResult.
Returns: The results of this ApplyGuardrailsResult. Return type: oci.generative_ai_inference.models.GuardrailsResults
-