Liking cljdoc? Tell your friends :D

fractal.engine.adapter.sdk

L2 · SdkAdapter (05 §2, §6) — the ONLY impl that crosses the network. Wraps llm.sdk/complete. NO internal deadline (run-step! applies with-deadline around the whole call). Honest-:unknown normalization; maps the SDK Response onto the engine's bare-:cache call record.

L2 · SdkAdapter (05 §2, §6) — the ONLY impl that crosses the network. Wraps
`llm.sdk/complete`. NO internal deadline (run-step! applies with-deadline
around the whole call). Honest-:unknown normalization; maps the SDK Response
onto the engine's bare-:cache call record.
raw docstring

->sdk-requestclj

(->sdk-request request)

The §1 narrowed wire request ({:model :messages [{:role :content}] :cache}) → the SDK's canonical Request. NB: the SDK Message uses NAMESPACED keys (:message/role / :message/content — verified against the 0.2.3 schema).

The §1 narrowed wire request ({:model :messages [{:role :content}] :cache}) →
the SDK's canonical Request. NB: the SDK Message uses NAMESPACED keys
(:message/role / :message/content — verified against the 0.2.3 schema).
sourceraw docstring

sdk-adapterclj

(sdk-adapter provider-id provider-config)

Construct an SdkAdapter for a resolved provider-id + optional credential override (provider-config; nil/empty ⇒ SDK env defaults).

Construct an SdkAdapter for a resolved provider-id + optional credential
override (provider-config; nil/empty ⇒ SDK env defaults).
sourceraw docstring

sdk-response->call-recordclj

(sdk-response->call-record resp request)

Map a Response onto the call record: text from :response/parts, usage/cost normalized (absent ⇒ :unknown), :response/cache → the BARE :cache (GD30).

Map a Response onto the call record: text from :response/parts, usage/cost
normalized (absent ⇒ :unknown), :response/cache → the BARE :cache (GD30).
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