langchain-cohereThis page contains reference documentation for Cohere. See the docs for conceptual guides, tutorials, and examples on using Cohere modules.
Base class for Cohere models.
Cohere large language models.
Implements the Embeddings interface with Cohere's text representation language
Cohere has fine-grained citations that specify the exact part of text.
Document compressor that uses Cohere Rerank API.
Implements the BaseChatModel (and BaseLanguageModel) interface with Cohere's
Cohere Chat API with RAG.
Parses a message into agent actions/finish.
Cut off the text as soon as any stop words occur.
Use tenacity to retry the completion call.
Use tenacity to retry the completion call.
Get the role of the message.
Get the request for the Cohere chat API.
Get the role of the message (V2).
Get the request for the Cohere chat API (V2).
Create an agent that enables multiple tools to be used in sequence to complete a
Renders the structured preamble part of the prompt content.
Renders a tool into prompt content. Either a BaseTool instance, or, a JSON
Renders the 'output' part of an Agent's intermediate step into prompt content.
Converts observations into a 'document' dict
Renders an agent's intermediate steps into prompt content.
The returned function produces a BasePromptTemplate suitable for multi-hop.
directly_answer is a special tool that's always presented to the model as an
Renders the role of a message into prompt content.
Renders one or more BaseMessage implementations into prompt content.
Parses model-generated jsonified actions.
Parses string into key-value pairs, according to patterns supplied in prefixes.
Parse action selections from model output.
Parses a grounded_generation (from parse_actions) and documents (from