Skip to content

Commit 32098ba

Browse files
committed
Update interaction payload
1 parent 28f7e3c commit 32098ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

text_2_sql/text_2_sql_core/src/text_2_sql_core/payloads/interaction_payloads.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55

66
from typing import Literal
77
from datetime import datetime, timezone
8+
from uuid import uuid4
89

910

1011
class PayloadBase(BaseModel):
1112
prompt_tokens: int | None = None
1213
completion_tokens: int | None = None
14+
message_id: str = Field(..., default_factory=lambda: str(uuid4()))
1315
timestamp: datetime = Field(
1416
default_factory=lambda: datetime.now(timezone.utc),
1517
description="Timestamp in UTC",

0 commit comments

Comments
 (0)