SessionSearchResult
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:74
A search hit: the stored record plus its id and a highlighted snippet.
Extends
Section titled “Extends”Properties
Section titled “Properties”command?
Section titled “command?”
optionalcommand?:string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:54
Originating command (ask/chat/code/exec/…).
Inherited from
Section titled “Inherited from”conversationId?
Section titled “conversationId?”
optionalconversationId?:number
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:48
GS2-19 — the parent conversation this turn belongs to. When omitted, HistoryStore.record opens a fresh single-turn conversation for the row (so a bare single-shot run = a 1-turn conversation). Interactive sessions open one conversation up-front and pass its id here on every turn, grouping the whole chat under one conversation.
Inherited from
Section titled “Inherited from”costUsd?
Section titled “costUsd?”
optionalcostUsd?:number
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:66
Estimated cost in USD, when known.
Inherited from
Section titled “Inherited from”durationMs?
Section titled “durationMs?”
optionaldurationMs?:number
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:70
Wall-clock duration of the run in milliseconds, when known.
Inherited from
Section titled “Inherited from”id:
number
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:75
model?
Section titled “model?”
optionalmodel?:string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:56
Human-readable model/provider label.
Inherited from
Section titled “Inherited from”project?
Section titled “project?”
optionalproject?:string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:52
Project / working directory the run happened in.
Inherited from
Section titled “Inherited from”prompt?
Section titled “prompt?”
optionalprompt?:string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:58
The user prompt / source that started the run (full-text indexed).
Inherited from
Section titled “Inherited from”response?
Section titled “response?”
optionalresponse?:string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:60
The final assistant response text (full-text indexed).
Inherited from
Section titled “Inherited from”snippet
Section titled “snippet”snippet:
string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:78
FTS5 snippet around the match (may be empty).
tokensInput?
Section titled “tokensInput?”
optionaltokensInput?:number
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:62
Prompt/input token count, when known.
Inherited from
Section titled “Inherited from”tokensOutput?
Section titled “tokensOutput?”
optionaltokensOutput?:number
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:64
Completion/output token count, when known.
Inherited from
Section titled “Inherited from”tools?
Section titled “tools?”
optionaltools?:string[]
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:68
Names of tools invoked during the run, when known.
Inherited from
Section titled “Inherited from”ts:
string
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/history/historyStore.ts:76
ISO-8601 timestamp; defaults to now when omitted.