Liking cljdoc? Tell your friends :D

llm.sdk.transport.moderate

Sibling protocol to llm.sdk.transport/Transport, scoped to moderation endpoints.

Moderation doesn't stream, doesn't take tools, and returns boolean flags + per-category scores. We keep the protocol narrow on purpose, matching the embed-transport pattern.

Sibling protocol to llm.sdk.transport/Transport, scoped to
moderation endpoints.

Moderation doesn't stream, doesn't take tools, and returns boolean
flags + per-category scores. We keep the protocol narrow on
purpose, matching the embed-transport pattern.
raw docstring

ModerationTransportcljprotocol

Provider-specific moderation format conversion.

Provider-specific moderation format conversion.

build-moderation-requestclj

(build-moderation-request this profile request)

Given a profile and canonical ModerationRequest, return the native HTTP request map (:method :url :headers :body).

Given a profile and canonical ModerationRequest, return the
native HTTP request map (:method :url :headers :body).

parse-moderation-errorclj

(parse-moderation-error this profile status body)

Given a non-2xx HTTP status and body, return a classified error map.

Given a non-2xx HTTP status and body, return a classified
error map.

parse-moderation-responseclj

(parse-moderation-response this profile raw-body)

Given a profile and parsed JSON body, return a canonical ModerationResponse.

Given a profile and parsed JSON body, return a canonical
ModerationResponse.
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