|
| 1 | +# Built-in Tools |
| 2 | + |
| 3 | +Ready-to-use tool implementations provided by the `smolagents` library. |
| 4 | + |
| 5 | +These built-in tools are concrete implementations of the [`Tool`] base class, each designed for specific tasks such as web searching, Python code execution, webpage retrieval, and user interaction. |
| 6 | +You can use these tools directly in your agents without having to implement the underlying functionality yourself. |
| 7 | +Each tool handles a particular capability and follows a consistent interface, making it easy to compose them into powerful agent workflows. |
| 8 | + |
| 9 | +The built-in tools can be categorized by their primary functions: |
| 10 | +- **Information Retrieval**: Search and retrieve information from the web and specific knowledge sources. |
| 11 | + - [`ApiWebSearchTool`] |
| 12 | + - [`DuckDuckGoSearchTool`] |
| 13 | + - [`GoogleSearchTool`] |
| 14 | + - [`WebSearchTool`] |
| 15 | + - [`WikipediaSearchTool`] |
| 16 | +- **Web Interaction**: Fetch and process content from specific web pages. |
| 17 | + - [`VisitWebpageTool`] |
| 18 | +- **Code Execution**: Dynamic execution of Python code for computational tasks. |
| 19 | + - [`PythonInterpreterTool`] |
| 20 | +- **User Interaction**: Enable Human-in-the-Loop collaboration between agents and users. |
| 21 | + - [`UserInputTool`]: Collect input from users. |
| 22 | +- **Speech Processing**: Convert audio to textual data. |
| 23 | + - [`SpeechToTextTool`] |
| 24 | +- **Workflow Control**: Manage and direct the flow of agent operations. |
| 25 | + - [`FinalAnswerTool`]: Conclude agent workflow with final response. |
| 26 | + |
| 27 | +## ApiWebSearchTool |
| 28 | + |
| 29 | +[[autodoc]] smolagents.default_tools.ApiWebSearchTool |
| 30 | + |
| 31 | +## DuckDuckGoSearchTool |
| 32 | + |
| 33 | +[[autodoc]] smolagents.default_tools.DuckDuckGoSearchTool |
| 34 | + |
| 35 | +## FinalAnswerTool |
| 36 | + |
| 37 | +[[autodoc]] smolagents.default_tools.FinalAnswerTool |
| 38 | + |
| 39 | +## GoogleSearchTool |
| 40 | + |
| 41 | +[[autodoc]] smolagents.default_tools.GoogleSearchTool |
| 42 | + |
| 43 | +## PythonInterpreterTool |
| 44 | + |
| 45 | +[[autodoc]] smolagents.default_tools.PythonInterpreterTool |
| 46 | + |
| 47 | +## SpeechToTextTool |
| 48 | + |
| 49 | +[[autodoc]] smolagents.default_tools.SpeechToTextTool |
| 50 | + |
| 51 | +## UserInputTool |
| 52 | + |
| 53 | +[[autodoc]] smolagents.default_tools.UserInputTool |
| 54 | + |
| 55 | +## VisitWebpageTool |
| 56 | + |
| 57 | +[[autodoc]] smolagents.default_tools.VisitWebpageTool |
| 58 | + |
| 59 | +## WebSearchTool |
| 60 | + |
| 61 | +[[autodoc]] smolagents.default_tools.WebSearchTool |
| 62 | + |
| 63 | +## WikipediaSearchTool |
| 64 | + |
| 65 | +[[autodoc]] smolagents.default_tools.WikipediaSearchTool |
0 commit comments