diff options
author | Grail Finder <wohilas@gmail.com> | 2024-11-23 18:34:02 +0300 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2024-11-23 18:34:02 +0300 |
commit | 6625a8103bb70833e2399567cbbe7f3b4a8da429 (patch) | |
tree | 9e5c76cc406a6fa6b12405da957363fb78ae2f21 /tools.go | |
parent | 692e0ada4b6115078485a9bc867c99d2c85d8dd9 (diff) |
Diffstat (limited to 'tools.go')
-rw-r--r-- | tools.go | 29 |
1 files changed, 6 insertions, 23 deletions
@@ -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: - // <tools> - // { - // "name":"get_id", - // "args": "username" - // } - // </tools> - // 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"} ) /* |