Provider request construction and traced completion calls.
This namespace owns the mechanics of turning session messages into provider requests, recording request/response payload refs, and parsing leaf results. It does not own the recursive loop or session/head semantics.
Provider request construction and traced completion calls. This namespace owns the mechanics of turning session messages into provider requests, recording request/response payload refs, and parsing leaf results. It does not own the recursive loop or session/head semantics.
(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 ..}.
(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 |