This commit is contained in:
Eugene Yurtsev
2025-06-25 10:25:06 -04:00
parent bc3ef7f913
commit 0b8634b4c6
3 changed files with 16 additions and 16 deletions
+14 -14
View File
@@ -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.
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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: