Python • PyPI jangada-ai
A thin layer over LLM SDKs
Native observability in one line of your .env. Swap provider, model and key without touching the rest of your code, with {{ }} templates, structured output (Pydantic), vision, audio, tools, MCP, RAG, agents, async, retry and error-based fallback. Works with Anthropic, OpenAI, Groq, Gemini, Mistral, OpenRouter, DeepSeek, Ollama and the cloud gateways (AWS Bedrock, Azure OpenAI and Vertex AI).

trocar_provider.py
from jangada_ai import LLM# troque o provider numa linha, o resto não mudallm = LLM("anthropic", model="claude-sonnet-4-5")llm = LLM("openai", model="gpt-5")resp = llm.complete("Resuma {{ tema }}.")print(resp.text, resp.cost)Where to start
Getting started→Install, set your key and make the first call.Providers and keys→All 11 providers with one API and where each key goes.Structured output→Output validated with Pydantic on any provider.Tools (function calling)→The model calls your functions, the same way on every provider.RAG→Embeddings, pgvector or MongoDB, hybrid search and rerank.Retry and fallback→Backoff retries and provider switching by error type.
Sections
Getting started→Installation, parameters, providers and the capability matrix.Providers→One page per provider: Anthropic, OpenAI, Groq, Gemini and the rest.Capabilities→Structured output, tools, vision, audio, documents, streaming, RAG, MCP, agents and observability.Reliability→Errors, retry and fallback, cost, cache and debug.Tutorials→Zero to fallback, structured extraction, RAG and an MCP agent.Code examples→Full projects: assistant, support RAG, research agents.