Toggle Menu
Prev Up Next

# `langchain_cohere.react_multi_hop.prompt`.multi_hop_prompt

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

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

  Parameters

    - tools (Sequence[BaseTool]) –

    - prompt (ChatPromptTemplate) –

  Return type

    Callable[[Dict], BasePromptTemplate]