From 6a8e854ef6dd9a3f00027cf46f6b673c6cf13ab0 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Tue, 21 Oct 2025 10:35:37 +0300 Subject: Feat: parse role from raw msg --- tools.go | 1 + 1 file changed, 1 insertion(+) (limited to 'tools.go') diff --git a/tools.go b/tools.go index 0528af9..4c6cd03 100644 --- a/tools.go +++ b/tools.go @@ -19,6 +19,7 @@ var ( starRE = regexp.MustCompile(`(\*.*?\*)`) thinkRE = regexp.MustCompile(`(\s*([\s\S]*?))`) codeBlockRE = regexp.MustCompile(`(?s)\x60{3}(?:.*?)\n(.*?)\n\s*\x60{3}\s*`) + roleRE = regexp.MustCompile(`^(\w+):`) rpDefenitionSysMsg = ` For this roleplay immersion is at most importance. Every character thinks and acts based on their personality and setting of the roleplay. -- cgit v1.2.3