跳到主要内容

Interface: AgentWorker<ExtraParams>

Type parameters

NameType
ExtraParamsextends object = object

Implemented by

Methods

finalizeTask

finalizeTask(task, params?): void

Parameters

NameType
taskTask
params?ExtraParams

Returns

void

Defined in

packages/core/src/agent/types.ts:21


initializeStep

initializeStep(task, params?): TaskStep

Parameters

NameType
taskTask
params?ExtraParams

Returns

TaskStep

Defined in

packages/core/src/agent/types.ts:10


runStep

runStep(step, task, params?): Promise<TaskStepOutput>

Parameters

NameType
stepTaskStep
taskTask
params?ExtraParams

Returns

Promise<TaskStepOutput>

Defined in

packages/core/src/agent/types.ts:11


streamStep

streamStep(step, task, params?): Promise<TaskStepOutput>

Parameters

NameType
stepTaskStep
taskTask
params?ExtraParams

Returns

Promise<TaskStepOutput>

Defined in

packages/core/src/agent/types.ts:16