# Interface WorkflowEngineFactoryConfig

Configuration for the workflow engine factory.

interface WorkflowEngineFactoryConfig {
builtInTemplates?: Map<string, WorkflowDefinition>;
modelAdapter?: IModelAdapter;
expertFactory?: WorkflowExpertFactory;
useMockExecutor?: boolean;
defaultTimeoutMs?: number;
maxConcurrency?: number;
templatePaths?: string[];
contextManagerConfig?: Omit<ContextManagerConfig, "budget">;
defaultBudget?: ContextBudget;
logger?: ILogger;
budgetCircuitBreakerConfig?: Partial<
{
warningThreshold: number;
criticalThreshold: number;
cooldownMs: number;
recoveryProbes: number;
hardStop: boolean;
stepReserve: number;
},
>;
enableBudgetEnforcement?: boolean;
}

#### Hierarchy (View Summary)

- WorkflowEngineConfig
  - WorkflowEngineFactoryConfig
    - WorkflowAdapterConfig

- Defined in packages/nexus-agents/src/workflows/workflow-engine-factory.ts:63

##### Index

### Properties

builtInTemplates?
modelAdapter?
expertFactory?
useMockExecutor?
defaultTimeoutMs?
maxConcurrency?
templatePaths?
contextManagerConfig?
defaultBudget?
logger?
budgetCircuitBreakerConfig?
enableBudgetEnforcement?

## Properties

### `Optional` builtInTemplates

builtInTemplates?: Map<string, WorkflowDefinition>

Pre-loaded built-in templates (if not provided, loads at creation time)

- Defined in packages/nexus-agents/src/workflows/workflow-engine-factory.ts:65

### `Optional` modelAdapter

modelAdapter?: IModelAdapter

Optional pre-configured model adapter for expert agents

- Defined in packages/nexus-agents/src/workflows/workflow-engine-factory.ts:67

### `Optional` expertFactory

expertFactory?: WorkflowExpertFactory

Optional expert factory for dependency injection (useful for testing)

- Defined in packages/nexus-agents/src/workflows/workflow-engine-factory.ts:69

### `Optional` useMockExecutor

useMockExecutor?: boolean

Use mock executor instead of real StepExecutor (default: false when expertFactory provided)

- Defined in packages/nexus-agents/src/workflows/workflow-engine-factory.ts:71

### `Optional` defaultTimeoutMs

defaultTimeoutMs?: number

Inherited from WorkflowEngineConfig.defaultTimeoutMs

- Defined in packages/nexus-agents/src/workflows/workflow-engine-helpers.ts:38

### `Optional` maxConcurrency

maxConcurrency?: number

Inherited from WorkflowEngineConfig.maxConcurrency

- Defined in packages/nexus-agents/src/workflows/workflow-engine-helpers.ts:39

### `Optional` templatePaths

templatePaths?: string[]

Inherited from WorkflowEngineConfig.templatePaths

- Defined in packages/nexus-agents/src/workflows/workflow-engine-helpers.ts:40

### `Optional` contextManagerConfig

contextManagerConfig?: Omit<ContextManagerConfig, "budget">

Inherited from WorkflowEngineConfig.contextManagerConfig

- Defined in packages/nexus-agents/src/workflows/workflow-engine-helpers.ts:41

### `Optional` defaultBudget

defaultBudget?: ContextBudget

Inherited from WorkflowEngineConfig.defaultBudget

- Defined in packages/nexus-agents/src/workflows/workflow-engine-helpers.ts:42

### `Optional` logger

logger?: ILogger

Inherited from WorkflowEngineConfig.logger

- Defined in packages/nexus-agents/src/workflows/workflow-engine-helpers.ts:43

### `Optional` budgetCircuitBreakerConfig

budgetCircuitBreakerConfig?: Partial<
{
warningThreshold: number;
criticalThreshold: number;
cooldownMs: number;
recoveryProbes: number;
hardStop: boolean;
stepReserve: number;
},
>

Budget circuit breaker configuration

Inherited from WorkflowEngineConfig.budgetCircuitBreakerConfig

- Defined in packages/nexus-agents/src/workflows/workflow-engine-helpers.ts:45

### `Optional` enableBudgetEnforcement

enableBudgetEnforcement?: boolean

Enable hard budget enforcement (default: false for backward compatibility)

Inherited from WorkflowEngineConfig.enableBudgetEnforcement

- Defined in packages/nexus-agents/src/workflows/workflow-engine-helpers.ts:47