---
library: "bootstrap"
slug: "Route"
name: "Route"
ref: "Route#186c"
hash: "sema:Route#mh:SHA-256:186c9df2396591a9a71b80e50f3c323e5e0df6ddf64b6552435a0d555b6dbc85"
type: "Primitives"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Route"
---

# Route

Classify input and direct to specialized handler

Infrastructure · Primitives

## Mechanism

A classifier that examines a [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) input and directs it to a specialized downstream handler. Enables separation of concerns—different query types get different prompts, tools, or models. Routes based on type tags, metadata fields, token weight, or configurable dispatch rules (simple queries to small models, complex to large).

## Invariants

- Input directed to best-fit handler
- No dropped requests

## Preconditions

- Input query
- Router logic configured

## Postconditions

- Query dispatched

## Failure modes

- Misrouting: Input sent to wrong specialist, causing errors.
- Ambiguous Classification: Input matches multiple routes or none.
- Routing Bottleneck: Classifier becomes slower than just handling directly.

## Where this came from

—

## Builds on

- [Task](https://semahash.org/vocabularies/bootstrap/patterns/Task.md) (accepts)

## Used by

- [Labelsqueeze](https://semahash.org/vocabularies/bootstrap/patterns/Labelsqueeze.md) (references)
- [RoutingSanityCheck](https://semahash.org/vocabularies/bootstrap/patterns/RoutingSanityCheck.md) (references)
- [ThinSlice](https://semahash.org/vocabularies/bootstrap/patterns/ThinSlice.md) (references)

## Related

- [Select](https://semahash.org/vocabularies/bootstrap/patterns/Select.md)
- [Labelsqueeze](https://semahash.org/vocabularies/bootstrap/patterns/Labelsqueeze.md)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Route#186c
- Hash: sema:Route#mh:SHA-256:186c9df2396591a9a71b80e50f3c323e5e0df6ddf64b6552435a0d555b6dbc85

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Route
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Route.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
