GuardrailLlmPromptSecurity class
Constructors
-
GuardrailLlmPromptSecurity({Input<
GuardrailLlmPromptSecurityCustomPolicy?> ? customPolicy, Input<GuardrailLlmPromptSecurityDefaultSettings?> ? defaultSettings, Input<bool?> ? failOpen}) -
Creates a new GuardrailLlmPromptSecurity.
customPolicyGuardrail that blocks the conversation if the LLM response is considereddefaultSettingsConfiguration for default system security settings.failOpenDetermines the behavior when the guardrail encounters an LLM error.const -
GuardrailLlmPromptSecurity.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
customPolicy
→ Input<
GuardrailLlmPromptSecurityCustomPolicy?> ? -
Guardrail that blocks the conversation if the LLM response is considered
violating the policy based on the LLM classification.
Structure is documented below.
final
-
defaultSettings
→ Input<
GuardrailLlmPromptSecurityDefaultSettings?> ? -
Configuration for default system security settings.
Structure is documented below.
final
-
failOpen
→ Input<
bool?> ? -
Determines the behavior when the guardrail encounters an LLM error.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited