Function: gptel-tool-category
gptel-tool-category is a natively compiled function defined in
gptel-request.el.
Signature
(gptel-tool-category gptel-tool-category X)
Documentation
Access slot "category" of gptel-tool struct X.
Use to group tools by purpose
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
(cl-defstruct (gptel-tool (:constructor nil)
(:constructor gptel--make-tool-internal
(&key function name description args
async category confirm include
&allow-other-keys))
(:copier gptel--copy-tool))
"Struct to specify tools for LLMs to run.
A tool is a function specification sent to the LLM along with
a (plain language) task. If the LLM decides to use the tool to
accomplish the task, gptel will run the tool and (optionally)
feed the LLM the results. You can add tools via
`gptel-make-tool', which see."
(function nil :type function :documentation "Function that runs the tool")
(name nil :type string :documentation "Tool name, snake_case recommended")
(description nil :type string :documentation "What the tool does, intended for the LLM")
(args nil :type list :documentation "List of plists specifying function arguments")
(async nil :type boolean :documentation "Whether the function runs asynchronously")
(category nil :type string :documentation "Use to group tools by purpose")
(confirm nil :type boolean :documentation "Seek confirmation before running tool?")
(include t :type (choice (const :tag "Include call and result" t)
(const :tag "Include call only, no result" call)
(const :tag "Exclude" nil))
:documentation "Include tool call in buffer?"))