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§
- Calculator
Tool - A tool for performing basic arithmetic operations.
- Echo
Tool - A tool that echoes back the provided message.
- File
Edit Tool - A tool for editing a file by replacing text.
- File
Read Tool - A tool for reading the contents of a file.
- File
Search Tool - A tool for searching for files.
- File
Write Tool - A tool for writing content to a file.
- Function
Definition - The definition of a function that can be called by a tool.
- MemoryDB
Tool - In-Memory Database Tool
- Parameters
Schema - The schema for the parameters of a function.
- QdrantRAG
Tool - RAG (Retrieval-Augmented Generation) Tool with Qdrant Vector Database
- Tool
Definition - The definition of a tool that can be sent to an LLM.
- Tool
Parameter - A parameter for a tool.
- Tool
Registry - A registry for managing a collection of tools.
- Tool
Result - The result of a tool execution.
Traits§
- Tool
- A trait for tools that can be used by agents.