Skip to main content

Module tools

Module tools 

Source
Expand description

Built-in tools module

Provides a collection of commonly used tools that can be registered with the ToolPlugin.

Modules§

calculator
datetime
filesystem
http
json
medical_knowledge
response_optimizer
rhai
shell

Structs§

CalculatorTool
计算器工具 - 数学表达式计算
DateTimeTool
日期时间工具 - 获取当前时间、格式化日期
FileSystemTool
文件系统工具 - 读写文件、列出目录
HttpRequestTool
HTTP 请求工具 - 发送网络请求
JsonTool
JSON 处理工具 - JSON 解析和操作
MedicalKnowledgeTool
医疗知识动态注入工具
ResponseOptimizerTool
响应优化插件 - 根据学生反馈调整教学策略
RhaiScriptTool
Rhai 脚本执行工具 - 执行 Rhai 脚本
ShellCommandTool
Shell 命令工具 - 执行系统命令(受限)
ToolCall
工具调用请求
ToolDefinition
工具定义
ToolPlugin
工具插件
ToolResult
工具调用结果

Traits§

AgentPlugin
核心插件 trait
ToolExecutor
工具执行器 trait

Functions§

create_builtin_tool_plugin
Convenience function to create a ToolPlugin with all built-in tools

Type Aliases§

PluginResult
插件执行结果