mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-19 20:15:02 +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
@@ -250,6 +250,11 @@ func BuildSystemPrompt(cfg SystemPromptConfig) string {
|
||||
lines = append(lines, hint...)
|
||||
}
|
||||
|
||||
// 9.6. Group chat reply hint — remind bot to check reply content, not just reply context
|
||||
if cfg.PeerKind == "group" {
|
||||
lines = append(lines, buildGroupChatReplyHint()...)
|
||||
}
|
||||
|
||||
// 10. Extra system prompt (wrapped in tags for context isolation)
|
||||
if cfg.ExtraPrompt != "" {
|
||||
header := "## Additional Context"
|
||||
|
||||
Reference in new issue
Block a user