Function: gptel--inspect-steer-tool-calls

gptel--inspect-steer-tool-calls is an interactive and natively compiled function defined in gptel.el.

Signature

(gptel--inspect-steer-tool-calls &optional _)

Documentation

Reject tool-calls from the inspection buffer and continue the chain.

Feed a rejection message to the LLM for each tool call and clean up.

Key Bindings

gptel-tool-call-inspection-map C-c C-r

Source Code

;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel.el
(defun gptel--inspect-steer-tool-calls (&optional _)
  "Reject tool-calls from the inspection buffer and continue the chain.

Feed a rejection message to the LLM for each tool call and clean up."
  (interactive)
  (apply #'gptel--steer-tool-calls
         (append                        ;(tool-calls overlay info)
          (thread-first (gptel-fsm-info gptel--fsm-last)
                        (plist-get :tool-display))
          (list (gptel-fsm-info gptel--fsm-last))))
  (quit-window t))