Class PromptInjectionConfig
The configuration details for prompt injection (PI) detection. This is for input only.
Inherited Members
Namespace: Oci.GenerativeaiService.Models
Assembly: OCI.DotNetSDK.Generativeai.dll
Syntax
public class PromptInjectionConfig
Properties
IsEnabled
Declaration
[Required(ErrorMessage = "IsEnabled is required.")]
[JsonProperty(PropertyName = "isEnabled")]
public bool? IsEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? | Whether to enable the prompt injection feature. |
Remarks
Required
Mode
Declaration
[JsonProperty(PropertyName = "mode")]
[JsonConverter(typeof(StringEnumConverter))]
public ContentModerationConfig.ModeEnum? Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentModerationConfig.ModeEnum? | The mode of operation for prompt injection detection. |
ModelId
Declaration
[JsonProperty(PropertyName = "modelId")]
public string ModelId { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The OCID of the model used for the feature. |