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 as file_legacy;pub use system as system_legacy;pub use web as web_legacy;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§
- basic
- 基础工具模块
- echo
Deprecated - Echo 工具兼容模块,建议使用
basic::echo。 - file
- 文件操作工具模块
- git
Deprecated - Git 工具兼容模块,建议使用
system::git。 - math
- 数学工具模块
- media
- 媒体处理工具模块
- memory
- 记忆工具模块
- search
- 搜索工具模块
- system
- 系统工具模块
- web
- Web 工具模块
Macros§
- file_
legacy - 文件工具(向后兼容,建议使用
file模块) Expands to the file name in which it was invoked.
Traits§
- Tool
Registry - ToolRegistry trait - 工具注册表接口。