PromptInjectionGuardrailConfig¶
- class oci.generative_ai_agent.models.PromptInjectionGuardrailConfig(**kwargs)¶
Bases:
objectThe configuration details for Prompt Injection.
Attributes:
A constant which can be used with the input_guardrail_mode property of a PromptInjectionGuardrailConfig.
A constant which can be used with the input_guardrail_mode property of a PromptInjectionGuardrailConfig.
A constant which can be used with the input_guardrail_mode property of a PromptInjectionGuardrailConfig.
Gets the input_guardrail_mode of this PromptInjectionGuardrailConfig.
Methods:
__init__(**kwargs)Initializes a new PromptInjectionGuardrailConfig object with values from keyword arguments.
- INPUT_GUARDRAIL_MODE_BLOCK = 'BLOCK'¶
A constant which can be used with the input_guardrail_mode property of a PromptInjectionGuardrailConfig. This constant has a value of “BLOCK”
- INPUT_GUARDRAIL_MODE_DISABLE = 'DISABLE'¶
A constant which can be used with the input_guardrail_mode property of a PromptInjectionGuardrailConfig. This constant has a value of “DISABLE”
- INPUT_GUARDRAIL_MODE_INFORM = 'INFORM'¶
A constant which can be used with the input_guardrail_mode property of a PromptInjectionGuardrailConfig. This constant has a value of “INFORM”
- __init__(**kwargs)¶
Initializes a new PromptInjectionGuardrailConfig object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
input_guardrail_mode (str) – The value to assign to the input_guardrail_mode property of this PromptInjectionGuardrailConfig. Allowed values for this property are: “DISABLE”, “BLOCK”, “INFORM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- property input_guardrail_mode¶
Gets the input_guardrail_mode of this PromptInjectionGuardrailConfig. An input guardrail mode for prompt injection.
Allowed values for this property are: “DISABLE”, “BLOCK”, “INFORM”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The input_guardrail_mode of this PromptInjectionGuardrailConfig.
- Return type
str