@blazingagents/sdk
v0.15.0
Published
TypeScript SDK for the Blazing Agents API
Readme
The official resource-style client SDK for the Blazing Agents /v1 API. It
requires Node.js 24 or newer.
Features
- Typed clients for Agents, Workspaces, Skills, Providers, Prompts, Tasks, Sessions, Artifacts, Slack and Telegram Chat Connections, usage, Tenant settings, and merchant monetization.
- Stateful chat and stateless text or structured-object generation.
- Public Zod contracts for validating API requests and responses.
- Cursor pagination and binary transfers.
- Request correlation and a typed, forward-compatible error model.
- End-user scoped clients for user-owned resources and generation.
Installation
npm install @blazingagents/sdk ai@^7.0.84 zod@^4.5.4ai (^7.0.84) and zod (^4.5.4) are peer dependencies. The SDK
re-exports AI SDK message types and Zod schemas, so consumers share these
dependencies with the SDK.
Quick start
Create a Tenant API key in the Blazing Agents dashboard, then pass it to the client or read it from your server environment.
import { BlazingAgents } from "@blazingagents/sdk";
const client = new BlazingAgents({ apiKey: "ba_..." });
const result = await client.completion({
agentId: "ag_...",
prompt: "Write a friendly welcome message.",
});
console.log(await result.text);Keep API keys on the server. For browser chat applications, relay chat()
through your backend and use BlazingAgentsChatTransport with AI SDK
useChat.
Documentation
Read the TypeScript SDK documentation for authentication, resource guides, generation and streaming, React integration, error handling, and the complete API reference.
Development
npm ci
npm run check
npm run test:consumer