HookRunner
Defined in the hooks module.Rust AI Agent SDK Hook runner for executing hooks in a workflow
Fields
| Name | Type | Description |
|---|---|---|
registry | Arc<HookRegistry> | - |
Methods
new
| Name | Type |
|---|---|
registry | HookRegistry |
before_tool
| Name | Type |
|---|---|
session_id | &str |
tool_name | &str |
args | serde_json::Value |
after_tool
| Name | Type |
|---|---|
session_id | &str |
tool_name | &str |
result | serde_json::Value |
before_agent
| Name | Type |
|---|---|
session_id | &str |
agent_name | &str |
message | &str |
after_agent
| Name | Type |
|---|---|
session_id | &str |
agent_name | &str |
response | &str |
on_error
| Name | Type |
|---|---|
session_id | &str |
error | &str |
Source
View on GitHub
praisonai/src/hooks/mod.rs at line 461
