Function: eca-chat-inline--content-received

eca-chat-inline--content-received is a natively compiled function defined in eca-chat-inline.el.

Signature

(eca-chat-inline--content-received SESSION PARAMS)

Documentation

Mirror chat PARAMS from SESSION into inline overlays.

Subscribed to eca-chat-content-received-functions.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-inline.el
(defun eca-chat-inline--content-received (session params)
  "Mirror chat PARAMS from SESSION into inline overlays.
Subscribed to `eca-chat-content-received-functions'."
  (let ((chat-id (plist-get params :chatId)))
    (unless (plist-get params :parentChatId)
      (when-let* ((ov (eca-chat-inline--live-overlay chat-id))
                  ((equal (overlay-get ov 'eca-chat-inline--session-id)
                          (eca--session-id session))))
        (eca-chat-inline--handle-content ov
                                         (plist-get params :role)
                                         (plist-get params :content))))))