Skip to content

Commit

Permalink
feat: add created_at for BaseMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
Undertone0809 committed Jul 19, 2024
1 parent 55098bf commit 7657a22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions promptulate/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class BaseMessage(BaseModel):

content: str
additional_kwargs: dict = Field(default_factory=dict)
created_at: datetime = Field(default_factory=datetime.now)

@property
@abstractmethod
Expand Down

0 comments on commit 7657a22

Please sign in to comment.