SDK reference
Use the Trinitite SDK to send a model call through governance and read one normalized result. Choose the language your service already uses.
Status: Beta Companion docs: Language compatibility · Get started Source of truth: Chat and Proxy API · Proxy API · Errors and rate limits. These pages describe the typed SDK projection of those HTTP surfaces.
Pick a language
- Python uses
pip install trinitite, snake_case names, and synchronous calls. - TypeScript uses
npm install @trinitite/sdk, camelCase options and methods, and promises for network calls. - Language compatibility maps the two public surfaces and calls out the names that intentionally stay in snake_case.
Both packages are version 0.0.3. The scoped TypeScript package re-exports the published trinitite npm package.
Common call shape
In either language:
- Construct one
Trinititeroot. - Optionally set an explicit baseline with
govern. - Get a provider client with
client. - Call
chat.completions.create. - Normalize the response with
result.
The result exposes the verdict, any correction diff, violations, compliance rows, risk data, routing data, cost data, and receipt.
Where to go next
Start with Get started, then use Language compatibility when porting an integration between Python and TypeScript.