List prompts with pagination.
list_prompts(
self,
*,
limit: int = 100,
offset: int = 0,
is_public: Optional[bool] = None,
is_archived: Optional[bool] = False,
sort_field: ls_schemas.PromptSortField = ls_schemas.PromptSortField.updated_at,
sort_direction: Literal['desc', 'asc'] = 'desc',
query: Optional[str] = None
) -> ls_schemas.ListPromptsResponse| Name | Type | Description |
|---|---|---|
limit | int, default=100 | Default: 100The maximum number of prompts to return. Defaults to 100. |
offset | int, default=0 | Default: 0The number of prompts to skip. Defaults to 0. |
is_public | Optional[bool] | Default: NoneFilter prompts by if they are public. |
is_archived | Optional[bool] | Default: FalseFilter prompts by if they are archived. |
sort_field | PromptSortField | Default: ls_schemas.PromptSortField.updated_atThe field to sort by. Defaults to "updated_at". |
sort_direction | Literal["desc", "asc"], default="desc" | Default: 'desc'The order to sort by. Defaults to "desc". |
query | Optional[str] | Default: NoneFilter prompts by a search query. |