Expand description
Saved copies of long capability output.
A result longer than the inline limit is kept whole in a file under the
system temporary directory, and the model receives the fileโs path, size,
line count and a preview, which it searches with the run_command builtin.
Nothing here limits or deletes saved files: they live as long as the
temporary directory keeps them. Verification always uses the original result.
Constantsยง
- PREVIEW_
CHARS ๐ - Characters of a saved file shown to the model next to its path.
- SEARCH_
NOTE ๐ - How the model should use a saved file instead of repeating the call.
- STORAGE_
NOTE ๐ - What the model should do when output could not be saved completely.
Staticsยง
- SERIAL ๐
Functionsยง
- create ๐
- Create a new private file for one output.
- describe ๐
- Path, size, line count and preview of a saved file.
- inline_
bytes ๐ - Results longer than this many UTF-8 bytes are saved instead of inlined.
- is_
image ๐ - Images keep their existing multimodal path in Pilot.
- now_
unix ๐ - output_
dir ๐ - This processโs private directory under the system temporary directory.
- prepare
- Return
resultwith long text replaced by a reference to its saved copy. - prepare_
in ๐ - save ๐