GenToolFile¶
Import: import system.codegen;
GenToolFile¶
A file produced by a tool requested during generation.
path¶
Request or resource path.
contents¶
File contents: text, or base64 when binary is true. Empty for an opaque output.
binary¶
Whether the file is not valid UTF-8 text, so contents holds base64.
hash¶
BLAKE3 hash of the file bytes, as lowercase hex.
size¶
Size of the file in bytes.
opaque¶
Whether the file was requested as an opaque output. Its bytes are not in the snapshot; embed or publish it by referring to it as tool:<request id>/<path>.
constructor¶
Reads a tool-output file description from its JSON representation.