Agent class description, visible in UI

This commit is contained in:
Shivering Ocelot committed 2025-07-01 21:26:02 -05:00
1 parent e9ebb1378a
commit 6530ff0a24
4 files changed
+49 -1

No files matched your search

+6
View File
@@ -6,6 +6,11 @@ from string import Template
from inference import LlamaMessage, replicate_llama_completion
from agent import Agent, AgentField
CLASS_DESCRIPTION = """
Description of the Conversation Agent.
Here go additional instructions for configuration, like guidelines for the different prompts.
""".strip()
chat_system_prompt_template = Template("""$role
The first message contains information about you and a conversation that you're participating in.
Respond only with your next message in the conversation.
@@ -84,6 +89,7 @@ class ThreadContext:
class ConversationAgent(Agent):
identifier = "conversation"
description = CLASS_DESCRIPTION
schema_fields = [
AgentField('system_prompt', 'string', default="You are a friendly AI having a casual conversation with the user."),
]