summaryrefslogtreecommitdiff
path: root/tools.go
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-08-08 09:43:00 +0300
committerGrail Finder <wohilas@gmail.com>2025-08-08 09:43:00 +0300
commit3c23ff2403124753314cc960635930d9b1134760 (patch)
tree2898181c9619ba40a3be16c9282840736fa22e07 /tools.go
parent9cb4561c828426502b5a28797b932db6c06e22b1 (diff)
Feat: openai type func call for llamacpp
Diffstat (limited to 'tools.go')
-rw-r--r--tools.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools.go b/tools.go
index 01ab32b..3b5fbf6 100644
--- a/tools.go
+++ b/tools.go
@@ -166,4 +166,35 @@ var baseTools = []models.Tool{
},
},
},
+ // recall
+ models.Tool{
+ Type: "function",
+ Function: models.ToolFunc{
+ Name: "recall",
+ Description: "recall topic-data from key-value cache",
+ Parameters: models.ToolFuncParams{
+ Type: "object",
+ Required: []string{"topic"},
+ Properties: map[string]models.ToolArgProps{
+ "topic": models.ToolArgProps{
+ Type: "string",
+ Description: "topic is the key to recall data from",
+ },
+ },
+ },
+ },
+ },
+ // recall_topics
+ models.Tool{
+ Type: "function",
+ Function: models.ToolFunc{
+ Name: "recall_topics",
+ Description: "recall all topics from key-value cache",
+ Parameters: models.ToolFuncParams{
+ Type: "object",
+ Required: []string{},
+ Properties: map[string]models.ToolArgProps{},
+ },
+ },
+ },
}