Agentium tries the native
cohere-ai SDK first; if not installed, it falls back to the openai SDK via Cohere’s OpenAI-compatible endpoint.Setup
- Install (Option A — Native)
- Install (Option B — OpenAI compat)
- Environment
Factory
string
required
Model ID (e.g.,
"command-r-plus", "command-r", "command-r7b-12-2024", "command-light").CohereConfig
Optional
{ apiKey? }.Supported Models
Basic Example
RAG-Optimized Usage
Cohere’s Command R models are specifically designed for retrieval-augmented generation:Tool Calling
Reasoning
Native Cohere calls sendthinking: { type: "enabled" | "disabled", tokenBudget? }. budgetTokens becomes tokenBudget. effort: "none" or enabled: false disables it.
Full Example
Environment Variables
Cross-References
- Azure AI Foundry — Cohere models on Azure
- AWS Bedrock — Cohere models on AWS
- Tools — Tool calling guide
- Knowledge Base — RAG with vector search