AiProjectsPage

pydantic model openapi_client.models.ai_projects_page.AiProjectsPage

A page of AI projects you can access. Paging fields describe projects only. Pinned projects are returned separately, in full, on every page.

Fields:
field projects: List[ProjectListItem] [Required]

Projects on this page, excluding your pinned projects.

field pinned_projects: List[ProjectListItem] [Required] (alias 'pinnedProjects')

Your pinned projects, in the order you pinned them. Returned in full on every page and not filtered. Projects you can no longer access, or that no longer exist, are omitted. You can pin up to 10 projects.

field recent_threads: List[ListProjectsRecentThreadItem] [Required] (alias 'recentThreads')

Combined list of recent threads across every project in this response (pinned and unpinned), newest first. Includes public threads and your own private threads (up to five per project before merge). Not repeated on each project object.

field count: StrictInt [Required]

How many projects are in projects on this page.

Constraints:
  • strict = True

field total_count: StrictInt [Required]

Total unpinned projects you can access that match filterExpression.

Constraints:
  • strict = True

field next_available: StrictStr [Required]

“yes” when a further page of projects exists, “no” when this is the last page. A string, not a boolean.

Constraints:
  • strict = True

to_str()

Returns the string representation of the model using alias

Return type:

str

to_json()

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)

Create an instance of AiProjectsPage from a JSON string

Return type:

Optional[Self]

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)

Create an instance of AiProjectsPage from a dict

Return type:

Optional[Self]