Skip to content

Commit

Permalink
docs[patch]: Add note about openai formatted tools (#5870)
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul authored Jun 23, 2024
1 parent b311ec5 commit b737245
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/core_docs/docs/how_to/tool_calling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,16 @@
"## Passing tools to LLMs\n",
"\n",
"Chat models that support tool calling features implement a [`.bindTools()`](https://v02.api.js.langchain.com/classes/langchain_core_language_models_chat_models.BaseChatModel.html#bindTools) method, which \n",
"receives a list of LangChain [tool objects](https://v02.api.js.langchain.com/classes/langchain_core_tools.StructuredTool.html) \n",
"receives a list of LangChain [tool objects](https://v02.api.js.langchain.com/classes/langchain_core_tools.StructuredTool.html)\n",
"and binds them to the chat model in its expected format. Subsequent invocations of the \n",
"chat model will include tool schemas in its calls to the LLM.\n",
"\n",
"```{=mdx}\n",
":::note\n",
"As of `@langchain/core` version `0.2.9`, all chat models with tool calling capabilities now support [OpenAI-formatted tools](https://api.js.langchain.com/interfaces/langchain_core_language_models_base.ToolDefinition.html).\n",
":::\n",
"```\n",
"\n",
"Let's walk through a few examples:"
]
},
Expand Down

0 comments on commit b737245

Please sign in to comment.