🔀 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:
Gabriel Luiz Freitas Almeida 2023-06-27 21:32:09 -03:00
commit 5a9c1ae1b7

View file

@ -43,7 +43,7 @@ class ChatMessage(BaseModel):
"""Chat message schema.""" """Chat message schema."""
is_bot: bool = False is_bot: bool = False
message: Union[str, None] = None message: Union[str, None, dict] = None
type: str = "human" type: str = "human"