File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
packages/models-library/src/models_library Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11from datetime import datetime
2- from typing import Self
2+ from typing import Annotated , Self
33
44from pydantic import Field
55
2222class ConversationRestGet (OutputSchema ):
2323 conversation_id : ConversationID
2424 product_name : ProductName
25- name : str = Field (..., max_length = 50 )
25+ name : Annotated [ str , Field (max_length = 50 )]
2626 project_uuid : ProjectID | None
2727 user_group_id : GroupID
2828 type : ConversationType
@@ -54,7 +54,7 @@ class ConversationMessageRestGet(OutputSchema):
5454 message_id : ConversationMessageID
5555 conversation_id : ConversationID
5656 user_group_id : GroupID
57- content : str = Field (..., max_length = 4096 )
57+ content : Annotated [ str , Field (max_length = 4096 )]
5858 type : ConversationMessageType
5959 created : datetime
6060 modified : datetime
Original file line number Diff line number Diff line change 1717class ConversationType (StrAutoEnum ):
1818 PROJECT_STATIC = auto () # Static conversation for the project
1919 PROJECT_ANNOTATION = (
20- auto ()
21- ) # Something like sticky note, can be located anywhere in the pipeline UI
20+ auto () # Something like sticky note, can be located anywhere in the pipeline UI
21+ )
2222
2323
2424class ConversationMessageType (StrAutoEnum ):
2525 MESSAGE = auto ()
2626 NOTIFICATION = (
27- auto ()
28- ) # Special type of message used for storing notifications in the conversation
27+ auto () # Special type of message used for storing notifications in the conversation
28+ )
2929
3030
3131#
You can’t perform that action at this time.
0 commit comments