Capture path · sdk
SDK govern()
Wrap any LLM call in your application code with `bl.govern({...})`. Policy decisions, cost capture, signed receipts — all from a single call.
`npm install blacklake`, instantiate `new BlackLake({ apiKey, baseUrl })`, and replace your
LLM calls with `bl.govern({ agent, tool, action, estimate })`. The SDK returns a decision token
that proves the call was governed — verify anonymously via `bl.decisions.verify(token)`.
Cost capture: pass `bl.cost.record({ evaluation_id, provider, model, ... })` after each LLM call so the
governed evaluation gets a cryptographically-bound cost summary in its receipt.