360 Secure SkillHub
360 安全技能中心

Model-Selector

作为AI Agent的智能中间层,该工具核心功能包括语义意图识别(向量嵌入检测复杂度)、成本高效调度(路由至三类模型层级)、多厂商支持(OpenAI、Anthropic等)及滚动调整(基于用户历史优化意图);默认适配Claude 3.5 Sonnet等模型;典型场景为AI Agent调用LLM前选型;输入查询文本,输出最优模型层级及具体模型,平衡性能与预算。

rayray1218
rayray1218
热度 70.29
最近更新 2026-05-11 17:27:24
分类:效率依赖:内部调用大模型 / MCP 服务应用场景:工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add model-selector
Metadata
name
Semantic Model Orchestrator
description
A powerful model routing skill that analyzes query intent and cost-efficiency to select the optimal LLM (Elite/Balanced/Basic) before execution.
version
1.0.0
author
Ray
tags
["llm-ops","routing","efficiency","selection"]

Semantic Model Orchestrator

This skill provides an intelligent middle layer for AI agents to decide which model tier should handle a specific task. By using semantic analysis, it categorized queries into Elite, Balanced, or Basic levels.

Features

  • Semantic Intent Recognition: Uses vector embeddings to detect query complexity.
  • Cost-Efficiency Orchestration: Routes queries to Elite, Balanced, or Basic models.
  • ClawHub Optimized: Default tiers for Claude 3.5 Sonnet, GPT-4o-mini, and DeepSeek.
  • Rolling Adjustment: Built-in logic to refine intent keywords from user history.
  • Multi-Provider Support: Supports OpenAI, Anthropic, Gemini, and DeepSeek.

Model Tiers

  • Elite: anthropic/claude-3-5-sonnet-latest
  • Balanced: openai/gpt-4o-mini
  • Basic: deepseek/deepseek-chat

Usage

Add this skill to your agent's capability list. The agent will call the get_optimal_model tool before making main LLM calls to optimize performance and budget.

Example Tool Call

result = router.analyze_and_route("Design a high-scalable microservices architecture for a fintech app.")
# Returns: {"tier": "ELITE", "suggested_model": "anthropic/claude-3-5-sonnet-latest"}