Skip to main content

Installation

Basic usage

Safe Regeneration

Compliance check

Provider wrappers

Provider wrappers take an already-constructed RailScoreClient and an already-constructed provider SDK client — the wrapper doesn’t manage API keys or client setup for you:
See Providers and Reference for RAILAnthropic, RAILGemini, and the full wrapper/error/utility reference.

Naming conventions

Request parameters are camelCase throughout the SDK. Response bodies from the three core calls above (eval, complianceCheck, safeRegenerate) are the raw API JSON, so their fields stay snake_case — the SDK doesn’t re-key them. Provider-wrapper responses (RAILOpenAI.chat() and friends) are the exception: those are SDK-constructed objects, and their top-level fields (railScore, wasRegenerated, originalContent) are camelCase.