Function: gptel--update-tool-ask
gptel--update-tool-ask is a natively compiled function defined in
gptel.el.
Signature
(gptel--update-tool-ask FSM)
Documentation
Update gptel's status in FSM when there are pending tool-calls.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel.el
(defun gptel--update-tool-ask (fsm)
"Update gptel's status in FSM when there are pending tool-calls."
(when (plist-get (gptel-fsm-info fsm) :tool-pending)
(plist-put (gptel-fsm-info fsm) :tool-pending nil)
(let* ((info (gptel-fsm-info fsm))
(buf (plist-get info :buffer)))
(with-current-buffer buf
(when gptel-mode
(gptel--update-status " Run tools?" 'mode-line-emphasis))))))