- Source: github.com/krun-ai/krun-typescript
- npm package: coming soon
Preview
The SDK is implemented. This preview shows the planned interface so you can see what integration will look like. Details can still change before the first release.Preview
- ESM, Node.js 20 or later, no runtime dependencies (uses the built-in
fetch). - Types inferred from your request:
result.answers.departmentautocompletes, andanswer.choiceis typed as"shipping" | "returns" | "billing" | null. - camelCase fields (
requestId,abstentionStatus,inputTokens,taskType). Your question ids and option ids are never renamed. decide(),feedback()andmodels(), with the same 70-second default timeout and retry policy as the Python SDK.
Like the Python SDK, the TypeScript SDK is for server-side code. Never use a Krun API key in browser code. See Authentication.