Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahwooders committed Dec 11, 2024
1 parent 2bce03f commit 277db12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion letta/schemas/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ class MessageCreate(BaseModel):
"""Request to create a message"""

# In the simplified format, only allow simple roles
role: MessageRole = Field(..., description="The role of the participant.")
role: Literal[
MessageRole.user,
MessageRole.system,
] = Field(..., description="The role of the participant.")
text: str = Field(..., description="The text of the message.")
name: Optional[str] = Field(None, description="The name of the participant.")

Expand Down

0 comments on commit 277db12

Please sign in to comment.