Skip to main content
Ctrl+K
🦜🔗 LangChain  documentation - Home
  • Reference
  • Legacy reference
Ctrl+K
Docs
  • GitHub
  • X / Twitter
Ctrl+K
  • Reference
  • Legacy reference
Docs
  • GitHub
  • X / Twitter

Section Navigation

Base packages

  • Core
  • Langchain
  • Text Splitters
  • Community
  • Experimental

Integrations

  • AI21
  • Airbyte
  • Anthropic
  • AstraDB
  • AWS
  • Azure Dynamic Sessions
  • Chroma
  • Cohere
    • 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
  • 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 Python API Reference
  • 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]

On this page
  • multi_hop_prompt()

© Copyright 2023, LangChain Inc.