Expand description
§Leviath Scripting
Rhai scripting integration for custom validators, transforms, and dynamic logic.
This crate provides a sandboxed Rhai engine that allows users to define custom validators, context transforms, and compaction strategies without modifying Leviath’s core code.
Re-exports§
pub use engine::ScriptEngine;pub use sandbox::SandboxConfig;pub use tool::ParamSpec;pub use tool::ScriptHost;pub use tool::ScriptToolMeta;pub use tool::ScriptToolSet;pub use tool::SkippedTool;pub use tool::execute as execute_script_tool;
Modules§
- engine
- Rhai script engine with Leviath integration.
- functions
- Leviath functions exposed to Rhai scripts.
- region_
hook - Script-backed custom region hooks (
RegionKind::Custom). - sandbox
- Sandbox configuration for Rhai scripts.
- tool
- Rhai script tools - drop-in tool definitions for agent blueprints.
- types
- Leviath types registered in Rhai.
Enums§
- Error
- Error types for scripting operations.
Functions§
- harden
- Apply the sandbox limits every Leviath Rhai engine shares.
Type Aliases§
- Result
- Result type alias using Scripting’s Error type.