summaryrefslogtreecommitdiff
path: root/tools.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2026-01-17 11:42:35 +0300
committerGrail Finder <wohilas@gmail.com>2026-01-17 11:42:35 +0300
commit8b162ef34f0755e2224c43499218def16d4b6845 (patch)
tree06c5a00c1f6680fbcf50dc5519887c5ff6a6f5c5 /tools.go
parent12be6036902ba9fa1b403310422e5f6f3e6c1875 (diff)
Enha: change textview chat history based on current user persona
Diffstat (limited to 'tools.go')
-rw-r--r--tools.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools.go b/tools.go
index fddbffe..2eafaf5 100644
--- a/tools.go
+++ b/tools.go
@@ -24,7 +24,7 @@ var (
starRE = regexp.MustCompile(`(\*.*?\*)`)
thinkRE = regexp.MustCompile(`(<think>\s*([\s\S]*?)</think>)`)
codeBlockRE = regexp.MustCompile(`(?s)\x60{3}(?:.*?)\n(.*?)\n\s*\x60{3}\s*`)
- singleBacktickRE = regexp.MustCompile(`\x60([^\x60]*)\x60`)
+ singleBacktickRE = regexp.MustCompile(`\x60([^\x60]*)\x60`)
roleRE = regexp.MustCompile(`^(\w+):`)
rpDefenitionSysMsg = `
For this roleplay immersion is at most importance.
@@ -945,7 +945,7 @@ func summarizeChat(args map[string]string) []byte {
return []byte("No chat history to summarize.")
}
// Format chat history for the agent
- chatText := chatToText(true) // include system and tool messages
+ chatText := chatToText(chatBody.Messages, true) // include system and tool messages
return []byte(chatText)
}