Skip to main content

rskit_tool/
lib.rs

1//! Tool definition, auto-wiring, registry and middleware for agentic systems.
2//!
3//! Provides a type-safe framework for defining tools that can be used in
4//! agentic systems, LLM function calling, or MCP servers.
5
6mod callable;
7pub mod context;
8mod definition;
9pub mod envelope;
10mod from_fn;
11pub mod hitl;
12pub mod io;
13pub mod registry;
14pub mod result;
15
16pub use callable::Callable;
17pub use context::Context;
18pub use definition::{Annotations, Definition, ExecutionHint};
19pub use envelope::{
20    DataClassification, Envelope, FilesystemMode, FilesystemRule, NetworkPolicy, NetworkRule,
21    Safety, SensitiveMatcher, SensitivePredicate, SubprocessRule,
22};
23pub use from_fn::{from_fn, from_fn_simple};
24pub use hitl::{
25    Decision, DenyHumanApproval, DenyOnSensitive, HumanApproval, SensitivityEvaluator, ToolCall,
26    denied_error,
27};
28pub use io::{ToolInput, ToolMetadata, ToolOutput, ToolSchema};
29pub use registry::{BatchOptions, Registry};
30pub use result::{ToolResult, error_result, json_result, text_result};
31
32#[cfg(test)]
33mod tests;