Skip to main content

PluginHook

Defined in the plugins module.
Rust AI Agent SDK Hook points for plugin execution.

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

fn all() -> Vec<PluginHook>
Get all hook types

Source

View on GitHub

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