@senda/sdk
Official TypeScript SDK for the Senda AI Agent Platform. Zero dependencies, works in Node.js 18+, Deno, Bun, and browsers.
Installation
npm install @senda/sdk
Quick Start
import { Senda } from '@senda/sdk';
const senda = new Senda({
apiKey: 'sk_live_YOUR_KEY',
baseUrl: 'https://senda.telar.ai/api'
});
// List agents
const agents = await senda.agents.list();
console.log(agents);
// Chat (get full response)
const response = await senda.chat.send('What are your business hours?');
console.log(response);
API
| Client | Methods |
|---|---|
senda.chat | .stream(message), .send(message), .history(chatId) |
senda.agents | .list(), .getById(agentId) |
senda.knowledge | .list(agentId?), .ingest(agentId, filename, content) |
senda.actions | .list(), .execute(actionId, params) |
senda.usage | .getUsage(period?) |
senda.keys | .list(), .create(name, opts?), .revoke(keyId) |
senda.mcp | .info() |