Liking cljdoc? Tell your friends :D

llm.sdk.sse

Small SSE helpers shared by provider adapters.

This namespace intentionally handles only the common line envelope: data: ..., [DONE], and JSON parsing. Provider-specific event semantics stay in each adapter.

Small SSE helpers shared by provider adapters.

This namespace intentionally handles only the common line envelope:
`data: ...`, `[DONE]`, and JSON parsing. Provider-specific event
semantics stay in each adapter.
raw docstring

data-payloadclj

(data-payload line)

Return the payload string from an SSE data line, nil for non-data lines or the OpenAI-style [DONE] terminal sentinel.

Return the payload string from an SSE data line, nil for non-data
lines or the OpenAI-style [DONE] terminal sentinel.
sourceraw docstring

event->seqclj

(event->seq event)

Normalize provider parse-stream-event output to a sequence.

Normalize provider parse-stream-event output to a sequence.
sourceraw docstring

parse-json-dataclj

(parse-json-data line)

Parse a JSON SSE data line into a keywordized map. Returns nil for non-data lines, [DONE], or malformed JSON.

Parse a JSON SSE data line into a keywordized map. Returns nil for
non-data lines, [DONE], or malformed JSON.
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