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]