PaginationInfo
Pagination metadata for navigating through results.
Attributes: next_cursor: Opaque cursor token for fetching the next page. None if there are no more results. has_more: Whether there are more results available after this page. total_count: Total number of items across all pages. None if the backend doesn't provide this information.
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
next_cursor | Any | ✗ | None | Cursor token for the next page of results |
has_more | bool | ✗ | False | Whether more results are available |
total_count | Any | ✗ | None | Total number of items across all pages |
Usage Example
from credoai.models import PaginationInfo
# Create a new instance
model = PaginationInfo(
)
# Convert to dictionary
model_dict = model.model_dump()
print(model_dict)
# Create from dictionary
data = {
}
model_from_dict = PaginationInfo(**data)
JSON Schema
{
"type": "object",
"title": "PaginationInfo",
"description": "Pagination metadata for navigating through results.
Attributes:
next_cursor: Opaque cursor token for fetching the next page.
None if there are no more results.
has_more: Whether there are more results available after this page.
total_count: Total number of items across all pages.
None if the backend doesn't provide this information.",
"properties": {
"next_cursor": {
"type": "any",
"description": "Cursor token for the next page of results"
},
"has_more": {
"type": "bool",
"description": "Whether more results are available"
},
"total_count": {
"type": "any",
"description": "Total number of items across all pages"
}
},
"required": []
}