Switched to shared pydantic model

This commit is contained in:
florian committed 2026-11-27 10:07:00 +01:00
1 parent 7b9eb6d0fd
commit a814949ced
1 file changed
+10 -5
+10 -5
View File
@@ -1,11 +1,16 @@
from pydantic import BaseModel, Field
from shared_models.pydantic_base import DocumentedModel
class PullResponse(DocumentedModel):
"""Result of one pull.
class PullRequest(BaseModel):
user_id: int = Field(gt=0)
class PullResponse(BaseModel):
Attributes:
messages: Messages drained from the user's queue, in queue order.
count: Number of messages in this response (always equals len(messages)).
has_more: True if this batch was full (count reached the requested maximum), so more
messages MAY be waiting. It is a hint, not a guarantee: the next pull can return
an empty list.
"""
messages: list[dict]
count: int
has_more: bool