list_document_types
Retrieve and cache all document types to efficiently handle user queries and reduce redundant API calls. Simplifies matching by name or slug for better performance.
Instructions
List all document types. IMPORTANT: When a user query may refer to a document type or tag, you should fetch all document types and all tags up front (with a large enough page_size), cache them for the session, and search locally for matches by name or slug before making further API calls. This reduces redundant requests and handles ambiguity between tags and document types efficiently.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
name__icontains | No | ||
name__iendswith | No | ||
name__iexact | No | ||
name__istartswith | No | ||
ordering | No | ||
page | No | ||
page_size | No |