Skip to main content

PolicyAction

Defined in the policy module.
Rust AI Agent SDK Action to take when a policy is triggered.

Fields

NameTypeDescription
Allowvariant-
thevariant-
actionvariant-
AllowvariantAllow the action
Blockvariant-
thevariant-
actionvariant-
BlockvariantBlock the action
Warnvariant-
butvariant-
allowvariant-
WarnvariantWarn but allow
Requirevariant-
approvalvariant-
RequireApprovalvariantRequire approval
Redactvariant-
sensitivevariant-
contentvariant-
RedactvariantRedact sensitive content
Logvariant-
andvariant-
allowvariant-
LogvariantLog and allow

Source

View on GitHub

praisonai/src/policy/mod.rs at line 0