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.
Fields
| Name | Type | Description |
|---|---|---|
Before | variant | – |
agent | variant | – |
starts | variant | – |
processing | variant | – |
BeforeAgent | variant | Before agent starts processing |
After | variant | – |
agent | variant | – |
completes | variant | – |
processing | variant | – |
AfterAgent | variant | After agent completes processing |
Before | variant | – |
tool | variant | – |
execution | variant | – |
BeforeTool | variant | Before tool execution |
After | variant | – |
tool | variant | – |
execution | variant | – |
AfterTool | variant | After tool execution |
Before | variant | – |
LLM | variant | – |
call | variant | – |
BeforeLlm | variant | Before LLM call |
After | variant | – |
LLM | variant | – |
call | variant | – |
AfterLlm | variant | After LLM call |
Before | variant | – |
memory | variant | – |
operation | variant | – |
BeforeMemory | variant | Before memory operation |
After | variant | – |
memory | variant | – |
operation | variant | – |
AfterMemory | variant | After memory operation |
On | variant | – |
error | variant | – |
OnError | variant | On error |
On | variant | – |
workflow | variant | – |
start | variant | – |
OnWorkflowStart | variant | On workflow start |
On | variant | – |
workflow | variant | – |
end | variant | – |
OnWorkflowEnd | variant | On workflow end |
On | variant | – |
handoff | variant | – |
OnHandoff | variant | On handoff |
Methods
all
fn all() -> Vec<PluginHook>Get all hook types
Source
View on GitHubpraisonai/src/plugins/mod.rs at line 0