Variable: gptel-request--transitions
gptel-request--transitions is a variable defined in gptel-request.el.
Value
((INIT (t . WAIT)) (WAIT (t . TYPE))
(TYPE (gptel--error-p . ERRS) (gptel--tool-use-p . TOOL) (t . DONE))
(TOOL (t . TRET))
(TRET (gptel--error-p . ERRS) (gptel--tool-result-p . WAIT)
(t . DONE)))
Documentation
Alist specifying gptel's default state transition table for requests.
Each entry is a list whose car is a request state (any symbol)
and whose cdr is an alist listing possible next states. Each key
is either a predicate function or t. When gptel--fsm-next is
called, the predicates are called in the order they appear here
to find the next state. Each predicate is called with the state
machine's INFO, see gptel-fsm. A predicate of t is
considered a success and acts as a default.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
;;; State machine for driving requests
(defvar gptel-request--transitions
`((INIT . ((t . WAIT)))
(WAIT . ((t . TYPE)))
(TYPE . ((,#'gptel--error-p . ERRS)
(,#'gptel--tool-use-p . TOOL)
(t . DONE)))
(TOOL . ((t . TRET)))
(TRET . ((,#'gptel--error-p . ERRS)
(,#'gptel--tool-result-p . WAIT)
(t . DONE))))
"Alist specifying gptel's default state transition table for requests.
Each entry is a list whose car is a request state (any symbol)
and whose cdr is an alist listing possible next states. Each key
is either a predicate function or t. When `gptel--fsm-next' is
called, the predicates are called in the order they appear here
to find the next state. Each predicate is called with the state
machine's INFO, see `gptel-fsm'. A predicate of t is
considered a success and acts as a default.")