Skip to main content

create_runtime

Function create_runtime 

Source
pub fn create_runtime(
    dispatcher: Option<Arc<dyn ToolDispatcher>>,
    max_heap_size: usize,
    tool_call_limits: Option<ToolCallLimits>,
) -> Result<JsRuntime, SandboxError>
Expand description

Create a fresh JsRuntime with the forge extension loaded and V8 heap limits set.

Public for reuse in the worker binary.