شعار Router Detection

Router Detection

مؤسسةشائع
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).

نظرة عامة

الناشرGetStream
المستودعAgents
اسم المهارةrouter-detection
النجوم
8.2K
التفريعات
709
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها GetStream على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Router Detection في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/GetStream/Agents/tree/main/.claude/skills/router-detection
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Router Detection في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Router Detection تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Router Detection بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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).

لماذا تستخدم Router Detection على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Router Detection عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Router Detection في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/GetStream/Agents/tree/main/.claude/skills/router-detection. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Router Detection؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Router Detection؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Router Detection معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Router Detection مجانية؟

نعم. نشرها GetStream على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇