summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--llm-tools.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/llm-tools.el b/llm-tools.el
index 051dcae..79aff59 100644
--- a/llm-tools.el
+++ b/llm-tools.el
@@ -9,7 +9,7 @@
9 :description "\ 9 :description "\
10Read a file (or a range of lines) and return its contents in hashline 10Read a file (or a range of lines) and return its contents in hashline
11format. Each line is represented as LINE_NUMBER HASH|CONTENT, where 11format. Each line is represented as LINE_NUMBER HASH|CONTENT, where
12LINE_NUMBER is nthe 1-based line number, HASH is a 2-character 12LINE_NUMBER is the 1-based line number, HASH is a 2-character
13content-derived bigram, and CONTENT is the verbatim line text. Example 13content-derived bigram, and CONTENT is the verbatim line text. Example
14output: 14output:
15 15
@@ -304,9 +304,9 @@ EXAMPLES:
304 304
305The command will be executed in the current working directory. Output is 305The command will be executed in the current working directory. Output is
306returned as a string. Long outputs should be filtered/limited using pipes." 306returned as a string. Long outputs should be filtered/limited using pipes."
307 :args '(( :name "command" 307 :args '((:name "command"
308 :type string 308 :type string
309 :description "The Bash command to execute. \ 309 :description "The Bash command to execute.\
310Can include pipes and standard shell operators. 310Can include pipes and standard shell operators.
311Example: 'ls -la | head -20' or 'grep -i error app.log | tail -50'")) 311Example: 'ls -la | head -20' or 'grep -i error app.log | tail -50'"))
312 :confirm #'llm-tools--bash-confirm-p 312 :confirm #'llm-tools--bash-confirm-p
@@ -405,20 +405,20 @@ If required, consider using the url as the input to the `Read` tool to get the c
405 :description "Number of results to return (default 5)" 405 :description "Number of results to return (default 5)"
406 :optional t)) 406 :optional t))
407 :include t 407 :include t
408 :confirm nil 408 :async t
409 :async t) 409 :confirm nil)
410 410
411;; fetch_url (use gptel-agent's one as a base, but adds mime handling like PDFs and images) 411;; fetch_url (use gptel-agent's one as a base, but adds mime handling like PDFs and images)
412; TODO add mime handling for documents and images 412; TODO add mime handling for documents and images
413(gptel-make-tool 413(gptel-make-tool
414 :function #'llm-tools--read-url
415 :name "web_fetch" 414 :name "web_fetch"
415 :function #'llm-tools--read-url
416 :description "Fetch and read the contents of a URL. 416 :description "Fetch and read the contents of a URL.
417 417
418- Returns the text of the URL (not HTML) formatted for reading. 418- Returns the text of the URL (not HTML) formatted for reading.
419- Request times out after 30 seconds." 419- Request times out after 30 seconds."
420 :args '(( :name "url" 420 :args '(( :name "url"
421 :type "string" 421 :type string
422 :description "The URL to read")) 422 :description "The URL to read"))
423 :async t 423 :async t
424 :confirm nil 424 :confirm nil