Plugin Hook • Rust AI Agent SDK

PluginHook: Hook points for plugin execution.

PluginHook

Defined in the plugins module.

Rust AI Agent SDK

Hook points for plugin execution.

Diagram

Allow

Deny

Event Trigger

Hook: PluginHook

Decision

Process

Block

Fields

NameTypeDescription
Beforevariant–
agentvariant–
startsvariant–
processingvariant–
BeforeAgentvariantBefore agent starts processing
Aftervariant–
agentvariant–
completesvariant–
processingvariant–
AfterAgentvariantAfter agent completes processing
Beforevariant–
toolvariant–
executionvariant–
BeforeToolvariantBefore tool execution
Aftervariant–
toolvariant–
executionvariant–
AfterToolvariantAfter tool execution
Beforevariant–
LLMvariant–
callvariant–
BeforeLlmvariantBefore LLM call
Aftervariant–
LLMvariant–
callvariant–
AfterLlmvariantAfter LLM call
Beforevariant–
memoryvariant–
operationvariant–
BeforeMemoryvariantBefore memory operation
Aftervariant–
memoryvariant–
operationvariant–
AfterMemoryvariantAfter memory operation
Onvariant–
errorvariant–
OnErrorvariantOn error
Onvariant–
workflowvariant–
startvariant–
OnWorkflowStartvariantOn workflow start
Onvariant–
workflowvariant–
endvariant–
OnWorkflowEndvariantOn workflow end
Onvariant–
handoffvariant–
OnHandoffvariantOn handoff

Methods

all

rust
fn all() -> Vec<PluginHook>

Get all hook types

Source

View on GitHub

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


Related Documentation