Interface: IPageArgs<TCursor>
Defined in: contracts/types.ts:626
One read of a list, paged the way the Vercel chat client pages (D37): a limit and one cursor, newest first.
Taken by every list method of the gateway (ThreadStore.listThreads, Trace.query, PromptTemplateStore.listVersions).
The cursor is the identity of an item: its id for threads and trace entries, its version for prompt templates.
Type Parameters
TCursor
TCursor = string
Properties
endingBefore
endingBefore:
TCursor|null
Defined in: contracts/types.ts:644
An item: return the items older than it.
Scrolling down, the next page. Null when not used; never together with
startingAfter.
limit
limit:
number
Defined in: contracts/types.ts:632
How many items, 1–200.
Example
20 - one screen of a sidebar or an admin table
startingAfter
startingAfter:
TCursor|null
Defined in: contracts/types.ts:638
An item: return the items newer than it.
Scrolling up. Null when not used; never together with
endingBefore.