Hook Plugin Protocol • Rust AI Agent SDK

HookPluginProtocol: Lifecycle hook plugin protocol

HookPluginProtocol

Defined in the plugins module.

Rust AI Agent SDK

Lifecycle hook plugin protocol

Diagram

Allow

Deny

Event Trigger

Hook: HookPluginProtocol

Decision

Process

Block

Methods

before_agent

rust
fn before_agent(&self, _agent_name: &str, _input: &str) -> Result<Option<String>, String>

Called before agent execution

Parameters:

NameType
_agent_name&str
_input&str

Source

View on GitHub

praisonai/src/parity/plugins.rs at line 0


Related Documentation