Class GuardrailContentFilter
The content filter for a guardrail.
Inherited Members
Namespace: Glitch9.AIDevKit.AmazonAws
Assembly: Glitch9.AIDevKit.Provider.AmazonAws.dll
Syntax
public class GuardrailContentFilter
Properties
| Edit this page View SourceAction
Required. The guardrail action. Valid Values: BLOCKED | NONE
Declaration
[JsonProperty("action")]
public string Action { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Confidence
Required. The guardrail confidence. Valid Values: NONE | LOW | MEDIUM | HIGH
Declaration
[JsonProperty("confidence")]
public string Confidence { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Detected
Optional. Indicates whether content that breaches the guardrail configuration is detected.
Declaration
[JsonProperty("detected")]
public bool? Detected { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
FilterStrength
Optional. The filter strength setting for the guardrail content filter. Valid Values: NONE | LOW | MEDIUM | HIGH
Declaration
[JsonProperty("filterStrength")]
public string FilterStrength { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Type
Required. The guardrail type. Valid Values: INSULTS | HATE | SEXUAL | VIOLENCE | MISCONDUCT | PROMPT_ATTACK
Declaration
[JsonProperty("type")]
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |