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.
raw docstring

assert-block!clj

(assert-block! block)

assert-message!clj

(assert-message! message)

attachmentclj

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

block-idclj

(block-id)

codeclj

(code text)
(code id text language)

errorclj

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

messageclj

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

noticeclj

(notice code message)
(notice id code message)

proseclj

(prose markdown)
(prose id markdown)

reasoningclj

(reasoning text)
(reasoning id text visibility)

speechclj

(speech text)
(speech id text)

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.
raw docstring

toolclj

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

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