feat: import core schemas from hub-core

This commit is contained in:
2026-06-07 01:20:57 +02:00
parent 093b2b14ae
commit 70b264a37a
5 changed files with 49 additions and 57 deletions

View File

@@ -1,30 +1,7 @@
import uuid
from datetime import datetime
from hub_core.schemas.agent_message import MessageCreate, MessageRead, MessageReply
from pydantic import BaseModel, ConfigDict
class MessageCreate(BaseModel):
from_agent: str
to_agent: str
subject: str
body: str
thread_id: uuid.UUID | None = None
class MessageReply(BaseModel):
from_agent: str
body: str
class MessageRead(BaseModel):
model_config = ConfigDict(from_attributes=True)
id: uuid.UUID
from_agent: str
to_agent: str
subject: str
body: str
thread_id: uuid.UUID | None = None
read_at: datetime | None = None
archived_at: datetime | None = None
created_at: datetime
__all__ = [
"MessageCreate",
"MessageRead",
"MessageReply",
]