Expand description
Native built-in tools for Leviath agents.
Provides file system and shell tools sandboxed to a working directory.
Structs§
- Builtin
Tools - Built-in tools: read_file, write_file, edit_file, list_dir, shell.
- Platform
Capabilities - The set of
ToolCapabilitys the current platform provides. - Process
Group Reaper - SIGKILLs a shell’s whole process group when dropped.
- Tool
Context - Context for tool execution - defines the sandbox root.
Enums§
- Tool
Capability - A platform feature a built-in tool depends on.
Constants§
- TOOL_
ALIASES - Alias → canonical built-in tool name.
Traits§
- Shell
Executor - Redirects shell command execution off the host into a sandbox.
Functions§
- canonical_
tool_ name - Resolve
namethroughTOOL_ALIASESto its canonical built-in name. - own_
process_ group - Put
cmdin its own process group, so the whole command tree can be signalled as one.leviath_sys::configure_detacheddoes this for astd::process::Command; the tool lane uses tokio’s, which has its own (Unix-only) setter. A no-op where the platform has no process groups - there, killing the direct child is all that exists. - tool_
required_ capabilities - The capabilities a built-in tool requires to function.