---
title: "Routing Engine"
description: "The broker uses pattern matching and confidence scoring: Match Type Confidence Exact match 1.0 Keyword match 0.85 0.95 Partial match 0.50 0.84 No match 0.0"
resource: https://www.aiagents.nexus/docs/manual/broker-routing/routing-engine
generated: { by: "process:nexus-agent-assets", at: 2026-09-07T09:13:03Z }
status: stable
---

# Routing Engine

## How Matching Works

The broker uses pattern matching and confidence scoring:

```
Task: "summarize the quarterly report"

Skill "summarize":
  Patterns: ["summarize", "summary", "tldr"]
  Match: "summarize" found → confidence 0.93
  Threshold: 0.90
  Result: MATCH ✓
```

## Confidence Scoring

| Match Type | Confidence |
|------------|-----------|
| Exact match | 1.0 |
| Keyword match | 0.85-0.95 |
| Partial match | 0.50-0.84 |
| No match | 0.0 |

## Threshold Configuration

```yaml
broker:
  confidenceThreshold: 0.90
  preferLocal: true
  fallbackModel: claude-3-haiku
```
