Smart planner model + fast executor model, both on Groq's free tier, behind a provider-agnostic interface, with schema-driven tool calling, a re-planning loop, and rate-limit-aware retry/backoff — running entirely on free-tier infrastructure.
make_plan → ordered steps; decide → continue / retry / replan / done after each observation; finalize → synthesized answer.Args → JSON Schema), validated dispatch, graceful handling of unknown/invalid calls.LLMProvider interface; GroqProvider wired by default, AnthropicProvider interface-complete and activated only when a key is present.LLMProvider interface. Groq runs it free today; an ANTHROPIC_API_KEY enables the Anthropic backend with no code changes. Designing for extensibility is a stronger signal than hardcoding two providers.429 + retry-after; the loop paces against a token budget; and system prompts are kept stable so Groq's automatic prefix caching applies — cached tokens don't count toward TPM and cost 50% less.GROQ_API_KEY. All built-in tools are keyless.calculator none Safe arithmetic via an ast allowlist (no eval). weather none Current conditions via Open-Meteo (geocode + forecast). wikipedia_search none Top Wikipedia result: title, description, excerpt. http_request none Generic GET/POST with an SSRF guard and timeout.Tool (set name, description, a Pydantic Args model, and implement run) and registering it..env (see .env.example):GROQ_API_KEY — Required. ANTHROPIC_API_KEY — Optional; enables the Anthropic backend when set. LLM_PROVIDER groq groq or anthropic. PLANNER_MODEL openai/gpt-oss-120b Larger reasoning model. EXECUTOR_MODEL llama-3.1-8b-instant Fast tool-calling model. MAX_ITERATIONS / MAX_TOOL_CALLS / MAX_RETRIES_PER_STEP 10 / 20 / 2 Guardrails.Tip: the small default executor (llama-3.1-8b-instant) occasionally emits a malformed tool call that Groq rejects (tool_use_failed); the orchestrator retries and recovers automatically. For even more reliable tool calling at higher token cost, setEXECUTOR_MODEL=llama-3.3-70b-versatile.
GROQ_API_KEY is unset, so the default suite stays green with no credentials.Posted Jun 18, 2026
Developed a multi-agent task orchestrator running on Groq's free tier.