mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-15 16:14:43 +00:00
fix(agent): improve team lead delegation messaging + group chat reply hint
- Team lead: no completion language after delegating, no question phrasing - Group chat: inject reply context hint (NO_REPLY when reply addresses others) - Both v1 and v2 team lead sections updated
This commit is contained in:
1 parent
6085e724a2
commit
1e2ca2df7c
4 files changed
+23
-3
No files matched your search
@@ -262,6 +262,18 @@ func buildChannelFormattingHint(channelType string) []string {
|
||||
}
|
||||
}
|
||||
|
||||
// buildGroupChatReplyHint returns guidance for group chats about not responding
|
||||
// to replies that are directed at other people, not the bot.
|
||||
func buildGroupChatReplyHint() []string {
|
||||
return []string{
|
||||
"## Reply Context",
|
||||
"",
|
||||
"A reply to your message does NOT always mean they are talking to you.",
|
||||
"If someone replies to your message but the content addresses or @mentions another person and doesn't ask you anything, use NO_REPLY — it's not your conversation.",
|
||||
"",
|
||||
}
|
||||
}
|
||||
|
||||
// personaFileNames are the context files that define agent identity/behavior.
|
||||
// These are injected early in the system prompt (primacy zone) and reinforced
|
||||
// at the end (recency zone) to prevent persona drift in long conversations.
|
||||
|
||||
Reference in new issue
Block a user