AiProjectThreadSummary

pydantic model openapi_client.models.ai_project_thread_summary.AiProjectThreadSummary

A thread as it appears in the project thread listing. Fewer fields than the thread detail response; use GET /ai/projects/{project_id}/threads/{thread_id} for the full record.

Fields:
field thread_id: Optional[StrictStr] = None (alias 'ThreadId')

Identifier of the thread. Use it on the thread detail, update, delete and messages endpoints.

field title: Optional[StrictStr] = None (alias 'Title')

Thread title. Threads start as “New Thread” until they are renamed or the assistant names them.

field creation_time: Optional[StrictStr] = None (alias 'CreationTime')

When the thread was created, in UTC.

field last_modified_time: Optional[StrictStr] = None (alias 'LastModifiedTime')

When the thread was last active. This is the default sort field for the listing.

field created_by: Optional[StrictStr] = None (alias 'CreatedBy')

Amorphic user who started the thread.

field keywords: Optional[List[StrictStr]] = None (alias 'Keywords')

Keywords set on the thread. Absent when none were set.

field visibility: Optional[StrictStr] = None (alias 'Visibility')

Whether other project members can see the thread. New threads are private and can be shared once; sharing cannot be undone.

field access_type: Optional[StrictStr] = None (alias 'AccessType')

Your access to the thread: owner when you created it, read-only when another member shared it with the project.

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 AiProjectThreadSummary 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 AiProjectThreadSummary from a dict

Return type:

Optional[Self]