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: 100The maximum number of prompts to return. |
offset | int | Default: 0The number of prompts to skip. |
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 |
sort_direction | Literal['desc', 'asc'] | Default: 'desc'The order to sort by. |
query | Optional[str] | Default: NoneFilter prompts by a search query. |