Expand description
One cell’s tool result text: UltronRlmKernel.executeCell (experimental/session-worker.ts) over
truncateToolOutput (ultron/rlm/output-truncation.ts) and maskCellOutputCounted (ultron/rlm/output-secrets.ts).
A cell’s stdout, stderr and value are joined by newlines, secrets are masked, and an oversized text keeps its head
and tail (the whole text spilled to a private file when a spill directory is given). A failed cell becomes
CellFailure: what it printed, then the traceback.
Structs§
- Cell
Failure - A cell that raised (
RlmCellError): the message is the output and traceback;enamethe exception type. - Cell
Format - How a cell’s text is finished: the masker,
ULTRON_MASK_SECRETS, the byte budget and the spill directory. - Cell
Output - A cell’s tool result: its text and how many secrets were masked in it.
Constants§
Functions§
- cell_
output executeCell’s text for a kernel result.- spill_
output spillOutput:textin a new 0600 file in the 0700dir, dropping the oldest.txtfiles beyondSPILL_KEEP; the path, orNonewhen it cannot be written.- truncate_
tool_ output truncateToolOutput: keep the head and tail oftextwithinmax_bytes(UTF-8) and say what was elided.