Liking cljdoc? Tell your friends :D

com.blockether.vis.internal.loop.compaction

Context compaction verbs and the durable context snapshot.

Implements the verbs that fold settled work, checkpoint and rebase a session's context, and the folded-context view they produce, so a session keeps working once its transcript outgrows the context window.

Context compaction verbs and the durable context snapshot.

Implements the verbs that fold settled work, checkpoint and rebase a session's
context, and the folded-context view they produce, so a session keeps working
once its transcript outgrows the context window.
raw docstring

checkpoint-fold!clj

(checkpoint-fold! environment ctx)

A fold is acknowledged only after its current turn version has saved the checkpoint.

A fold is acknowledged only after its current turn version has saved the checkpoint.
sourceraw docstring

compaction-verbsclj

(compaction-verbs ctx-atom & [session-rebase-atom checkpoint!])

Build the compaction verbs that the sandbox binds. fold_session records an Activity row, so its step does not fall back to raw execution.

Build the compaction verbs that the sandbox binds. `fold_session` records an
Activity row, so its step does not fall back to raw execution.
sourceraw docstring

durable-context-snapshotclj

(durable-context-snapshot environment ctx)

Normalize both in-turn checkpoints and terminal context snapshots for resume.

Normalize both in-turn checkpoints and terminal context snapshots for resume.
sourceraw docstring

rebase-session-context!clj

(rebase-session-context! standing-ctx-atom session-rebase-atom cur)

Materialize cur as both the same-turn full delta and next-turn standing snapshot when a fold crossed the rebase threshold. Returns nil otherwise.

Materialize `cur` as both the same-turn full delta and next-turn standing
snapshot when a fold crossed the rebase threshold. Returns nil otherwise.
sourceraw docstring

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