Liking cljdoc? Tell your friends :D

llm.sdk.providers.gemini.native

Gemini Native API transport adapter. Handles thought signatures, streaming deltas, safety metadata. Preserves provider-specific replay state.

Gemini Native API transport adapter.
Handles thought signatures, streaming deltas, safety metadata.
Preserves provider-specific replay state.
raw docstring

build-request-geminiclj

(build-request-gemini profile request)
source

make-transportclj

(make-transport)
source

parse-error-geminiclj

(parse-error-gemini _profile status body)
source

parse-response-geminiclj

(parse-response-gemini profile raw)
source

parse-stream-event-geminiclj

(parse-stream-event-gemini _profile line)

Parse one SSE line into a vector of canonical stream events.

Gemini's streaming chunks frequently bundle a content part and usageMetadata and a finishReason in the same chunk (especially the terminal one). Returning a vector — which sdk/complete flattens via (sequential? ev) — keeps every event from a single chunk addressable, instead of losing usage and finish to a cond that only picks the first match.

Parse one SSE line into a vector of canonical stream events.

Gemini's streaming chunks frequently bundle a content part *and*
usageMetadata *and* a finishReason in the same chunk (especially
the terminal one). Returning a vector — which sdk/complete flattens
via `(sequential? ev)` — keeps every event from a single chunk
addressable, instead of losing usage and finish to a `cond` that
only picks the first match.
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