agentskit.js
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

OptionTypeDefault
apiKeystringrequired
modelstringrequired
baseUrlstringhttps://api.cohere.com/v2
fetchtypeof fetchglobal

Model examples

command-r-plus · command-r · command.

Env

VarPurpose
COHERE_API_KEYAPI key

Notes

  • Native citations in responses when documents are passed — pairs with RAG.
  • Cohere also provides rerankers.
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page