Interface: AgentWorker<ExtraParams>
Type parameters
Name | Type |
---|---|
ExtraParams | extends object = object |
Implemented by
Methods
finalizeTask
▸ finalizeTask(task
, params?
): void
Parameters
Name | Type |
---|---|
task | Task |
params? | ExtraParams |
Returns
void
Defined in
packages/core/src/agent/types.ts:21
initializeStep
▸ initializeStep(task
, params?
): TaskStep
Parameters
Name | Type |
---|---|
task | Task |
params? | ExtraParams |
Returns
Defined in
packages/core/src/agent/types.ts:10
runStep
▸ runStep(step
, task
, params?
): Promise
<TaskStepOutput
>
Parameters
Name | Type |
---|---|
step | TaskStep |
task | Task |
params? | ExtraParams |
Returns
Promise
<TaskStepOutput
>
Defined in
packages/core/src/agent/types.ts:11
streamStep
▸ streamStep(step
, task
, params?
): Promise
<TaskStepOutput
>
Parameters
Name | Type |
---|---|
step | TaskStep |
task | Task |
params? | ExtraParams |
Returns
Promise
<TaskStepOutput
>