Pure agent event/effect boundary for clj-agent-tui shells.
Pure agent event/effect boundary for clj-agent-tui shells.
(apply-event state {:keys [type] :as event})Apply an agent/runtime event to UI state.
Returns [state effects]; effects are data descriptions for the outer
runtime, never executed here.
Apply an agent/runtime event to UI state. Returns `[state effects]`; effects are data descriptions for the outer runtime, never executed here.
(at-paths text)Extract simple @path references from text. Escaped/spaced paths are out of scope for this first runtime seam; the returned values exclude the leading @.
Extract simple @path references from text. Escaped/spaced paths are out of scope for this first runtime seam; the returned values exclude the leading @.
(submit-user-input state text)(submit-user-input state
text
{:keys [commands] :or {commands commands/default-commands}})Submit a user draft.
Slash commands are handled locally. Normal user messages are appended to
history and return an :agent/send-message effect for an external runtime.
Submit a user draft. Slash commands are handled locally. Normal user messages are appended to history and return an `:agent/send-message` effect for an external runtime.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |