Providers
cohere
Cohere Command — enterprise-focused RAG-friendly models with citations.
import { cohere } from '@agentskit/adapters'
const adapter = cohere({
apiKey: process.env.COHERE_API_KEY!,
model: 'command-r-plus',
})#Options
| Option | Type | Default |
|---|---|---|
apiKey | string | required |
model | string | command-r-plus |
baseUrl | string | https://api.cohere.com/compatibility/v1 |
retry | RetryOptions | inherited from @agentskit/adapters |
#Capabilities
{ streaming: true, tools: true, usage: true } — surfaced via the OpenAI-compatibility endpoint, so the request shape (tools, stream: true, stream_options.include_usage) matches the OpenAI adapter.
#Model examples
command-r-plus · command-r · command.
#Env
| Var | Purpose |
|---|---|
COHERE_API_KEY | API key |
#Notes
- Native citations in responses when
documentsare passed — pairs with RAG. - Cohere also provides rerankers.