SingleShotResult
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/runtime/singleShot.ts:27
Result of a runSingleShot run: the pass/fail contract callers such as ask/exec have
always used (ok), plus the SUT’s answer text and run stats (GS2-16’s GthRunStats) that
were already computed internally but previously discarded. Extends GthRunStats rather than
restating tokensInput/tokensOutput/tools as parallel fields.
Extends
Section titled “Extends”Properties
Section titled “Properties”answer
Section titled “answer”answer:
string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/runtime/singleShot.ts:31
The SUT’s full answer text (runner.processMessages()’s return value). Empty on failure.
ok:
boolean
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/runtime/singleShot.ts:29
true when the run completed without error, false when it failed.
tokensInput?
Section titled “tokensInput?”
optionaltokensInput?:number
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:41
Total prompt/input tokens across the run’s LLM calls, when the provider reported usage.
Inherited from
Section titled “Inherited from”tokensOutput?
Section titled “tokensOutput?”
optionaltokensOutput?:number
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:43
Total completion/output tokens across the run’s LLM calls, when the provider reported usage.
Inherited from
Section titled “Inherited from”toolResults?
Section titled “toolResults?”
optionaltoolResults?:GthToolResult[]
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:53
BATCH-21 — one record per executed tool result (ToolMessage) observed during the run, in
arrival order and NOT deduplicated (a tool called twice yields two records), so gth eval’s
tool-RESULT assertions (must_error / tool_result_json_path) can grade what a tool
returned, not just that it was called. Optional (additive): producers that predate the field
simply omit it; runStats.js finalizeRunStats always sets it.
Inherited from
Section titled “Inherited from”tools:
string[]
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/types.ts:45
Names of tools invoked during the run (deduplicated); empty when no tools were used.