2024-09-06 11:07:45 -04:00
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
|
|
from graph_service.dto.common import Message
|
|
|
|
|
|
|
|
|
|
|
|
class AddMessagesRequest(BaseModel):
|
|
|
|
group_id: str = Field(..., description='The group id of the messages to add')
|
|
|
|
messages: list[Message] = Field(..., description='The messages to add')
|
2024-09-10 11:00:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
class AddEntityNodeRequest(BaseModel):
|
|
|
|
uuid: str = Field(..., description='The uuid of the node to add')
|
|
|
|
group_id: str = Field(..., description='The group id of the node to add')
|
|
|
|
name: str = Field(..., description='The name of the node to add')
|
|
|
|
summary: str = Field(default='', description='The summary of the node to add')
|