GetAiProjectThreadResponse¶
- pydantic model openapi_client.models.get_ai_project_thread_response.GetAiProjectThreadResponse¶
Full details of one project thread, returned by GET /ai/projects/{project_id}/threads/{thread_id}. Fields that were never set on the thread are omitted from the response.
- Fields:
- field thread_id: Optional[StrictStr] = None (alias 'ThreadId')¶
Identifier of the thread.
- field title: Optional[StrictStr] = None (alias 'Title')¶
Thread title. Threads start as “New Thread” until they are renamed or the assistant names them.
- field created_by: Optional[StrictStr] = None (alias 'CreatedBy')¶
Amorphic user who started the thread.
- 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, in UTC.
- field expiration_time: Optional[StrictStr] = None (alias 'ExpirationTime')¶
When the thread is due to be cleaned up automatically, in UTC. The retention window comes from the creator’s AI chat settings and defaults to 30 days from creation.
- field client_id: Optional[StrictStr] = None (alias 'ClientId')¶
Owning project, in the form project#<project_id>.
- 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.
- field keywords: Optional[List[StrictStr]] = None (alias 'Keywords')¶
Keywords set on the thread. Absent when none were set.
- field is_title_updated: Optional[StrictBool] = None (alias 'IsTitleUpdated')¶
True once someone has renamed the thread, which stops the assistant from replacing the title.
- field summary: Optional[StrictStr] = None (alias 'Summary')¶
Generated summary of the conversation. Present only after a successful summarization.
- field summary_generation_status: Optional[StrictStr] = None (alias 'SummaryGenerationStatus')¶
Where the last summarization request got to. Present only once summarization has been requested for this thread.
- field summary_generation_time: Optional[StrictStr] = None (alias 'SummaryGenerationTime')¶
When the last summarization request was recorded, in UTC.
- field files: Optional[List[GetAiProjectThreadResponseFilesInner]] = None (alias 'Files')¶
Files attached to the thread. Absent when the thread has none.
- 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 GetAiProjectThreadResponse 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 GetAiProjectThreadResponse from a dict
- Return type:
Optional[Self]