# Interface WorkflowRoutingDecision

Routing decision with explanation.

interface WorkflowRoutingDecision {
pattern: WorkflowPattern;
reasoning: string;
confidence: number;
matchedRules: readonly string[];
alternatives: readonly WorkflowPattern[];
analysis: TaskAnalysisResult;
needsClarification?: boolean;
suggestedQuestions?: readonly string[];
capabilityGaps?: CapabilityGapReport;
}

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

##### Index

### Properties

pattern
reasoning
confidence
matchedRules
alternatives
analysis
needsClarification?
suggestedQuestions?
capabilityGaps?

## Properties

### `Readonly` pattern

pattern: WorkflowPattern

Selected workflow pattern

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

### `Readonly` reasoning

reasoning: string

Human-readable explanation of why this pattern was selected

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

### `Readonly` confidence

confidence: number

Confidence in the selection (0-1)

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

### `Readonly` matchedRules

matchedRules: readonly string[]

Which rules matched during selection

- Defined in packages/nexus-agents/src/orchestration/workflow-router-types.ts:71

### `Readonly` alternatives

alternatives: readonly WorkflowPattern[]

Alternative patterns that were considered

- Defined in packages/nexus-agents/src/orchestration/workflow-router-types.ts:73

### `Readonly` analysis

analysis: TaskAnalysisResult

Analysis result from SharedTaskAnalyzer

- Defined in packages/nexus-agents/src/orchestration/workflow-router-types.ts:75

### `Optional` `Readonly` needsClarification

needsClarification?: boolean

Whether the task should be clarified before execution (Issue #904)

- Defined in packages/nexus-agents/src/orchestration/workflow-router-types.ts:77

### `Optional` `Readonly` suggestedQuestions

suggestedQuestions?: readonly string[]

Suggested clarification questions when needsClarification is true

- Defined in packages/nexus-agents/src/orchestration/workflow-router-types.ts:79

### `Optional` `Readonly` capabilityGaps

capabilityGaps?: CapabilityGapReport

Capability gap report — what's available vs what's needed (Issue #906)

- Defined in packages/nexus-agents/src/orchestration/workflow-router-types.ts:81