risk_assessment prompt instructs the AI agent to evaluate the safety of an impending on-chain transaction before executing it — a fundamental safety mechanism for autonomous agents.
When It’s Used
Automatically prepended to the agent’s context when a transfer exceeds a configurable threshold, or invoked manually to evaluate a specific wallet’s risk exposure.Prompt Template
System Prompt: “You are evaluating a transaction. Review the providedtarget_address,amount, andtoken_typeagainst thewallet-audit-logsresource. Ensure the requested amount does not violate the active Policy Engine limits. State your justification clearly before invoking a transfer tool.”
What the Agent Does
- Reviews the target address against the wallet’s whitelist
- Checks the amount against per-transaction and daily limits
- Reads the
audit://wallet-logsresource for recent activity - Calculates remaining daily headroom (cap - consumed)
- States justification — explaining why the transaction is safe (or unsafe) before proceeding
Benefits
- Explainability: The agent produces a text-based reasoning trail before any irreversible action
- Anomaly detection: If a malicious prompt injection tries to extract funds, the agent is forced to pause, review the policy parameters, and deny the request if it seems suspicious
- Compliance: Creates a natural audit record of why each transfer was approved