Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.content

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; Markdown exists only as the payload of a prose block.

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; Markdown exists only as the payload of a prose block.
raw docstring

answer-contentclj

(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.
sourceraw docstring

assert-block!clj

(assert-block! block)
source

assert-message!clj

(assert-message! message)
source

attachmentclj

(attachment {:keys [id attachment-id name media-type] :or {id (block-id)}})
source

block-idclj

(block-id)
source

codeclj

(code text)
(code id text language)
source

errorclj

(error code message)
(error code message retryable?)
(error id code message retryable?)
source

messageclj

(message {:keys [id role status content created-at completed-at model provider
                 author]
          :or {status "streaming" content [] created-at (util/now-ms)}})
source

noticeclj

(notice code message)
(notice id code message)
source

proseclj

(prose markdown)
(prose id markdown)
source

reasoningclj

(reasoning text)
(reasoning id text visibility)
source

speechclj

(speech text)
(speech id text)
source

text-projectionclj

(text-projection blocks)

Disposable plain-text projection for search, clipboard, and error fallback.

Disposable plain-text projection for search, clipboard, and error fallback.
sourceraw docstring

toolclj

(tool {:keys [id tool status input output error started-at completed-at]
       :or {id (block-id)}})
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close