Function: gptel--transform-add-context
gptel--transform-add-context is a natively compiled function defined
in gptel-request.el.
Signature
(gptel--transform-add-context CALLBACK FSM)
Documentation
Run CALLBACK, adding gptel's context to the request data of FSM.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
(defun gptel--transform-add-context (callback fsm)
"Run CALLBACK, adding gptel's context to the request data of FSM."
(if (and gptel-use-context gptel-context)
(gptel-context--wrap callback (plist-get (gptel-fsm-info fsm) :data))
(funcall callback)))