Skip to main content

Workflow

@codebolt/agent


Class: Workflow

Defined in: packages/agent/src/unified/agent/workflow.ts:4

Implements

  • BaseWorkflow

Constructors

Constructor

new Workflow(config: workflowConfig): Workflow;

Defined in: packages/agent/src/unified/agent/workflow.ts:12

Parameters

ParameterType
configworkflowConfig

Returns

Workflow

Methods

execute()

execute(): WorkflowResult;

Defined in: packages/agent/src/unified/agent/workflow.ts:16

Returns

WorkflowResult

Implementation of

BaseWorkflow.execute

executeAsync()

executeAsync(): Promise<WorkflowResult>;

Defined in: packages/agent/src/unified/agent/workflow.ts:188

Returns

Promise<WorkflowResult>


executeStep()

executeStep(): workflowStepOutput;

Defined in: packages/agent/src/unified/agent/workflow.ts:65

Returns

workflowStepOutput

Implementation of

BaseWorkflow.executeStep

executeStepAsync()

executeStepAsync(): Promise<workflowStepOutput>;

Defined in: packages/agent/src/unified/agent/workflow.ts:236

Returns

Promise<workflowStepOutput>


executeSteps()

executeSteps(): workflowStepOutput[];

Defined in: packages/agent/src/unified/agent/workflow.ts:104

Returns

workflowStepOutput[]

Implementation of

BaseWorkflow.executeSteps

executeStepsAsync()

executeStepsAsync(): Promise<workflowStepOutput[]>;

Defined in: packages/agent/src/unified/agent/workflow.ts:278

Returns

Promise<workflowStepOutput[]>


getContext()

getContext(): any;

Defined in: packages/agent/src/unified/agent/workflow.ts:149

Returns

any

Implementation of

BaseWorkflow.getContext

getCurrentStepIndex()

getCurrentStepIndex(): number;

Defined in: packages/agent/src/unified/agent/workflow.ts:166

Returns

number


getExecutionId()

getExecutionId(): string;

Defined in: packages/agent/src/unified/agent/workflow.ts:174

Returns

string


getStepResults()

getStepResults(): workflowStepOutput[];

Defined in: packages/agent/src/unified/agent/workflow.ts:182

Returns

workflowStepOutput[]


getTotalSteps()

getTotalSteps(): number;

Defined in: packages/agent/src/unified/agent/workflow.ts:170

Returns

number


reset()

reset(): void;

Defined in: packages/agent/src/unified/agent/workflow.ts:158

Returns

void


setInitialContext()

setInitialContext(context: any): void;

Defined in: packages/agent/src/unified/agent/workflow.ts:178

Parameters

ParameterType
contextany

Returns

void


updateContext()

updateContext(newContext: any): void;

Defined in: packages/agent/src/unified/agent/workflow.ts:153

Parameters

ParameterType
newContextany

Returns

void

Implementation of

BaseWorkflow.updateContext