Skip to main content

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:

  1. Construct one Trinitite root.
  2. Optionally set an explicit baseline with govern.
  3. Get a provider client with client.
  4. Call chat.completions.create.
  5. 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.