# Interface WorkflowStep

Single step in a workflow.

interface WorkflowStep {
id: string;
agent: AgentRole;
action: string;
inputs: Record<string, unknown>;
dependsOn?: string[];
parallel?: boolean;
retries?: number;
timeout?: number;
condition?: string;
contextBudget?: Partial<ContextBudget>;
}

- Defined in packages/nexus-agents/src/core/types/workflow.ts:49

##### Index

### Properties

id
agent
action
inputs
dependsOn?
parallel?
retries?
timeout?
condition?
contextBudget?

## Properties

### id

id: string

Unique step identifier

- Defined in packages/nexus-agents/src/core/types/workflow.ts:51

### agent

agent: AgentRole

Agent role to execute this step

- Defined in packages/nexus-agents/src/core/types/workflow.ts:53

### action

action: string

Action to perform

- Defined in packages/nexus-agents/src/core/types/workflow.ts:55

### inputs

inputs: Record<string, unknown>

Inputs for the step

- Defined in packages/nexus-agents/src/core/types/workflow.ts:57

### `Optional` dependsOn

dependsOn?: string[]

Step dependencies (wait for these to complete)

- Defined in packages/nexus-agents/src/core/types/workflow.ts:59

### `Optional` parallel

parallel?: boolean

Execute in parallel with dependencies

- Defined in packages/nexus-agents/src/core/types/workflow.ts:61

### `Optional` retries

retries?: number

Number of retry attempts

- Defined in packages/nexus-agents/src/core/types/workflow.ts:63

### `Optional` timeout

timeout?: number

Timeout in ms

- Defined in packages/nexus-agents/src/core/types/workflow.ts:65

### `Optional` condition

condition?: string

Condition for execution

- Defined in packages/nexus-agents/src/core/types/workflow.ts:67

### `Optional` contextBudget

contextBudget?: Partial<ContextBudget>

Step-specific context budget override (merges with workflow default)

- Defined in packages/nexus-agents/src/core/types/workflow.ts:69