Liking cljdoc? Tell your friends :D

com.blockether.svar.internal.anthropic-threads

Best-effort Anthropic continuation. Canonical history stays with the session.

Best-effort Anthropic continuation. Canonical history stays with the session.
raw docstring

accept!clj

(accept! state)

Commit the cursor only after the complete logical response passes validation.

Commit the cursor only after the complete logical response passes validation.
sourceraw docstring

complete!clj

(complete! state body headers send! {:keys [delta-count reset?]})

Send a thread request. Replay protocol misses once; keep normal retries outside.

Send a thread request. Replay protocol misses once; keep normal retries outside.
sourceraw docstring

discard!clj

(discard! state)

Discard a consumed cursor and any response that the caller did not accept.

Discard a consumed cursor and any response that the caller did not accept.
sourceraw docstring

request-planclj

(request-plan state body headers delta-count reset? now)

Plan a create or a delta request. Free request fields do not reset a thread.

Plan a create or a delta request. Free request fields do not reset a thread.
sourceraw docstring

statusclj

(status state closed?)
source

validate-turn!clj

(validate-turn! state delta-count message-count)

Reject empty completed turns and new input while the server turn is paused.

Reject empty completed turns and new input while the server turn is paused.
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