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.
Provider-specific moderation format conversion.
Provider-specific moderation format conversion.
(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-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-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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |