Skip to main content

Crate rskit_tool

Crate rskit_tool 

Source
Expand description

Tool definition, auto-wiring, registry and middleware for agentic systems.

Provides a type-safe framework for defining tools that can be used in agentic systems, LLM function calling, or MCP servers.

Re-exports§

pub use context::Context;
pub use envelope::DataClassification;
pub use envelope::Envelope;
pub use envelope::FilesystemMode;
pub use envelope::FilesystemRule;
pub use envelope::NetworkPolicy;
pub use envelope::NetworkRule;
pub use envelope::Safety;
pub use envelope::SensitiveMatcher;
pub use envelope::SensitivePredicate;
pub use envelope::SubprocessRule;
pub use hitl::Decision;
pub use hitl::DenyHumanApproval;
pub use hitl::DenyOnSensitive;
pub use hitl::HumanApproval;
pub use hitl::SensitivityEvaluator;
pub use hitl::ToolCall;
pub use hitl::denied_error;
pub use io::ToolInput;
pub use io::ToolMetadata;
pub use io::ToolOutput;
pub use io::ToolSchema;
pub use registry::BatchOptions;
pub use registry::Registry;
pub use result::ToolResult;
pub use result::error_result;
pub use result::json_result;
pub use result::text_result;

Modules§

context
Execution context for tool calls.
envelope
Executable permission envelope for tools.
hitl
Human-in-the-loop (HITL) evaluation for tool dispatch.
io
Typed tool IO wrappers.
registry
Concurrent-safe tool registry.
result
Tool execution result types.

Structs§

Annotations
Optional hints about tool behavior (MCP-aligned).
Definition
Describes a tool — MCP-aligned metadata.

Enums§

ExecutionHint
How the frontend should handle the tool result.

Traits§

Callable
Type-erased tool interface for heterogeneous registries.

Functions§

from_fn
Create a tool from an async handler function.
from_fn_simple
Convenience: create a tool from a simpler handler that returns a Serialize type.