Liking cljdoc? Tell your friends :D

llm.sdk.providers.perplexity.chat

Perplexity Agent API transport. Builds /v1/agent requests and normalizes typed output and SSE events while retaining the provider's response, tool-call, search, lifecycle, and billing state.

Perplexity Agent API transport.
Builds /v1/agent requests and normalizes typed output and SSE events while
retaining the provider's response, tool-call, search, lifecycle, and billing
state.
raw docstring

build-request-perplexityclj

(build-request-perplexity profile request)
source

extract-citation-partsclj

(extract-citation-parts raw)

Return Agent API citations. Search-result output is authoritative and carries stable numeric IDs; URL annotations are used when no search-result output is present.

Return Agent API citations. Search-result output is authoritative and
carries stable numeric IDs; URL annotations are used when no search-result
output is present.
sourceraw docstring

make-transportclj

(make-transport)
source

parse-error-perplexityclj

(parse-error-perplexity _profile status body)
source

parse-response-perplexityclj

(parse-response-perplexity _profile raw)
source

parse-stream-event-perplexityclj

(parse-stream-event-perplexity _profile line)
source

perplexity-cost-calculatorclj

(perplexity-cost-calculator {:keys [_provider _model usage pricing]})

Estimate from catalog pricing when an Agent response did not report its authoritative usage.cost. Search-query pricing is added when present.

Estimate from catalog pricing when an Agent response did not report its
authoritative usage.cost. Search-query pricing is added when present.
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