Expand description
Sandbox executor — creates fresh V8 isolates and runs LLM-generated code.
Each execution gets a brand new runtime. No state leaks between calls.
V8 isolates are !Send, so all JsRuntime operations run on a dedicated
thread with its own single-threaded tokio runtime. The public API is
fully async and Send-safe.
Structs§
- Sandbox
Config - Configuration for the sandbox executor.
- Sandbox
Executor - The sandbox executor. Creates fresh V8 isolates for each execution.
Enums§
- Execution
Mode - How the sandbox executes code.
Functions§
- run_
execute - Run an execute operation on the current thread.
- run_
execute_ with_ known_ servers - Run an execute operation with an optional set of known server names for SR-R6 validation and known tools for structured error fuzzy matching.
- run_
search - Run a search operation on the current thread (must be called from a dedicated thread, not the main tokio runtime).