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

+3 -3
View File
@@ -144,7 +144,7 @@ class CharacterAgent(Agent):
# TODO: before retrieving the chat context, acquire a lock for it
chat_view = self.app.get_chat_view(message.chat_id)
chat_view = await self.app.get_chat_view(message.chat_id)
current_thread = chat_view.get_thread(message.thread_id)
thread_context = self.app.get_agent_resource(self.id, 'last-thread-context', message.chat_id)
@@ -204,7 +204,7 @@ class CharacterAgent(Agent):
controller_response = await replicate_llama_completion(self.app, llama_messages)
if self.debug:
self.app.send_chat_message(
await self.app.send_chat_message(
chat_id=message.chat_id,
sender=self.id,
content=controller_response,
@@ -216,7 +216,7 @@ class CharacterAgent(Agent):
sections = parse_sections(controller_response)
if 'outwards' in sections:
send_response = self.app.send_chat_message(
send_response = await self.app.send_chat_message(
chat_id=message.chat_id,
sender=self.id,
content=sections['outwards'],