Function: gptel--dispatch-tool-calls
gptel--dispatch-tool-calls is an interactive and natively compiled
function defined in gptel.el.
Signature
(gptel--dispatch-tool-calls CHOICE)
Documentation
Dispatch on tool-calls with CHOICE.
Key Bindings
gptel-tool-call-actions-map <mouse-1>
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel.el
(defun gptel--dispatch-tool-calls (choice)
"Dispatch on tool-calls with CHOICE."
(interactive
(list
(let ((choices '((?y "yes") (?n "do nothing")
(?k "cancel request") (?r "reject (continue)")
(?i "inspect call(s)"))))
(read-multiple-choice "Run tool calls? " choices))))
(pcase (car choice)
(?y (call-interactively #'gptel--accept-tool-calls))
(?k (call-interactively #'gptel--reject-tool-calls))
(?r (call-interactively #'gptel--steer-tool-calls))
(?i (call-interactively #'gptel--inspect-tool-calls))))