pub trait HematiteTool {
// Required methods
fn name(&self) -> &'static str;
fn description(&self) -> &'static str;
fn risk_level(&self, args: &Value) -> RiskLevel;
fn estimate_token_cost(&self, args: &Value) -> usize;
fn security_audit(&self, args: &Value) -> Result<(), String>;
fn dry_run(&self, args: Value) -> Result<String, String>;
fn run(&self, args: Value) -> Result<String, String>;
}Required Methods§
fn name(&self) -> &'static str
fn description(&self) -> &'static str
fn risk_level(&self, args: &Value) -> RiskLevel
Sourcefn estimate_token_cost(&self, args: &Value) -> usize
fn estimate_token_cost(&self, args: &Value) -> usize
Estimates the context window impact before execution