AIChatsConfig¶
- pydantic model openapi_client.models.ai_chats_config.AIChatsConfig¶
User notes/chat retention for GET/PUT /ai/playground/chats/config. GET returns stored AIChatsConfig, or NotesExpirationDays=180 and ChatExpirationDays=30 when the attribute is unset. PUT writes only these two keys; omitted keys keep stored values (or those defaults). Provided values should be 0-365. Extra properties are ignored.
- field notes_expiration_days: Optional[Annotated[int, Field(le=365, strict=True, ge=0)]] = None (alias 'NotesExpirationDays')¶
Days until notes expire. Default 180 when unset. PUT accepts 0-365.
- field chat_expiration_days: Optional[Annotated[int, Field(le=365, strict=True, ge=0)]] = None (alias 'ChatExpirationDays')¶
Days until chats expire. Default 30 when unset. PUT accepts 0-365.
- 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 AIChatsConfig 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 AIChatsConfig from a dict
- Return type:
Optional[Self]