AppVersionSnapshotGuardrailLlmPromptSecurityCustomPolicy class
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