Skip to main content
Ctrl+K
🦜🔗 LangChain  documentation - Home

Site Navigation

  • Core
  • Langchain
  • Text Splitters
  • AI21
  • Airbyte
    • Anthropic
    • AstraDB
    • AWS
    • Azure Dynamic Sessions
    • Chroma
    • Cohere
    • Couchbase
    • Elasticsearch
    • Exa
    • Fireworks
    • Google Community
    • Google GenAI
    • Google VertexAI
    • Groq
    • Huggingface
    • Milvus
    • MistralAI
    • MongoDB
    • Nomic
    • Nvidia Ai Endpoints
    • Ollama
    • OpenAI
    • Pinecone
    • Postgres
    • Prompty
    • Qdrant
    • Robocorp
    • Together
    • Unstructured
    • VoyageAI
    • Weaviate
  • LangChain docs
  • GitHub
  • X / Twitter

Site Navigation

  • Core
  • Langchain
  • Text Splitters
  • AI21
  • Airbyte
    • Anthropic
    • AstraDB
    • AWS
    • Azure Dynamic Sessions
    • Chroma
    • Cohere
    • Couchbase
    • Elasticsearch
    • Exa
    • Fireworks
    • Google Community
    • Google GenAI
    • Google VertexAI
    • Groq
    • Huggingface
    • Milvus
    • MistralAI
    • MongoDB
    • Nomic
    • Nvidia Ai Endpoints
    • Ollama
    • OpenAI
    • Pinecone
    • Postgres
    • Prompty
    • Qdrant
    • Robocorp
    • Together
    • Unstructured
    • VoyageAI
    • Weaviate
  • LangChain docs
  • GitHub
  • X / Twitter

Section Navigation

  • chains
  • chat_models
  • common
  • csv_agent
  • embeddings
  • llms
  • rag_retrievers
  • react_multi_hop
    • CohereToolsReactAgentOutputParser
    • create_cohere_react_agent
    • parse_actions
    • parse_answer_with_prefixes
    • parse_citations
    • parse_jsonified_tool_use_generation
    • convert_to_documents
    • create_directly_answer_tool
    • multi_hop_prompt
    • render_intermediate_steps
    • render_messages
    • render_observations
    • render_role
    • render_structured_preamble
    • render_tool
    • render_tool_args
    • render_tool_signature
    • render_type
  • rerank
  • sql_agent
  • langchain_cohere 0.2.1rc0
  • react_multi_hop
  • multi_hop_prompt

multi_hop_prompt#

langchain_cohere.react_multi_hop.prompt.multi_hop_prompt(tools: Sequence[BaseTool], prompt: ChatPromptTemplate) → Callable[[Dict], BasePromptTemplate][source]#

The returned function produces a BasePromptTemplate suitable for multi-hop.

Parameters:
  • tools (Sequence[BaseTool])

  • prompt (ChatPromptTemplate)

Return type:

Callable[[Dict], BasePromptTemplate]

previous

create_directly_answer_tool

next

render_intermediate_steps

On this page
  • multi_hop_prompt()

© Copyright 2023, LangChain Inc.