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