कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

semantic-router

halfmoon82 द्वारा

Productivity & Tasks
816clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Auto-routing skill with configurable model pools and task type matching.

विवरण

यह स्किल क्या करती है

Routes each AI agent message to one of four model pools based on keyword detection, semantic similarity scoring, and contextual continuity. Uses a five-branch decision tree to switch models, maintain sessions, or reset conversations when topics change. Also isolates background cron jobs from user-facing sessions to prevent interruptions.

Reduces token costs and latency by matching each message to an appropriately scoped model rather than routing everything through a single expensive model.

इसे कब इस्तेमाल करें

  • Switching to a fast model for quick lookups while keeping a capable model for coding tasks
  • Automatically resetting the session when the conversation topic shifts completely
  • Preventing scheduled background jobs from disrupting an ongoing chat session
  • Routing long-context or multi-step agent tasks to a high-context model pool
  • Matching translation or writing requests to a content-optimized model

उदाहरण वर्कफ़्लो

इनपुट

User asks: 'Help me write a Python web scraper'

एजेंट
  1. 1

    semantic_check.py receives the message and checks it against system filters

  2. 2

    Keyword match found: 'write' and 'scraper' classify the message as a development task

  3. 3

    Router selects branch C and targets the Intelligence pool

  4. 4

    Session model is patched via sessions.patch to the configured Intelligence pool model

  5. 5

    A routing tag is prepended to the agent response instructing the LLM to output the active pool and model on the first line

आउटपुट

Response generated by the Intelligence pool model, with a routing declaration in the first line indicating the active pool and model ID

आवश्यकताएँ

  • API keys for at least one configured model provider (e.g., Anthropic, Google AI, OpenAI)

इंस्टॉलेशन

clawhub install halfmoon82/semantic-router

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक