upgraded personality

This commit is contained in:
Saifeddine ALOUI 2024-10-29 23:16:22 +01:00
parent 0b1f2e54d4
commit 8ac4065bb1

View File

@ -303,7 +303,7 @@ class AIPersonality:
callback = self.callback callback = self.callback
if callback: if callback:
callback(message_text, MSG_OPERATION_TYPE.MSG_OPERATION_TYPE_NEW_MESSAGE, parameters={'type':message_type.value,'metadata':metadata}, personality=self) callback(message_text, MSG_OPERATION_TYPE.MSG_OPERATION_TYPE_NEW_MESSAGE, personality=self)
def set_message_content(self, full_text:str, callback: Callable[[str | list | None, MSG_OPERATION_TYPE, str, Any | None], bool]=None): def set_message_content(self, full_text:str, callback: Callable[[str | list | None, MSG_OPERATION_TYPE, str, Any | None], bool]=None):
"""This sends full text to front end """This sends full text to front end