create_directly_answer_tool#
- langchain_cohere.react_multi_hop.prompt.create_directly_answer_tool() BaseTool [source]#
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: