ApplyGuardrailsDetails¶
-
class
oci.generative_ai_inference.models.ApplyGuardrailsDetails(**kwargs)¶ Bases:
objectDetails for applying guardrails to the input text.
Methods
__init__(**kwargs)Initializes a new ApplyGuardrailsDetails object with values from keyword arguments. Attributes
compartment_id[Required] Gets the compartment_id of this ApplyGuardrailsDetails. guardrail_configs[Required] Gets the guardrail_configs of this ApplyGuardrailsDetails. input[Required] Gets the input of this ApplyGuardrailsDetails. -
__init__(**kwargs)¶ Initializes a new ApplyGuardrailsDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - input (oci.generative_ai_inference.models.GuardrailsInput) – The value to assign to the input property of this ApplyGuardrailsDetails.
- guardrail_configs (oci.generative_ai_inference.models.GuardrailConfigs) – The value to assign to the guardrail_configs property of this ApplyGuardrailsDetails.
- compartment_id (str) – The value to assign to the compartment_id property of this ApplyGuardrailsDetails.
-
compartment_id¶ [Required] Gets the compartment_id of this ApplyGuardrailsDetails. The OCID of the compartment to apply guardrails.
Returns: The compartment_id of this ApplyGuardrailsDetails. Return type: str
-
guardrail_configs¶ [Required] Gets the guardrail_configs of this ApplyGuardrailsDetails.
Returns: The guardrail_configs of this ApplyGuardrailsDetails. Return type: oci.generative_ai_inference.models.GuardrailConfigs
-
input¶ [Required] Gets the input of this ApplyGuardrailsDetails.
Returns: The input of this ApplyGuardrailsDetails. Return type: oci.generative_ai_inference.models.GuardrailsInput
-