Feature Request: More Flexible Router Block (Multi-Route Selection & Custom System Prompt)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- typescript
- Ambito
- ai
Direzione di ricerca
No files, tests, or code entry points are named. Start by locating the Router block implementation and its existing single-route behavior, then determine how the requested routing modes, custom prompt, no-match handling, and confidence outputs fit together. Done would require an agreed, backward-compatible scope for these changes.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The current Router block is useful for AI-powered routing, but it appears to be limited to selecting a single route and relies on a hidden internal system prompt. This makes the block less flexible for advanced workflows and prevents users from adapting the routing behavior to different use cases.
In many real-world scenarios, a single input may legitimately belong to multiple categories. For example:
- A support ticket may involve both Billing and Technical issues.
- User feedback may contain both a Bug Report and Product Feedback.
- A lead may qualify for multiple downstream workflows.
Currently, the Router seems designed around single-route classification, which limits these use cases.
Proposed Improvements
1. Route Selection Mode
Add a configurable routing mode with options such as:
Single Route (Current Behavior)
- Select exactly one best-matching route.
- Backward compatible with existing workflows.
Multiple Routes
- Allow the model to select multiple matching routes.
- Output an array of selected routes instead of a single value.
- Trigger multiple output ports simultaneously.
Example:
Input:
"Billing charges are incorrect and the API is returning errors."
Selected Routes:
- Billing
- Technical
2. Custom System Prompt
Expose the Router's system prompt as an optional advanced setting.
Example use cases:
- Adjust routing strictness.
- Allow multi-label classification.
- Prioritize specific business rules.
- Customize fallback behavior.
- Define confidence thresholds.
- Improve domain-specific routing.
Example:
"You may select multiple routes if the input clearly belongs to more than one category."
or
"Prefer the most specific route instead of the most general route."
This would significantly increase flexibility without affecting users who prefer the default behavior.
3. Configurable No-Match Behavior
Allow users to choose between:
- Route to Error Path
- Force Best Match
- Return Multiple Candidates
- Use Custom Fallback Route
4. Confidence Score Output
Provide an optional confidence score for each routing decision.
Example outputs:
- selectedRoute
- selectedRoutes
- confidence
- reasoning
This would help with debugging and workflow monitoring.
Benefits
- Supports both single-label and multi-label classification.
- Works better for complex enterprise workflows.
- Gives users more control over routing behavior.
- Reduces the need for custom LLM blocks before the Router.
- Makes the Router adaptable to a wider range of use cases.
Summary
The Router block would become significantly more powerful by supporting:
- Single-route and multi-route modes.
- User-configurable system prompts.
- Configurable no-match behavior.
- Confidence score outputs.
These changes would preserve backward compatibility while providing much greater flexibility for advanced workflow design.
- Lingua principale
- TypeScript
- Stelle
- 29.8k
- Fork
- 3.9k
- Merge medio
- 1h 44m
- PR unite (30g)
- 841
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di simstudioai/sim
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
simstudioai/sim#9831 ·
I maintainer di solito rispondono entro 1 giorno
-
v2 API rate limits self-hosted installs by IP even with billing disabledForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
simstudioai/sim#8452 ·
I maintainer di solito rispondono entro 1 giorno
-
Railway template generates invalid ENCRYPTION_KEY (should be 64-char hex string)Forse di nuovo libera @sahooarnav2007-gif l’ha presa 15 giorni fa e non c’è nessuna pull request aperta. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
simstudioai/sim#6246 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
simstudioai/sim#1204 · 8 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
simstudioai/sim#9734 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di simstudioai/sim
Issue simili
-
Bug: Cloudflare Pages static _redirects identity rule causes RSC Flight to reload as HTMLForse già presa @Donvero l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Mantitup-Org/vista#210 ·
-
status: waiting for maintainer
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
mui/material-ui#49751 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
diplodoc-platform/transform#1184 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
JonasKruckenberg/imagetools#973 ·
I maintainer di solito rispondono entro 1 giorno