Skip to main content

Module tool

Module tool 

Source
Expand description

Tool Trait — The Fractal Meta-Tool Foundation

Every tool in WhiteMagic implements this trait. Each tool self-tracks its call count, success rate, latency, and resource usage via atomic counters. The dispatch pipeline uses these stats to retire ineffective tools and promote hot ones.

Structs§

ToolStats
Atomic statistics tracked per-tool.
ToolStatsSnapshot
A serializable snapshot of tool statistics.

Traits§

Tool
The core tool trait. Every WhiteMagic tool implements this.

Type Aliases§

Args
Tool arguments — deserialized from JSON-RPC params.
Output
Tool output — serialized to JSON-RPC result.