buildListPromptsRequest

Creates a ListPromptsRequest using a type-safe DSL builder.

Optional

  • cursor - Pagination cursor for fetching next page

  • meta - Metadata for the request

Example without pagination:

val request = buildListPromptsRequest { }

Example with pagination:

val request = buildListPromptsRequest {
cursor = "eyJwYWdlIjogMn0="
}

Return

A configured ListPromptsRequest instance

Parameters

block

Configuration lambda for setting up the list prompts request

See also