Skip to content

agent-sdk / Exports / PromptExecutor

Class: PromptExecutor

Implements

  • IHookTypeExecutor

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new PromptExecutor(options): PromptExecutor

Parameters

NameType
optionsIPromptExecutorOptions

Returns

PromptExecutor

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

NameType
definitionIHookDefinition
inputIHookInput

Returns

Promise<IHookResult>

Implementation of

IHookTypeExecutor.execute

Defined in

agent-sdk/src/hooks/prompt-executor.ts:55

Released under the MIT License.