Reference · Record · tools.rs

FileResult Record

One file's result when a tool runs over several.

struct FileResult {
    var input: String
    var outputs: [ToolOutput]
    var error: String?
    var code: String?
    var limit: UInt32?
}

Fields

FieldTypeDescription
inputStringNo description yet.
outputsVec<ToolOutput>No description yet.
errorOption<String>why this file failed, in the user's language; None when it worked
codeOption<String>the same, for code to act on ("too-many-pages", "no-tables", "wrong-password", "unreadable", "refused"); None when it worked
limitOption<u32>with "too-many-pages": the page cap

Used by

run_tool, run_tool_batch, run_workflow

Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.