Providers
SwarmVault uses a capability-driven provider abstraction that supports multiple LLM backends through a unified interface.
Supported Providers
| Type | Description | Requires API Key |
|---|---|---|
heuristic | Local fallback using term frequency and regex | No |
openai | OpenAI API (GPT-4o, etc.) | Yes |
anthropic | Anthropic API (Claude) | Yes |
gemini | Google Gemini API | Yes |
ollama | Local Ollama instance | No |
openai-compatible | Any OpenAI-compatible API | Varies |
custom | Load from a custom module | Varies |
Provider Capabilities
Each provider declares its capabilities:
responses— OpenAI Responses API formatchat— Chat completions formatstructured— Structured/JSON outputtools— Tool/function callingvision— Image understandingembeddings— Text embeddingsstreaming— Streaming responseslocal— Runs locally without network
Provider Interface
All providers implement:
generateText(request)— Generate plain textgenerateStructured(request, schema)— Generate validated structured output
See individual provider pages for configuration details.