From 0584ace0f5368111f9898256b7fead019493a6e4 Mon Sep 17 00:00:00 2001 From: Vineet Kumar Date: Tue, 26 May 2026 00:24:35 -0400 Subject: fix typos in tool definitions --- llm-tools.el | 16 ++++++++-------- 1 file 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 @@ :description "\ Read a file (or a range of lines) and return its contents in hashline format. Each line is represented as LINE_NUMBER HASH|CONTENT, where -LINE_NUMBER is nthe 1-based line number, HASH is a 2-character +LINE_NUMBER is the 1-based line number, HASH is a 2-character content-derived bigram, and CONTENT is the verbatim line text. Example output: @@ -304,9 +304,9 @@ EXAMPLES: The command will be executed in the current working directory. Output is returned as a string. Long outputs should be filtered/limited using pipes." - :args '(( :name "command" - :type string - :description "The Bash command to execute. \ + :args '((:name "command" + :type string + :description "The Bash command to execute.\ Can include pipes and standard shell operators. Example: 'ls -la | head -20' or 'grep -i error app.log | tail -50'")) :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 :description "Number of results to return (default 5)" :optional t)) :include t - :confirm nil - :async t) + :async t + :confirm nil) ;; fetch_url (use gptel-agent's one as a base, but adds mime handling like PDFs and images) ; TODO add mime handling for documents and images (gptel-make-tool - :function #'llm-tools--read-url :name "web_fetch" + :function #'llm-tools--read-url :description "Fetch and read the contents of a URL. - Returns the text of the URL (not HTML) formatted for reading. - Request times out after 30 seconds." :args '(( :name "url" - :type "string" + :type string :description "The URL to read")) :async t :confirm nil -- cgit v1.2.3