(assemble-batch-results results)Fold per-item fan-out results into one vector aligned to input order. A success
contributes its value; a failure contributes a :fractal/failed sentinel in its
slot. Partial failure never throws -- the successes return for sure, and the
failures stay legible so the model can record missingness instead of silently
undercounting. :fractal/ namespaces the sentinel so it cannot collide with a
leaf's or child's own domain value.
Fold per-item fan-out results into one vector aligned to input order. A success contributes its value; a failure contributes a `:fractal/failed` sentinel in its slot. Partial failure never throws -- the successes return for sure, and the failures stay legible so the model can record missingness instead of silently undercounting. `:fractal/` namespaces the sentinel so it cannot collide with a leaf's or child's own domain value.
(call-provider! state cfg role call)A provider completion as a traced call. Returns {:call-id .. :response ..}.
A provider completion as a traced call. Returns {:call-id .. :response ..}.
(child-final-value result cid child-rel errs)Validate a sub-session result and return its FINAL value, or throw a typed error.
errs supplies the error types for the spawning kind: {:failed .. :no-final ..}
(child vs attach). A child's returned value is a claim until it carries a FINAL.
Validate a sub-session result and return its FINAL value, or throw a typed error.
`errs` supplies the error types for the spawning kind: {:failed .. :no-final ..}
(child vs attach). A child's returned value is a claim until it carries a FINAL.(maybe-add-child-finalization-warning! state cfg turn-id step-n)(restore-state-from-snapshot! state
source-dir
ns-sym
snapshot-row
snapshot-blob
lineage-kind
lineage-parents
source-fingerprint)(run-process! cfg
{:keys [dir id kind parent task messages resume-state ns-sym
cache-id]
:as opts})(strip-edn-fence text)Drop an enclosing ```edn|clojure|clj fence if the model wrapped its EDN output despite the leaf prompt's instruction not to. Unfenced text is returned untouched, so genuinely malformed output still fails to read (and surfaces to the model as a batch failure) — this only forgives the common, harmless fence wrapper.
Drop an enclosing ```edn|clojure|clj fence if the model wrapped its EDN output despite the leaf prompt's instruction not to. Unfenced text is returned untouched, so genuinely malformed output still fails to read (and surfaces to the model as a batch failure) — this only forgives the common, harmless fence wrapper.
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 |