انتقل إلى المحتوى الرئيسي

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:23


initializeStep

initializeStep(task, params?): TaskStep

Parameters

NameType
taskTask
params?ExtraParams

Returns

TaskStep

Defined in

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


runStep

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

Parameters

NameType
stepTaskStep
taskTask
params?ExtraParams

Returns

Promise<TaskStepOutput>

Defined in

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


streamStep

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

Parameters

NameType
stepTaskStep
taskTask
params?ExtraParams

Returns

Promise<TaskStepOutput>

Defined in

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