Skip to main content

Module sandbox

Module sandbox 

Source
Expand description

REPL fence-extraction utilities.

The agent’s main loop scans assistant text for ```repl fenced blocks and feeds them to a crate::repl::runtime::PythonRuntime. Capturing FINAL(...) and routing sub-LLM RPCs are handled inside the runtime via a stdin/stdout protocol — no scraping required here.

Structs§

ReplBlock
A ```repl code block with byte-offset position info.

Functions§

extract_repl_blocks
Extract every ```repl block from text with byte offsets.
has_repl_block
Check if a string contains a ```repl fenced code block.