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.
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.
MemoryDBTool
In-Memory Database Tool
ParametersSchema
The schema for the parameters of a function.
QdrantRAGTool
RAG (Retrieval-Augmented Generation) Tool with Qdrant Vector Database
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.

Traits§

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