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.

Re-exports§

pub use crate::ToolCall;
pub use crate::ToolDefinition;
pub use crate::ToolExecutor;
pub use crate::ToolPlugin;
pub use crate::ToolResult;
pub use calculator::CalculatorTool;
pub use datetime::DateTimeTool;
pub use filesystem::FileSystemTool;
pub use http::HttpRequestTool;
pub use json::JsonTool;
pub use medical_knowledge::MedicalKnowledgeTool;
pub use response_optimizer::ResponseOptimizerTool;
pub use rhai::RhaiScriptTool;
pub use shell::ShellCommandTool;

Modules§

calculator
datetime
filesystem
http
json
medical_knowledge
response_optimizer
rhai
shell

Traits§

AgentPlugin
核心插件 trait

Functions§

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

Type Aliases§

PluginResult
插件执行结果