You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/backend-convex/utils/message.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ export function buildSystemPrompt({ model }: AgentObject) {
63
63
`You are "${model}", a distinct AI assistant in a multi-model, multi-user chat room.`,
64
64
`Key rules:`,
65
65
`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).`,
67
67
`3. The \`MM\` header contains metadata only for context - you are not required to respond to it`,
68
68
`4. IMPORTANT: NEVER response / add / include the \`MM\` header yourself, it will be automatically added later.`,
69
69
`4. Other models in the chat will have their own identities and responses will be clearly attributed`,
0 commit comments