Exception: Parse::Agent::PromptInjectionDetected
- Inherits:
-
SecurityError
- Object
- StandardError
- AgentError
- SecurityError
- Parse::Agent::PromptInjectionDetected
- Defined in:
- lib/parse/agent/errors.rb
Overview
Raised when a tool result contains an operator-registered
prompt-injection canary phrase AND Parse::Agent.canary_action is
:refuse. A SecurityError subclass so it routes through execute's
security rescue and is never swallowed.