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?
}public record FileResult(
string input,
ToolOutput[] outputs,
string? error,
string? code,
uint? limit
)pub struct FileResult {
pub input: String,
pub outputs: Vec<ToolOutput>,
pub error: Option<String>,
pub code: Option<String>,
pub limit: Option<u32>,
}Fields
| Field | Type | Description |
|---|---|---|
input | String | No description yet. |
outputs | Vec<ToolOutput> | No description yet. |
error | Option<String> | why this file failed, in the user's language; None when it worked |
code | Option<String> | the same, for code to act on ("too-many-pages", "no-tables", "wrong-password", "unreadable", "refused"); None when it worked |
limit | Option<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.