# Class AgentStepExecutor

Executor for individual workflow steps.

- Defined in packages/nexus-agents/src/workflows/step-executor.ts:101

##### Index

### Constructors

constructor

### Methods

execute

## Constructors

### constructor

- new AgentStepExecutor(deps: StepExecutorDeps): AgentStepExecutor

  #### Parameters

  - deps: StepExecutorDeps

  #### Returns AgentStepExecutor

  - Defined in packages/nexus-agents/src/workflows/step-executor.ts:104

## Methods

### execute

- execute(
  step: WorkflowStep,
  context: WorkflowExecutionContext,
  options?: StepExecutionOptions,
  ): Promise<Result<StepResult, WorkflowError>>

  #### Parameters

  - step: WorkflowStep
  - context: WorkflowExecutionContext
  - `Optional` options: StepExecutionOptions

  #### Returns Promise<Result<StepResult, WorkflowError>>

  - Defined in packages/nexus-agents/src/workflows/step-executor.ts:108