summaryrefslogtreecommitdiff
path: root/tools.go
diff options
context:
space:
mode:
Diffstat (limited to 'tools.go')
-rw-r--r--tools.go55
1 files changed, 1 insertions, 54 deletions
diff --git a/tools.go b/tools.go
index 3e5d402..e66533a 100644
--- a/tools.go
+++ b/tools.go
@@ -207,7 +207,7 @@ var (
modelHasVision bool
)
-func init() {
+func initTools() {
sysMap[basicCard.ID] = basicCard
roleToID["assistant"] = basicCard.ID
sa, err := searcher.NewWebSurfer(searcher.SearcherTypeScraper, "")
@@ -2273,56 +2273,3 @@ var baseTools = []models.Tool{
},
},
}
-
-func init() {
- if windowToolsAvailable {
- baseTools = append(baseTools,
- models.Tool{
- Type: "function",
- Function: models.ToolFunc{
- Name: "list_windows",
- Description: "List all visible windows with their IDs and names. Returns a map of window ID to window name.",
- Parameters: models.ToolFuncParams{
- Type: "object",
- Required: []string{},
- Properties: map[string]models.ToolArgProps{},
- },
- },
- },
- models.Tool{
- Type: "function",
- Function: models.ToolFunc{
- Name: "capture_window",
- Description: "Capture a screenshot of a specific window and save it to /tmp. Requires window parameter (window ID or name substring).",
- Parameters: models.ToolFuncParams{
- Type: "object",
- Required: []string{"window"},
- Properties: map[string]models.ToolArgProps{
- "window": models.ToolArgProps{
- Type: "string",
- Description: "window ID or window name (partial match)",
- },
- },
- },
- },
- },
- models.Tool{
- Type: "function",
- Function: models.ToolFunc{
- Name: "capture_window_and_view",
- Description: "Capture a screenshot of a specific window, save it to /tmp, and return the image for viewing. Requires window parameter (window ID or name substring).",
- Parameters: models.ToolFuncParams{
- Type: "object",
- Required: []string{"window"},
- Properties: map[string]models.ToolArgProps{
- "window": models.ToolArgProps{
- Type: "string",
- Description: "window ID or window name (partial match)",
- },
- },
- },
- },
- },
- )
- }
-}