PromptInjectionConfig

class oci.generative_ai.models.PromptInjectionConfig(**kwargs)

Bases: object

The configuration details for prompt injection (PI) detection. This is for input only.

Methods

__init__(**kwargs) Initializes a new PromptInjectionConfig object with values from keyword arguments.

Attributes

is_enabled [Required] Gets the is_enabled of this PromptInjectionConfig.
mode Gets the mode of this PromptInjectionConfig.
model_id Gets the model_id of this PromptInjectionConfig.
__init__(**kwargs)

Initializes a new PromptInjectionConfig object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • mode (str) – The value to assign to the mode property of this PromptInjectionConfig.
  • model_id (str) – The value to assign to the model_id property of this PromptInjectionConfig.
  • is_enabled (bool) – The value to assign to the is_enabled property of this PromptInjectionConfig.
is_enabled

[Required] Gets the is_enabled of this PromptInjectionConfig. Whether to enable the prompt injection feature.

Returns:The is_enabled of this PromptInjectionConfig.
Return type:bool
mode

Gets the mode of this PromptInjectionConfig. The mode of operation for prompt injection detection.

Returns:The mode of this PromptInjectionConfig.
Return type:str
model_id

Gets the model_id of this PromptInjectionConfig. The OCID of the model used for the feature.

Returns:The model_id of this PromptInjectionConfig.
Return type:str