agent-core / Exports / IHookTypeExecutor
Interface: IHookTypeExecutor
Strategy interface for hook type executors
Table of contents
Properties
Methods
Properties
type
• type: "agent" | "command" | "http" | "prompt"
The hook type this executor handles
Defined in
packages/agent-core/src/hooks/types.ts:98
Methods
execute
▸ execute(definition, input): Promise<IHookResult>
Execute a hook definition with the given input
Parameters
| Name | Type |
|---|---|
definition | IHookDefinition |
input | IHookInput |
Returns
Promise<IHookResult>