DATE:
AUTHOR:
The LangChain Team
LangChain

Standardized forced tool calling in LangChain

DATE:
AUTHOR: The LangChain Team

New standards have been implemented for forcing tool calls in LangChain chat models. The implementation allows for:

  • Using tool_choice="any" to force calling any tool

  • Using tool_choice=(tool name) to force a specific tool This feature is available for models that support forced-tool calling.

See the docs: https://python.langchain.com/docs/how_to/tool_choice/

Powered by LaunchNotes