Module tools

Module tools 

Source
Expand description

Contains the tool system, including the Tool trait and various tool implementations.

§Tools Module

This module provides the framework for creating and managing tools that can be used by agents. It defines the Tool trait, which all tools must implement, and the ToolRegistry for managing a collection of tools. It also includes several built-in tools for common tasks.

Structs§

CalculatorTool
A tool for performing basic arithmetic operations.
EchoTool
A tool that echoes back the provided message.
FileEditTool
A tool for editing a file by replacing text.
FileIOTool
A tool for basic file I/O operations.
FileListTool
A tool for listing directory contents.
FileReadTool
A tool for reading the contents of a file.
FileSearchTool
A tool for searching for files.
FileWriteTool
A tool for writing content to a file.
FunctionDefinition
The definition of a function that can be called by a tool.
HttpRequestTool
A tool for making HTTP requests.
JsonParserTool
A tool for parsing and manipulating JSON data.
MemoryDBTool
In-Memory Database Tool
ParametersSchema
The schema for the parameters of a function.
QdrantRAGTool
RAG (Retrieval-Augmented Generation) Tool with Qdrant Vector Database
ShellCommandTool
A tool for executing shell commands safely.
SystemInfoTool
A tool for retrieving system information.
TextProcessorTool
A tool for text processing and manipulation operations.
TimestampTool
A tool for date/time operations and timestamp manipulation.
ToolDefinition
The definition of a tool that can be sent to an LLM.
ToolParameter
A parameter for a tool.
ToolRegistry
A registry for managing a collection of tools.
ToolResult
The result of a tool execution.
WebScraperTool
A tool for scraping web content from URLs.

Traits§

Tool
A trait for tools that can be used by agents.