Skip to content

Commit

Permalink
add 0.2.7 warnings to all docs which contain
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed Jun 18, 2024
1 parent d26925d commit da0ecfd
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/core_docs/docs/how_to/custom_tools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"## `tool` function\n",
"\n",
":::note\n",
"Only available in `@langchain/core` version 0.2.X and above.\n",
"Only available in `@langchain/core` version 0.2.7 and above.\n",
":::\n",
"\n",
"\n",
Expand Down
8 changes: 7 additions & 1 deletion docs/core_docs/docs/how_to/migrate_agent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@
"\n",
"For basic creation and usage of a tool-calling ReAct-style agent, the\n",
"functionality is the same. First, let's define a model and tool(s), then we'll\n",
"use those to create an agent.\n"
"use those to create an agent.\n",
"\n",
":::note\n",
"The `tool` function available in `@langchain/core` version 0.2.7 and above.\n",
"\n",
"[`DynamicStructuredTool`](https://v02.api.js.langchain.com/classes/langchain_core_tools.DynamicStructuredTool.html) should be used in older versions.\n",
":::"
]
},
{
Expand Down
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 @@ -88,7 +88,13 @@
"metadata": {},
"source": [
"We can use the `.bindTools()` method to handle the conversion from LangChain tool to our model provider's specific format and bind it to the model (i.e., passing it in each time the model is invoked). A number of models implement helper methods that will take care of formatting and binding different function-like objects to the model.\n",
"Let's create a new tool implementing a Zod schema, then bind it to the model:"
"Let's create a new tool implementing a Zod schema, then bind it to the model:\n",
"\n",
":::note\n",
"The `tool` function available in `@langchain/core` version 0.2.7 and above.\n",
"\n",
"[`DynamicStructuredTool`](https://v02.api.js.langchain.com/classes/langchain_core_tools.DynamicStructuredTool.html) should be used in older versions.\n",
":::"
]
},
{
Expand Down
8 changes: 7 additions & 1 deletion docs/core_docs/docs/how_to/tool_calls_multimodal.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@
"\n",
"To call tools using such models, simply bind tools to them in the [usual way](/docs/how_to/tool_calling), and invoke the model using content blocks of the desired type (e.g., containing image data).\n",
"\n",
"Below, we demonstrate examples using [OpenAI](/docs/integrations/platforms/openai) and [Anthropic](/docs/integrations/platforms/anthropic). We will use the same image and tool in all cases. Let's first select an image, and build a placeholder tool that expects as input the string \"sunny\", \"cloudy\", or \"rainy\". We will ask the models to describe the weather in the image."
"Below, we demonstrate examples using [OpenAI](/docs/integrations/platforms/openai) and [Anthropic](/docs/integrations/platforms/anthropic). We will use the same image and tool in all cases. Let's first select an image, and build a placeholder tool that expects as input the string \"sunny\", \"cloudy\", or \"rainy\". We will ask the models to describe the weather in the image.\n",
"\n",
":::note\n",
"The `tool` function available in `@langchain/core` version 0.2.7 and above.\n",
"\n",
"[`DynamicStructuredTool`](https://v02.api.js.langchain.com/classes/langchain_core_tools.DynamicStructuredTool.html) should be used in older versions.\n",
":::"
]
},
{
Expand Down

0 comments on commit da0ecfd

Please sign in to comment.