ApplyGuardrailsDetails

class oci.generative_ai_inference.models.ApplyGuardrailsDetails(**kwargs)

Bases: object

Details 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:
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