mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 22:29:51 +00:00
Fix spelling and grammar in multi_input_tool.ipynb (#2337)
Changes: - Corrected the title to use hyphens instead of spaces. - Fixed a typo in the second paragraph where "therefor" was changed to "Therefore". - Added a hyphen between "comma" and "separated" in the last paragraph. File link: [multi_input_tool.ipynb](https://github.com/hwchase17/langchain/blob/master/docs/modules/agents/tools/multi_input_tool.ipynb)
This commit is contained in:
parent
00c39ea409
commit
cc50a4579e
@ -1,17 +1,18 @@
|
|||||||
{
|
{
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
|
"attachments": {},
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"id": "87455ddb",
|
"id": "87455ddb",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"# Multi Input Tools\n",
|
"# Multi-Input Tools\n",
|
||||||
"\n",
|
"\n",
|
||||||
"This notebook shows how to use a tool that requires multiple inputs with an agent.\n",
|
"This notebook shows how to use a tool that requires multiple inputs with an agent.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"The difficulty in doing so comes from the fact that an agent decides it's next step from a language model, which outputs a string. So if that step requires multiple inputs, they need to be parsed from that. Therefor, the currently supported way to do this is write a smaller wrapper function that parses that a string into multiple inputs.\n",
|
"The difficulty in doing so comes from the fact that an agent decides its next step from a language model, which outputs a string. So if that step requires multiple inputs, they need to be parsed from that. Therefore, the currently supported way to do this is to write a smaller wrapper function that parses a string into multiple inputs.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"For a concrete example, let's work on giving an agent access to a multiplication function, which takes as input two integers. In order to use this, we will tell the agent to generate the \"Action Input\" as a comma separated list of length two. We will then write a thin wrapper that takes a string, splits it into two around a comma, and passes both parsed sides as integers to the multiplication function."
|
"For a concrete example, let's work on giving an agent access to a multiplication function, which takes as input two integers. In order to use this, we will tell the agent to generate the \"Action Input\" as a comma-separated list of length two. We will then write a thin wrapper that takes a string, splits it into two around a comma, and passes both parsed sides as integers to the multiplication function."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user