Skip to main content

Type alias: TaskHandler()<Model, Store, AdditionalMessageOptions>

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

Type parameters

Model extends LLM

Store extends object = object

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

Parameters

step: TaskStep<Model, Store, AdditionalMessageOptions>

enqueueOutput

Returns

Promise<void>

Source

packages/llamaindex/src/agent/types.ts:75