Logo di Router Detection

Router Detection

OrganizzazionePopolare
GetStream
router-detection

What the detection router can be asked for, what each vendor calls it, and what it refuses to fake. Read before adding a detection option or a detection provider (Moondream, Roboflow, Ultralytics YOLO).

Panoramica

Pubblicato daGetStream
RepositoryAgents
Nome della skillrouter-detection
Stelle
8.2K
Fork
709
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da GetStream su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Router Detection in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/GetStream/Agents/tree/main/.claude/skills/router-detection
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/GetStream/Agents.git /tmp/Agents
mkdir -p .claude/skills
cp -r /tmp/Agents/.claude/skills/router-detection .claude/skills/router-detection
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Router Detection in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Router Detection non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Router Detection non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Routing detection

The per-modality half of router-interface. The contract is internal/detection, the router is internal/detectionrouter, the providers sit under internal/detection/<vendor>, and they are declared in the detection: section of router.yaml.

Detection is one image in and boxes out, so like search and image generation it is a plain POST /v1/detection with no socket. The router never sees the call's video: a worker (the Python stream.DetectionProcessor) samples frames and sends them one at a time. One request is one stat row with images: 1, priced per_image.

Every box comes back normalized to 0..1 as x_min, y_min, x_max, y_max, whatever the vendor sent, so a caller never needs the image size to draw it.

The vendors, and what each calls the same thing

OptionMoondreamRoboflow modelRoboflow faces WorkflowUltralytics YOLO
endpointPOST api.moondream.ai/v1/detectPOST serverless.roboflow.com/{project}/{version}POST serverless.roboflow.com/workflows/run, the built-in specification in the bodyPOST platform.ultralytics.com/api/models/{owner}/{project}/{model}/predict
authX-Moondream-Authapi_key queryapi_key bodyAuthorization: Bearer, optional for public models
imageimage_url data URIbase64 body, form encodedinputs.image {type: base64}multipart file
classesobject, free text, one call per classfilter after the factfilter after the factfilter after the fact
confidencenone, no score returnedconfidenceinside the Workflowconf
boxnormalized x_min..y_maxcentre x, y, width, height in pixelssame as a modelx1..y2, normalized with normalize=true
embeddingsnonenonewhat the Workflow outputs as embeddingsnone

What the table is saying:

  • Only Moondream is open vocabulary. It finds whatever noun it is asked for, so "package" or "a red mug" works. A Roboflow or YOLO model has the classes it was trained on (COCO's 80 for coco/3 and yolo26n), and asking one for a class it does not have finds nothing.
  • Moondream returns no confidence. Its boxes carry confidence: 1, and a request asking for a confidence floor is not routed to it.
  • Embeddings come from a Workflow. roboflow/faces is a built-in Workflow (face detection, dynamic crop, CLIP) whose boxes each carry a 512-dimension vector. CLIP describes how a crop looks, not who it is: it re-identifies the same person in the same light and clothes, and is not face identification.

What the router refuses to fake

The terms a detection model declares in supports::

TermMeaningDeclared by
open_vocabularyclasses may be any words, not only trained labelsMoondream
confidencemin_confidence is honouredRoboflow, Ultralytics
embeddingseach box carries a vectorroboflow/faces

A request that asks for one is only routed to a model that declared it, and a term nothing can serve is a 400 naming it. A fixed-class model asked for "package" would return an empty list that looks like "there is no package", which is the exact failure terms exist to prevent.

Overwrites

options.overwrites carries what the vocabulary has no word for, keyed by provider. No detection provider takes one today: the provider an overwrite names refuses it, and the next candidate is asked without it.

  • There is no Workflow of the caller's own. Roboflow runs a Workflow on the account of the key it is sent with, which is the deployment's, and a Workflow can run any block Roboflow has: vision language models billed by the second, uploads into the account's datasets, webhooks. roboflow/workflow, which took a specification or a workspace and workflow_id, is retired for roboflow/faces. One comes back only on the customer's own Roboflow key, which detection does not take yet.
  • There is no overwrite for an address. Ultralytics' shared API is limited to 20 requests a minute, and a deployment that needs more names a dedicated endpoint in ULTRALYTICS_ENDPOINT. That is the operator's to set, because whatever address it names is sent the key and the frame.

Adding a provider

  1. A package under internal/detection/<vendor> implementing detection.Provider, reading its key from the environment, normalizing boxes, and failing with detection.Fail.
  2. Register it in detectionrouter.DefaultRegistry.
  3. Declare its models in router.yaml with per_image and the terms it really sends.
  4. A unit test against an httptest server for the request it sends and the boxes it reads, and an integration test against the real API.

Domande frequenti

Cosa fa la skill IA Router Detection?

What the detection router can be asked for, what each vendor calls it, and what it refuses to fake. Read before adding a detection option or a detection provider (Moondream, Roboflow, Ultralytics YOLO).

Perché usare Router Detection su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Router Detection è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Router Detection in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/GetStream/Agents/tree/main/.claude/skills/router-detection. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Router Detection?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Router Detection?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Router Detection: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Router Detection è gratuita?

Sì. È pubblicata su GitHub da GetStream con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇