I can’t use the following method to implement that mechanism; this code can lead to consistent calling.
always_call_tool_llm = llm.bind_tools([add, multiply], tool_choice="any")
I tried a lot of methods, but I suspect LangChain didn’t offer this mechanism.
New contributor
CNForrest is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.