summaryrefslogtreecommitdiff
path: root/tools.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-12-10 13:54:58 +0300
committerGrail Finder <wohilas@gmail.com>2025-12-10 13:54:58 +0300
commitbe3e3d4c60e3e39069245ee74adbcf87621536b8 (patch)
tree117ff2d19de443bbf4a037b58d21112dc2e8f827 /tools.go
parent91bb6aab2b014c2402ddd3f1b1cc084dca1671a7 (diff)
Feat: read_url for /completion
Diffstat (limited to 'tools.go')
-rw-r--r--tools.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools.go b/tools.go
index aaba86d..93f8ded 100644
--- a/tools.go
+++ b/tools.go
@@ -53,6 +53,11 @@ Your current tools:
"when_to_use": "when asked to search the web for information; limit is optional (default 3)"
},
{
+"name":"read_url",
+"args": ["url"],
+"when_to_use": "when asked to get content for spicific webpage or url"
+},
+{
"name":"file_create",
"args": ["path", "content"],
"when_to_use": "when asked to create a new file with optional content"
@@ -176,7 +181,7 @@ func readURL(args map[string]string) []byte {
// make http request return bytes
link, ok := args["url"]
if !ok || link == "" {
- msg := "linknot provided to read_url tool"
+ msg := "link not provided to read_url tool"
logger.Error(msg)
return []byte(msg)
}