🔀 chore(schemas.py): add support for dict type in message field of ChatMessage schema
The message field of the ChatMessage schema now supports a dictionary type in addition to the previous string and None types. This change was made to allow for more complex messages to be sent and received in the chat.
This commit is contained in:
parent
a4101dac53
commit
5a9c1ae1b7
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class ChatMessage(BaseModel):
|
|||
"""Chat message schema."""
|
||||
|
||||
is_bot: bool = False
|
||||
message: Union[str, None] = None
|
||||
message: Union[str, None, dict] = None
|
||||
type: str = "human"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue