AI-LAB Router API ya puede detectar peticiones que requieren herramientas, priorizar modelos tool_use descubiertos en vivo y convertir respuestas de LM Studio con <tool_call> a tool_calls OpenAI-native.
Alcance implementado
Section titled “Alcance implementado”runtime/models/model_classifier.pyruntime/models/model_registry.pyruntime/llm/model_router.pyruntime/llm/router_api.pyruntime/router/capability_router.pyruntime/distributed/token_router.pyruntime/gateway/tool_call_parser.pyruntime/gateway/openai_gateway.pyruntime/gateway/stream_sanitizer.py
Comportamiento nuevo
Section titled “Comportamiento nuevo”- detecta
toolsytool_choiceen la request - activa
tool_usecomo capability de routing - prioriza candidatos
tool_useen discovery vivo - convierte
<tool_call>entool_callsestructurado - mantiene intacto el forwarding de
toolsytool_choice
Evidencias
Section titled “Evidencias”| Verificacion | Resultado |
|---|---|
Router tool_use | qwen/qwen3.6-35b-a3b |
Gateway tool_use | qwen/qwen3.6-35b-a3b |
tool_choice=required | tool_calls estructurado, content=null |
| RX9070 tool latency | ~2.4s promedio |
| RX7900XT tool latency | ~0.37s promedio |
| Router/Gateway bridge | tool_calls estructurado en ambas APIs; el router sigue siendo la ruta mas pesada por contexto inyectado |
Resultado
Section titled “Resultado”El router ya es tool-aware y el bridge de tool calls funciona en el borde sin romper el resto del pipeline.