agent-sdk / Exports / PromptExecutor
Class: PromptExecutor
Implements
IHookTypeExecutor
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new PromptExecutor(options): PromptExecutor
Parameters
| Name | Type |
|---|---|
options | IPromptExecutorOptions |
Returns
Defined in
agent-sdk/src/hooks/prompt-executor.ts:50
Properties
type
• Readonly type: "prompt"
Implementation of
IHookTypeExecutor.type
Defined in
agent-sdk/src/hooks/prompt-executor.ts:45
Methods
execute
▸ execute(definition, input): Promise<IHookResult>
Parameters
| Name | Type |
|---|---|
definition | IHookDefinition |
input | IHookInput |
Returns
Promise<IHookResult>
Implementation of
IHookTypeExecutor.execute