listAllPrompts method

Stream<Prompt> listAllPrompts({
  1. ListPromptsRequest? request,
  2. int? maxPageCount = 64,
})

Every Prompt on this server, walking prompts/list pages until one reports no nextCursor.

request asks for the first page, and each later page repeats it with the next cursor. maxPageCount bounds the walk, throwing past it; null lifts the bound.

Implementation

Stream<Prompt> listAllPrompts({
  ListPromptsRequest? request,
  int? maxPageCount = 64,
}) => _listAllPages(
  ListPromptsRequest.methodName,
  request ?? ListPromptsRequest(),
  (ListPromptsResult page) => page.prompts,
  maxPageCount,
);