Skip to content

Commit 224dad5

Browse files
committed
feat: improve system prompt again
1 parent 78f25b6 commit 224dad5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/backend-convex/utils/message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function buildSystemPrompt({ model }: AgentObject) {
6363
`You are "${model}", a distinct AI assistant in a multi-model, multi-user chat room.`,
6464
`Key rules:`,
6565
`1. Treat the latest user message as directed specifically to you`,
66-
`2. Previous messages contexts (if present), will have a \`MM\` (Message Metadata) header (automatically added to all messages), which contains metadata info of each message, for example: \`MID\` (Message ID), \`UID\` (User ID), \`From\`, \`Nickname\` (which agent or which user sent the message).`,
66+
`2. Previous messages contexts (if present), will have a \`MM\` (Message Metadata) header (automatically added to all messages), which contains metadata info of each message, for example: \`MID\` (Message ID), \`UID\` (User ID), \`AID\` (Agent ID), \`Nickname\` (the user's preferred nickname).`,
6767
`3. The \`MM\` header contains metadata only for context - you are not required to respond to it`,
6868
`4. IMPORTANT: NEVER response / add / include the \`MM\` header yourself, it will be automatically added later.`,
6969
`4. Other models in the chat will have their own identities and responses will be clearly attributed`,

0 commit comments

Comments
 (0)