klieo-tools
Tool dispatch + JSON-schema arg validation + timeout enforcement for klieo-core.
Part of the klieo Rust agent framework.
Features
ToolInvokerimplementation that dispatches to registeredArc<dyn Tool>- JSON-schema validation on tool arguments before invoke
- Per-tool configurable timeouts with
ToolError::Timeouton expiry - Duplicate-name detection:
add_tool/with_toolreturnErr(InvokerError::DuplicateTool)instead of panicking
Usage
[]
= "3"
use ChainedInvoker;
let invoker = new
.with_tool_owned?
.with_tool_owned?;
let mut invoker = new;
invoker.add_tool?;
Use with_tool(Arc<dyn Tool>) when you need to share the Arc across
other dispatch paths.
add_tool and with_tool return Err(InvokerError::DuplicateTool) if a tool
with the same name is already registered.
Status
3.x — stable.
See docs/SEMVER.md.
License
MIT — see LICENSE.