diff options
| -rw-r--r-- | llm-tools.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llm-tools.el b/llm-tools.el index 905a072..0b2474c 100644 --- a/llm-tools.el +++ b/llm-tools.el | |||
| @@ -5,7 +5,9 @@ | |||
| 5 | ;; read_file (hl-file-read) | 5 | ;; read_file (hl-file-read) |
| 6 | (gptel-make-tool | 6 | (gptel-make-tool |
| 7 | :name "read_file" | 7 | :name "read_file" |
| 8 | :function #'llm-tools--hl-file-read | 8 | :function (lambda (file beg end only-anchors? as-list?) |
| 9 | (json-encode-string (llm-tools--hl-file-read | ||
| 10 | file beg end only-anchors? as-list?))) | ||
| 9 | :description "\ | 11 | :description "\ |
| 10 | Read a file (or a range of lines) and return its contents in hashline | 12 | Read a file (or a range of lines) and return its contents in hashline |
| 11 | format. Each line is represented as LINE_NUMBER HASH|CONTENT, where | 13 | format. Each line is represented as LINE_NUMBER HASH|CONTENT, where |
