Skip to main content

Module lua

Module lua 

Source
Expand description

Lua sandbox — embedded Lua 5.4 runtime for skill execution and RLM REPL.

Provides a sandboxed Lua VM that removes dangerous modules (io, os, debug, require, loadfile, dofile, load) while exposing controlled functions for HTTP, JSON, and context manipulation.

Modules§

crypto
Crypto, encoding, and utility functions for the Lua sandbox.
functions
Registered Lua functions for skill execution and RLM REPL.

Structs§

LlmQueryChannel
Channel pair for synchronous LLM sub-queries from Lua code.
LuaSandbox
A sandboxed Lua 5.4 VM.

Enums§

LlmSubRequest
A sub-LLM query request from Lua code.

Functions§

extract_lua_blocks
Extract ```lua ``` code blocks from text.
json_to_lua
Convert a serde_json::Value to a mlua::Value.
lua_to_json
Convert a mlua::Value to a serde_json::Value.