From 0b8634b4c6ff8c85fdd7be2e072c8964856a19a9 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Wed, 25 Jun 2025 10:25:06 -0400 Subject: [PATCH] x --- docs/docs/concepts/tools.md | 28 ++++++++++++++-------------- docs/docs/how-tos/tool-calling.md | 2 +- docs/mkdocs.yml | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/docs/concepts/tools.md b/docs/docs/concepts/tools.md index c12509e75..63d3975a6 100644 --- a/docs/docs/concepts/tools.md +++ b/docs/docs/concepts/tools.md @@ -25,6 +25,20 @@ Importantly, the model does not execute the tool—it only generates a request. See the [tool calling guide](../how-tos/tool-calling.md) for more details. +## Prebuilt tools + +LangChain provides prebuilt tool integrations for common external systems including APIs, databases, file systems, and web data. + +Browse the [integrations directory](https://python.langchain.com/docs/integrations/tools/) for available tools. + +Common categories: + +* **Search**: Bing, SerpAPI, Tavily +* **Code execution**: Python REPL, Node.js REPL +* **Databases**: SQL, MongoDB, Redis +* **Web data**: Scraping and browsing +* **APIs**: OpenWeatherMap, NewsAPI, etc. + ## Custom tools You can define custom tools using the `@tool` decorator or plain Python functions. For example: @@ -40,20 +54,6 @@ def multiply(a: int, b: int) -> int: See the [tool calling guide](../how-tos/tool-calling.md) for more details. -## Prebuilt tools - -LangChain provides prebuilt tool integrations for common external systems including APIs, databases, file systems, and web data. - -Browse the [integrations directory](https://python.langchain.com/docs/integrations/tools/) for available tools. - -Common categories: - -* **Search**: Bing, SerpAPI, Tavily -* **Code execution**: Python REPL, Node.js REPL -* **Databases**: SQL, MongoDB, Redis -* **Web data**: Scraping and browsing -* **APIs**: OpenWeatherMap, NewsAPI, etc. - ## Tool execution While the model determines *when* to call a tool, **execution** of the tool call must be handled by a runtime component. diff --git a/docs/docs/how-tos/tool-calling.md b/docs/docs/how-tos/tool-calling.md index 9837d1ad0..d79d08b7e 100644 --- a/docs/docs/how-tos/tool-calling.md +++ b/docs/docs/how-tos/tool-calling.md @@ -1,4 +1,4 @@ -# Use tools +# Call tools [Tools](https://python.langchain.com/docs/concepts/tools/) encapsulate a callable function and its input schema. These can be passed to compatible [chat models](https://python.langchain.com/docs/concepts/chat_models), allowing the model to decide whether to invoke a tool and determine the appropriate arguments. diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 2a61d4b3d..928f59ed8 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -168,7 +168,7 @@ nav: - Set breakpoints: how-tos/human_in_the_loop/breakpoints.ipynb - Use Server API: cloud/how-tos/human_in_the_loop_breakpoint.md - Tools: - - Use tools: how-tos/tool-calling.md + - Call tools: how-tos/tool-calling.md - Subgraphs: - Use subgraphs: how-tos/subgraph.ipynb - Multi-agent: