mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 04:07:54 +00:00
docs: Updated incorrected type used for the multiply_by_max
function (#28042)
In the `multiply_by_max()` tool, `a` is a scale factor but it is annotated with a string type.
This commit is contained in:
parent
b8e861a63b
commit
1e285cb5f3
@ -162,7 +162,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"@tool\n",
|
"@tool\n",
|
||||||
"def multiply_by_max(\n",
|
"def multiply_by_max(\n",
|
||||||
" a: Annotated[str, \"scale factor\"],\n",
|
" a: Annotated[int, \"scale factor\"],\n",
|
||||||
" b: Annotated[List[int], \"list of ints over which to take maximum\"],\n",
|
" b: Annotated[List[int], \"list of ints over which to take maximum\"],\n",
|
||||||
") -> int:\n",
|
") -> int:\n",
|
||||||
" \"\"\"Multiply a by the maximum of b.\"\"\"\n",
|
" \"\"\"Multiply a by the maximum of b.\"\"\"\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user