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
[]
= "0.38"
use ChainedInvoker;
use Arc;
// Fluent builder (0.38+: with_tool returns Result)
let invoker = new
.with_tool?
.with_tool?;
// Or mutably push:
let mut invoker = new;
invoker.add_tool?;
add_tool and with_tool return Err(InvokerError::DuplicateTool) if a tool
with the same name is already registered.
Status
0.38.x — pre-1.0; patch releases are backward-compatible.
See docs/SEMVER.md.
License
MIT — see LICENSE.