Zum Hauptinhalt springen

Class: TaskStep

TaskStep is a unit of work for the agent.

Param

taskId

Param

stepId

Param

input

Param

stepState

Implements

  • ITaskStep

Constructors

constructor

new TaskStep(taskId, stepId, input?, stepState?): TaskStep

Parameters

NameType
taskIdstring
stepIdstring
input?null | string
stepState?null | Record<string, any>

Returns

TaskStep

Defined in

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

Properties

input

Optional input: null | string

Implementation of

ITaskStep.input

Defined in

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


isReady

isReady: boolean = true

Implementation of

ITaskStep.isReady

Defined in

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


nextSteps

nextSteps: Record<string, TaskStep> = {}

Implementation of

ITaskStep.nextSteps

Defined in

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


prevSteps

prevSteps: Record<string, TaskStep> = {}

Implementation of

ITaskStep.prevSteps

Defined in

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


stepId

stepId: string

Implementation of

ITaskStep.stepId

Defined in

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


stepState

stepState: Record<string, any> = {}

Implementation of

ITaskStep.stepState

Defined in

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


taskId

taskId: string

Implementation of

ITaskStep.taskId

Defined in

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

Methods

getNextStep

getNextStep(stepId, input?, stepState?): TaskStep

Parameters

NameType
stepIdstring
input?string
stepState?Record<string, unknown>

Returns

TaskStep

Implementation of

ITaskStep.getNextStep

Defined in

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


linkStep

linkStep(nextStep): void

Parameters

NameType
nextStepTaskStep

Returns

void

Implementation of

ITaskStep.linkStep

Defined in

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