Introduce Character agent, displacing Conversation agent

This commit is contained in:
Shivering Ocelot committed 2025-07-17 10:25:01 -05:00
1 parent c93462ec9c
commit dc9875bcd0
3 files changed
+330 -291

No files matched your search

+4 -3
View File
@@ -15,7 +15,7 @@ import agent as agent_mod
from server import start_server
from chat import ChatView, Message, MESSAGE_PAGE_SIZE
from agents.conversation import ConversationAgent
from agents.character import CharacterAgent
from app_mixins import ChatMixin
class App(ChatMixin):
@@ -37,7 +37,8 @@ class App(ChatMixin):
# `Agent` is the kind 'basic', will be class `BasicAgent` in the future
self.agent_classes = [
agent_mod.BasicAgent,
ConversationAgent,
CharacterAgent,
agent_mod.LlamaAgent,
agent_mod.CoderV1Agent,
agent_mod.ToolUsingAgent,
@@ -88,7 +89,7 @@ class App(ChatMixin):
agent.description = description
agent.picture = picture
agent.kind = kind
agent.data = data
agent.data = data or {}
session.add(agent)
session.commit()