Skip to content

Official SDKs

Bipkit maintains four official, strongly typed public SDKs targeting https://api.bipkit.io. Every SDK shares the same production reliability guarantees: automatic BIPKIT_API_KEY environment detection, exponential backoff with jitter on 429 / 5xx, Retry-After handling, typed errors, and built-in Decision-Safety escalation helpers.

Language Package / Module Install Command Min Runtime Registry & Repository
TypeScript / JS @bipware-org/bipkit npm install @bipware-org/bipkit Node 18+, Bun, Deno, Edge npm · GitHub
Go github.com/bipware-org/bipkit-go go get github.com/bipware-org/bipkit-go@v0.1.0 Go 1.22+ pkg.go.dev · GitHub
Rust bipkit cargo add bipkit Rust 1.75+ (2021) crates.io · GitHub
Python bipkit (+ bipkit[langchain], bipkit[dpl]) pip install bipkit Python 3.10+ GitHub (PyPI pending)

Set your API key in your environment (export BIPKIT_API_KEY="bpk_live_...") and run a single-question decision with automatic escalation gating:

Terminal window
npm install @bipware-org/bipkit
import { Bipkit, shouldEscalate } from "@bipware-org/bipkit";
// Reads process.env.BIPKIT_API_KEY by default
const bipkit = new Bipkit();
const decision = await bipkit.decide({
state: "Customer wants to cancel their enterprise plan and requests a refund.",
choices: [
{ id: "billing_retention", label: "Billing & Retention" },
{ id: "technical_support", label: "Technical Support" },
{ id: "sales_inquiry", label: "Sales Inquiry" },
],
engine: "bip-cascade",
});
console.log("Top choice:", decision.top_choice);
if (shouldEscalate(decision)) {
console.log("Low confidence — escalate to System Two LLM");
}

All four SDKs are designed for low-latency production pipelines and share consistent operational defaults:

Capability TypeScript Python Go Rust
Runtime Dependencies Zero (native fetch) httpx, pydantic Zero (net/http) reqwest (rustls-tls), tokio
Auto Env Detection BIPKIT_API_KEY, BIPKIT_BASE_URL BIPKIT_API_KEY, BIPKIT_BASE_URL BIPKIT_API_KEY, BIPKIT_BASE_URL BIPKIT_API_KEY, BIPKIT_BASE_URL
Retries & Backoff Exponential + jitter (429 / 5xx) Exponential + jitter (429 / 5xx) Exponential + jitter (429 / 5xx) Exponential + jitter (429 / 5xx)
Retry-After Header Honored automatically Honored automatically Honored automatically Honored automatically
Typed Errors RateLimitError, AuthenticationError, … RateLimitError, AuthenticationError, … *bipkit.APIError + IsRateLimitError(err) BipkitError::RateLimit, Authentication, …
Decision-Safety Helper shouldEscalate() should_escalate() ShouldEscalateDecision() should_escalate_decision()
Full API Surface Evaluate, Decide, Feedback, Engines, Keys, Usage, DPL Evaluate, Decide, Feedback, Engines, Keys, Usage, DPL + Async Evaluate, Decide, Feedback, Engines, Keys, Usage, DPL Evaluate, Decide, Feedback, Engines, Keys, Usage, DPL
Agent / DPL Extras Edge / Workers ready bipkit[langchain], bipkit[dpl] Context-first concurrency dpl-verify Cargo feature