Skip to main content

Type Alias: TaskHandler()<Model, Store, AdditionalMessageOptions, AdditionalChatOptions>

TaskHandler<Model, Store, AdditionalMessageOptions, AdditionalChatOptions>: (step, enqueueOutput) => Promise<void>

Type Parameters

Model extends LLM

Store extends object = object

AdditionalMessageOptions extends object = Model extends LLM<object, infer AdditionalMessageOptions> ? AdditionalMessageOptions : never

AdditionalChatOptions extends object = object

Parameters

step: TaskStep<Model, Store, AdditionalMessageOptions, AdditionalChatOptions>

enqueueOutput

Returns

Promise<void>

Defined in

packages/core/agent/dist/index.d.ts:32