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.
(->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).(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).
(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).
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 |