Expand description
rucora-tools - rucora 内置工具集合
提供丰富的工具实现,包括文件操作、系统命令、Web 请求、搜索等功能。
§模块结构
file- 文件操作工具(读、写、编辑)system- 系统工具(Shell、命令执行、时间)web- Web 工具(HTTP 请求、网页获取、搜索)search- 搜索工具(Glob 搜索、内容搜索)math- 数学工具(计算器)media- 媒体工具(图片信息)memory- 记忆工具basic- 基础工具(回显等)
§使用示例
use rucora_tools::file::{FileReadTool, FileWriteTool};
use rucora_tools::system::ShellTool;
use rucora_tools::web::HttpRequestTool;
// 使用工具...Re-exports§
pub use file::FileEditTool;pub use file::FileReadTool;pub use file::FileToolConfig;pub use file::FileWriteTool;pub use system::CmdExecTool;pub use system::DatetimeTool;pub use system::GitTool;pub use system::ShellTool;pub use web::BrowseTool;pub use web::BrowserOpenTool;pub use web::GithubTrendingTool;pub use web::HttpRequestTool;pub use web::SerpapiTool;pub use web::TavilyTool;pub use web::WebFetchTool;pub use search::ContentSearchTool;pub use search::GlobSearchTool;pub use math::CalculatorTool;pub use media::ImageInfoTool;pub use basic::EchoTool;pub use memory::MemoryRecallTool;pub use memory::MemoryStoreTool;
Modules§
Traits§
- Tool
Registry - ToolRegistry trait - 工具注册表接口。