Canonical-content builders, normalization and disposable text projection.
com.blockether.vis.contract.content owns the persisted and transported shapes.
This namespace constructs those JSON-ready, snake_case values and converts final
engine answers into them. Conversation is shared text; visual blocks contain screen-only Markdown.
Canonical-content builders, normalization and disposable text projection. `com.blockether.vis.contract.content` owns the persisted and transported shapes. This namespace constructs those JSON-ready, snake_case values and converts final engine answers into them. Conversation is shared text; visual blocks contain screen-only Markdown.
(answer-content answer)Convert the engine's final answer value into canonical blocks.
Accepted answer values are Markdown strings, {:answer string}, wrapped
canonical content vectors, and needs-input maps. Typed content vectors pass
through after validation. A reserved vis-speech fence becomes a speech block.
Convert the engine's final answer value into canonical blocks.
Accepted answer values are Markdown strings, `{:answer string}`, wrapped
canonical content vectors, and needs-input maps. Typed content vectors pass
through after validation. A reserved `vis-speech` fence becomes a speech block.(closed-speech-projections markdown final?)Read closed top-level speech fences. Live commits require a newline after the closing fence. Return text and source spans. Ignore speech fences inside code or quoted examples.
Read closed top-level speech fences. Live commits require a newline after the closing fence. Return text and source spans. Ignore speech fences inside code or quoted examples.
(fork-notice id)The notice that settles a running turn that a fork copied. Clients show it instead of a cancel notice: the person forked the session, nobody cancelled the turn.
The notice that settles a running turn that a fork copied. Clients show it instead of a cancel notice: the person forked the session, nobody cancelled the turn.
Notice code of a turn that still ran in the source session when a fork copied it.
Notice code of a turn that still ran in the source session when a fork copied it.
(fork-notice? block)True when block is the notice of a turn that a fork settled.
True when `block` is the notice of a turn that a fork settled.
(leader-cancel-notice id source)The notice that settles a subagent turn that its leader stopped, or nil when the cancel
source is not the leader. Clients show it instead of a user cancel notice: no person
stopped that session. :agent-cancel is a subagent Task cancel and :parent-cancel is the
stop of the leader turn.
The notice that settles a subagent turn that its leader stopped, or nil when the cancel `source` is not the leader. Clients show it instead of a user cancel notice: no person stopped that session. `:agent-cancel` is a subagent Task cancel and `:parent-cancel` is the stop of the leader turn.
Notice code of a subagent turn that its leader stopped.
Notice code of a subagent turn that its leader stopped.
(leader-cancel-notice? block)True when block is the notice of a turn that the leader stopped.
True when `block` is the notice of a turn that the leader stopped.
(message {:keys [id role status content created-at completed-at model provider
author]
:or {status "streaming" content [] created-at (util/now-ms)}})(presentation-content raw)Validate a final presentation. Require a conversational answer or explicit silence, never progress alone.
Validate a final presentation. Require a conversational answer or explicit silence, never progress alone.
(presentation-prefix raw)Read complete valid records up to the first invalid line or the size limit.
Read complete valid records up to the first invalid line or the size limit.
(presentation-records raw final?)Read complete JSON lines into canonical blocks with source spans. Ignore only an incomplete last line.
Read complete JSON lines into canonical blocks with source spans. Ignore only an incomplete last line.
(recoverable-presentation text)Answer final :content or the committed :prefix and its :blocks for repair.
Answer final `:content` or the committed `:prefix` and its `:blocks` for repair.
(repaired-presentation prefix committed raw)Validate the repair suffix and join it to the committed blocks without reading the prefix again.
Validate the repair suffix and join it to the committed blocks without reading the prefix again.
(text-projection blocks)Disposable plain-text projection for search, clipboard, and error fallback.
Disposable plain-text projection for search, clipboard, and error fallback.
(tool {:keys [id tool status input output error started-at completed-at]
:or {id (block-id)}})(with-cancel-notice blocks turn-id source)The blocks of the cancelled turn turn-id, with the notice of a leader stop when the
cancel source is the leader. The notice id is fixed, so each terminal path writes the
same block.
The `blocks` of the cancelled turn `turn-id`, with the notice of a leader stop when the cancel `source` is the leader. The notice id is fixed, so each terminal path writes the same block.
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 |