AppVersionSnapshotGuardrailLlmPromptSecurityCustomPolicy class

Constructors

AppVersionSnapshotGuardrailLlmPromptSecurityCustomPolicy({Input<bool?>? failOpen, Input<int?>? maxConversationMessages, Input<List<AppVersionSnapshotGuardrailLlmPromptSecurityCustomPolicyModelSetting>?>? modelSettings, Input<String?>? policyScope, Input<String?>? prompt})
Creates a new AppVersionSnapshotGuardrailLlmPromptSecurityCustomPolicy. failOpen (Output) maxConversationMessages (Output) modelSettings (Output) policyScope (Output) prompt (Output)
const
AppVersionSnapshotGuardrailLlmPromptSecurityCustomPolicy.fromMap(Map<String, dynamic> map)
factory

Properties

failOpen → Input<bool?>?
(Output) If an error occurs during the policy check, fail open and do not trigger the guardrail.
final
hashCode → int
The hash code for this object.
no setterinherited
maxConversationMessages → Input<int?>?
(Output) When checking this policy, consider the last 'n' messages in the conversation. When not set a default value of 10 will be used.
final
modelSettings → Input<List<AppVersionSnapshotGuardrailLlmPromptSecurityCustomPolicyModelSetting>?>?
(Output) Model settings contains various configurations for the LLM model. Structure is documented below.
final
policyScope → Input<String?>?
(Output) Defines when to apply the policy check during the conversation. If set to POLICY_SCOPE_UNSPECIFIED, the policy will be applied to the user input. When applying the policy to the agent response, additional latency will be introduced before the agent can respond. Possible values: USER_QUERY AGENT_RESPONSE USER_QUERY_AND_AGENT_RESPONSE
final
prompt → Input<String?>?
(Output) The prompt definition. If not set, default prompt will be used.
final
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