docs: Fixed wrong link redirect from JS ToolMessage to Python ToolMes… (#28083)

Fixed the link to ToolMessage from the JS documentation to Python
documentation
This commit is contained in:
Zapiron 2024-11-13 23:05:19 +08:00 committed by GitHub
parent 77c8a5c70c
commit 8241c0df23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@
"source": [
"# INVALID_TOOL_RESULTS\n",
"\n",
"You are passing too many, too few, or mismatched [`ToolMessages`](https://api.js.langchain.com/classes/_langchain_core.messages_tool.ToolMessage.html) to a model.\n",
"You are passing too many, too few, or mismatched [`ToolMessages`](https://python.langchain.com/api_reference/core/messages/langchain_core.messages.tool.ToolMessage.html#toolmessage) to a model.\n",
"\n",
"When [using a model to call tools](/docs/concepts/tool_calling), the [`AIMessage`](https://api.js.langchain.com/classes/_langchain_core.messages.AIMessage.html)\n",
"the model responds with will contain a `tool_calls` array. To continue the flow, the next messages you pass back to the model must\n",