ThreadView
The ThreadView type of the TypeScript SDK, which threads.get take or answer.
type ThreadView = {
canonicalThreadId?: string
messageCount: number
messages: MessageMeta[]
nextCursor?: string
replyContext: ReplyContext | null
threadId: string
}Fields
| Field | Type | Description |
|---|---|---|
canonicalThreadId | string | Optional. Canonical thread ID if requested ID was merged |
messageCount | number | Total count of messages in this conversation |
messages | MessageMeta[] | List of messages in this thread in chronological order |
nextCursor | string | Optional. Pagination cursor for next page of messages |
replyContext | ReplyContext | null | Pre-computed context for replying to this thread |
threadId | string | Canonical conversation thread identifier (ULID) |
Used by
| Method | What it does |
|---|---|
threads.get | Get a conversation thread |