?
ThreadSummary
TypeRepresents a thread without its messages, as returned by `createThread` and `listThreads`.
The lightweight thread record: an id, a title, and ISO timestamps, without the message history. createThread returns one and listThreads returns a page of them; the title is null until the platform generates it from the first exchange.
ThreadSummary.ts
interface ThreadSummary { id: string title: string | null dateCreated: string dateUpdated: string }
Fields
id
string
Thread id (UUID).
title
string | null
User-editable title; null until the platform generates it from the first exchange.
dateCreated
string
ISO 8601 creation timestamp.
dateUpdated
string
ISO 8601 last-updated timestamp.
A row in a thread list
const { threads } = await chat.listThreads(); threads.map((t: ThreadSummary) => t.title ?? 'New conversation');