Cohere multi-hop agent enables multiple tools to be used in sequence to complete a task.
This agent uses a multi hop prompt by Cohere, which is experimental and subject to change. The latest prompt can be used by upgrading the langchain-cohere package.
Parses a grounded_generation (from parse_actions) and documents (from
convert_to_documents) into a (generation, CohereCitation list) tuple.
Converts observations into a 'document' dict
The returned function produces a BasePromptTemplate suitable for multi-hop.
Create an agent that enables multiple tools to be used in sequence to complete a task.