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.
(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.
(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.
(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.
(rebase-session-context! standing-ctx-atom session-rebase-atom cur)Materialize cur as the standing snapshot when a fold crossed the rebase
threshold. The caller sends this block in the system prefix of the request
that the fold already rewrites. Returns the new snapshot, or nil otherwise.
Materialize `cur` as the standing snapshot when a fold crossed the rebase threshold. The caller sends this block in the system prefix of the request that the fold already rewrites. Returns the new snapshot, or nil otherwise.
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 |