Tools on LangChain
Cohere supports various integrations with LangChain, a large language model (LLM) framework which allows you to quickly create applications based on Cohere’s models. This doc will guide you through how to leverage Cohere tools with LangChain.
Prerequisites
Running Cohere tools with LangChain doesn’t require many prerequisites, consult the top-level document for more information.
Multi-Step Tool Use
Multi-step is enabled by default. Here’s an example of using it to put together a simple agent:
PYTHON
Single-Step Tool Use
In order to utilize single-step mode, you have to set force_single_step=False
. Here’s an example of using it to answer a few questions:
PYTHON