Route
Classify input and direct to specialized handler
Mechanism
A classifier that examines a Task 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 accepts
Used by
- Labelsqueeze references
- RoutingSanityCheck references
- ThinSlice references
Related
Identity
- Ref:
Route#186c - Hash: sema:Route#mh:SHA-256:186c9df2396591a9a71b80e50f3c323e5e0df6ddf64b6552435a0d555b6dbc85
- Library: bootstrap 0.11.0, root a6a3d1ff0f98
- License: Not stated; check the repository