Toggle Menu
Prev Up Next

# `langchain_cohere.react_multi_hop.prompt`.create_directly_answer_tool

langchain_cohere.react_multi_hop.prompt.create_directly_answer_tool() → BaseTool

  directly_answer is a special tool that’s always presented to the model as an available tool. The model only ever invokes this whilst answering and no AgentAction is produced, so it only needs to be added to the prompt.

  Return type

    BaseTool