From 6625a8103bb70833e2399567cbbe7f3b4a8da429 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 23 Nov 2024 18:34:02 +0300 Subject: Feat: add switch between sys prompts --- tools.go | 29 ++++++----------------------- 1 file changed, 6 insertions(+), 23 deletions(-) (limited to 'tools.go') diff --git a/tools.go b/tools.go index b42cb62..b752790 100644 --- a/tools.go +++ b/tools.go @@ -9,29 +9,9 @@ import ( var ( // TODO: form that message based on existing funcs - // systemMsg = `You're a helpful assistant. - // # Tools - // You can do functions call if needed. - // Your current tools: - // - // { - // "name":"get_id", - // "args": "username" - // } - // - // To make a function call return a json object within __tool_call__ tags; - // Example: - // __tool_call__ - // { - // "name":"get_id", - // "args": "Adam" - // } - // __tool_call__ - // When making function call avoid typing anything else. 'tool' user will respond with the results of the call. - // After that you are free to respond to the user. - // ` - toolCallRE = regexp.MustCompile(`__tool_call__\s*([\s\S]*?)__tool_call__`) - systemMsg = `You're a helpful assistant. + basicSysMsg = `Large Language Model that helps user with any of his requests.` + toolCallRE = regexp.MustCompile(`__tool_call__\s*([\s\S]*?)__tool_call__`) + toolSysMsg = `You're a helpful assistant. # Tools You can do functions call if needed. Your current tools: @@ -65,6 +45,9 @@ __tool_call__ When done right, tool call will be delivered to the 'tool' agent. 'tool' agent will respond with the results of the call. After that you are free to respond to the user. ` + systemMsg = toolSysMsg + sysMap = map[string]string{"basic_sys": basicSysMsg, "tool_sys": toolSysMsg} + sysLabels = []string{"cancel", "basic_sys", "tool_sys"} ) /* -- cgit v1.2.3