Native Agent Protocols
• LangChain • AutoGen • CrewAI • Claude Code • OpenAI Swarm
Autonomous AI Agent & Router Guide
Empower autonomous agents to select the optimal model dynamically based on intelligence, coding bench, context window, and price.
Deterministic Routing Recipes
1. Best Autonomous Coder
High SWE-Bench & LiveCodeBench:
GET /api/v1/benchmarks?sort_by=coding_index&limit=5
2. Budget Open-Weights Router
Self-hosted & local open-weights:
GET /api/v1/leaderboard/open-weights?sort_by=intelligence
3. Head-to-Head Arbiter
Side-by-side spec comparison:
GET /api/v1/compare?model_a=claude-3-7-sonnet&model_b=gpt-4o
4. Top 200 Model Cards
Static card profiles for router cache:
GET /api/v1/models/cards
Python Agent Tool Definition
RankLLMsClient.py
import requests
class RankLLMsClient:
def __init__(self, base_url="https://rankllms-engine.onrender.com"):
self.base_url = base_url
def get_best_coding_model(self, min_context=128000):
res = requests.get(f"{self.base_url}/api/v1/benchmarks?sort_by=coding_index&limit=20").json()
for m in res.get("items", []):
if m.get("context_length", 0) >= min_context:
return m["slug"] # e.g. "anthropic/claude-opus-5"
return "anthropic/claude-3.7-sonnet"
def compare(self, model_a, model_b):
return requests.get(f"{self.base_url}/api/v1/compare?model_a={model_a}&model_b={model_b}").json()