PaginatedRequestFactory

Used to build each "list" request in a paginated flow, injecting the current cursor between pages.

Parameters

R

The concrete request class (e.g. ListPromptsRequest) that implements JsonRpcRequest.

Functions

Link copied to clipboard
abstract fun create(id: String, cursor: String?): R

Creates a new paginated JSON-RPC request of type R given a unique id and an optional cursor string.