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:23
initializeStep
▸ initializeStep(task
, params?
): TaskStep
Parameters
Name | Type |
---|---|
task | Task |
params? | ExtraParams |
Returns
Defined in
packages/core/src/agent/types.ts:12
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:13
streamStep
▸ streamStep(step
, task
, params?
): Promise
<TaskStepOutput
>
Parameters
Name | Type |
---|---|
step | TaskStep |
task | Task |
params? | ExtraParams |
Returns
Promise
<TaskStepOutput
>