Tortoise based database models

This commit is contained in:
Shivering Ocelot committed 2026-01-03 12:41:17 -05:00
1 parent 2c7b3d61d1
commit cccdb7d231
12 files changed
+469 -382

No files matched your search

+2 -2
View File
@@ -68,7 +68,7 @@ class ExpertAgent(Agent):
return response
async def received_message(self, message):
chat_view = self.app.get_chat_view(message.chat_id)
chat_view = await self.app.get_chat_view(message.chat_id)
thread = chat_view.get_thread(message.thread_id)
def msg_role(message):
@@ -90,7 +90,7 @@ class ExpertAgent(Agent):
messages=messages
)
self.app.send_chat_message(
await self.app.send_chat_message(
chat_id=message.chat_id,
sender=self.id,
content=response,