?
chat.listThreads
Lists the caller's threads, newest first, in cursor-paged batches.
chat.listThreads(cursor?) → Promise<ThreadListPage>
Returns a ThreadListPage of thread summaries, fifty per page, newest first. Pass the page's nextCursor back to walk the rest, and stop when it comes back null. Threads are scoped to the caller, a signed-in user or an anonymous browser.
Parameters
cursor
string
Pagination cursor from a prior page's nextCursor.
Page through threads
const { threads, nextCursor } = await chat.listThreads(); if (nextCursor) await chat.listThreads(nextCursor);