branch: externals/ellama
commit c1f308ab4e8a136b1aedadbc139b4b139620c0ce
Author: Sergey Kostyaev <[email protected]>
Commit: Sergey Kostyaev <[email protected]>
Remove tools list tool to minimize LLMs distraction
---
ellama-tools.el | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/ellama-tools.el b/ellama-tools.el
index 39d1402ebc..4bd82f9ea0 100644
--- a/ellama-tools.el
+++ b/ellama-tools.el
@@ -567,24 +567,6 @@ Replace OLDCONTENT with NEWCONTENT."
(:name "file" :type file :description "File to search in."))
:description "Grep SEARCH-STRING in FILE."))
-(defun ellama-tools-list-tool ()
- "List all available tools."
- (json-encode (mapcar
- (lambda (tool)
- `(("name" . ,(llm-tool-name tool))
- ("description" . ,(llm-tool-description tool))))
- ellama-tools-available)))
-
-(ellama-tools-define-tool
- '(:function
- ellama-tools-list-tool
- :name
- "list_tools"
- :args
- nil
- :description
- "List all available tools."))
-
(defun ellama-tools-now-tool ()
"Return current date, time and timezone."
(format-time-string "%Y-%m-%d %H:%M:%S %Z"))