Skip to main content
This notebook covers how to get started with Cohere chat models. Head to the API reference for detailed documentation of all attributes and methods.

Setup

The integration lives in the langchain-cohere package. We can install these with:
We’ll also need to get a Cohere API key and set the COHERE_API_KEY environment variable:
It’s also helpful (but not needed) to set up LangSmith for best-in-class observability

Usage

ChatCohere supports all ChatModel functionality:

Tool calling

Cohere supports tool calling functionalities!