Add PWA service worker (via vite plugin), use dynamic viewport units for interface size (improves mobile experience), replace default vue homepage with basic info
This commit is contained in:
1 parent
2e57bf8c8d
commit
13e7c12e75
9 files changed
+68
-33
No files matched your search
+4
-1
@@ -41,13 +41,16 @@ class Thread:
|
||||
self.memories = []
|
||||
|
||||
class ChatView:
|
||||
def __init__(self, app, chat_id):
|
||||
def __init__(self, app, chat_id, participant_type=None, participant_id=None):
|
||||
self.app = app
|
||||
self.chat_id = chat_id
|
||||
|
||||
self.name = None
|
||||
self.description = None
|
||||
|
||||
self.participant_type = participant_type
|
||||
self.participant_id = participant_id
|
||||
|
||||
# Thread holding messages without a set thread id
|
||||
self.default_thread = Thread(None, chat_id)
|
||||
# Most recent thread objects, earliest to latest
|
||||
|
||||
@@ -62,6 +62,11 @@ class Chat(Base):
|
||||
last_message_preview: Mapped[Optional[str]]
|
||||
last_message_time: Mapped[Optional[int]]
|
||||
|
||||
# Chat Controller defines when to forward messages to agents and users, and what messages each can see
|
||||
# Controllers are: default (all messages to all participants), mention (notify agents by specific mentions), active (llm agent selecting next agent to respond), arena
|
||||
#controller_kind: Mapped[str]
|
||||
#controller_data = mapped_column(JSON, default={})
|
||||
|
||||
# Stores membership of agents in chats. If a record exists linking an agent and a chat,
|
||||
# it means the agent participates in that chat.
|
||||
class Membership(Base):
|
||||
|
||||
Reference in new issue
Block a user