Skip to main content

Module tools

Module tools 

Source
Expand description

Portable tool helpers and host ports (D16 E1-a3+).

Re-exports§

pub use arg_repair::ArgRepairError;
pub use arg_repair::repair;
pub use diff_format::make_unified_diff;
pub use host::RuntimeToolHostWire;
pub use host::ToolAutomationHost;
pub use host::ToolProgressEmit;
pub use host::ToolShellEnvHost;
pub use host::ToolTaskHost;
pub use network_gate::NetworkGateError;
pub use network_gate::check_host_policy;
pub use network_gate::check_host_with_policy;
pub use network_gate::check_url_policy;
pub use network_gate::host_policy_decision;
pub use network_gate::is_http_url;
pub use network_gate::is_restricted_ip;
pub use path::path_has_prefix;
pub use schema_sanitize::sanitize;
pub use workspace_walk::SKIP_DIR_NAMES;
pub use workspace_walk::collect_workspace_files;
pub use workspace_walk::configure_workspace_walk;
pub use workspace_walk::is_probably_binary;

Modules§

arg_repair
Deterministic JSON argument repair for malformed tool-call inputs.
diff_format
Build unified-diff strings for tool results.
host
Tool host ports wired by the sidecar at engine spawn (D16 E1-a3+).
network_gate
Shared outbound network policy + SSRF helpers for model-visible tools (D16 E1-a6).
path
Path containment helpers shared by tool execution.
schema_sanitize
Schema sanitizer for tool input_schema before sending to DeepSeek.
workspace_walk
Shared workspace directory walking (ripgrep-style defaults).