# Interface WorkflowExpertFactory

Interface for expert factory dependency.

interface WorkflowExpertFactory {
createForRole(role: AgentRole): Result<Expert, Error>;
}

#### Implemented by

- ExpertFactoryAdapter

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

##### Index

### Methods

createForRole

## Methods

### createForRole

- createForRole(role: AgentRole): Result<Expert, Error>

  #### Parameters

  - role: AgentRole

  #### Returns Result<Expert, Error>

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