Skip to content

ConversationSummary

Defined in: packages/core/src/history/historyStore.ts:164

GS2-19 — a conversation-grained listing row: the conversation’s metadata plus the aggregate of its turns (how many, the timespan they cover, and a preview of the last one). This is the top-level unit gth history list shows, in place of isolated per-turn rows.

optional command?: string

Defined in: packages/core/src/history/historyStore.ts:174


optional firstTs?: string

Defined in: packages/core/src/history/historyStore.ts:179

Timestamp of the first / last turn, when any turns exist.


id: number

Defined in: packages/core/src/history/historyStore.ts:165


optional lastPrompt?: string

Defined in: packages/core/src/history/historyStore.ts:182

Prompt / response of the most recent turn (a one-line preview source).


optional lastResponse?: string

Defined in: packages/core/src/history/historyStore.ts:183


optional lastTs?: string

Defined in: packages/core/src/history/historyStore.ts:180


optional model?: string

Defined in: packages/core/src/history/historyStore.ts:175


optional origin?: string

Defined in: packages/core/src/history/historyStore.ts:200

GS2-106 — the fan-out surface that started the run (batch, eval, gth-batch, workflow); absent for a direct run and for any row written before the column existed.


optional project?: string

Defined in: packages/core/src/history/historyStore.ts:173

The conversation’s PROJECT ROOT as recorded when it was opened — see ConversationMeta.project for what that value is and, just as importantly, what it is not. A surface rendering it must name it as the project root; it is not where the session was.


optional runId?: string

Defined in: packages/core/src/history/historyStore.ts:195

GS2-106 — the conversation’s stable run id, minted when the row was created. Absent for a row written before run ids existed; those stay addressable by id.


startedTs: string

Defined in: packages/core/src/history/historyStore.ts:167

When the conversation was opened.


optional threadId?: string

Defined in: packages/core/src/history/historyStore.ts:190

GS2-20 — the LangGraph thread this conversation’s checkpoint lives under, when it has one. Absent for a conversation recorded without a checkpointer — any pre-GS2-20 row, a single-shot run recorded before GS2-106 or whose store would not open — and for one whose link was cut after a checkpoint write failed.


turnCount: number

Defined in: packages/core/src/history/historyStore.ts:177

Number of turns recorded under this conversation (0 for a conversation with no turns).