BotConnector
Sign in Workspace Open App

TypeScript SDK

important

What is it?

A thin TypeScript/Node client for BotConnector Core. Not a second inference engine — all model execution stays in Core's local server.

Source usage (preview)

bash
npm install @botconnector/sdk

The package is source-only for now; do not use npm install @botconnector/sdk because no npm release exists. The SDK calls the local API and does not add an inference engine.

Target design

typescript
import { BotConnectorClient } from "@botconnector/sdk";

const client = new BotConnectorClient();
const model = await client.llm("qwen/model");
const reply = await model.chat("Hello");
console.log(reply.text);

In this section

Use today

typescript
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "http://127.0.0.1:11435/v1", apiKey: "not-needed" });
const resp = await client.chat.completions.create({
  model: "<publisher>/<model>",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(resp.choices[0].message.content);

See OpenAI-compatible API.

Status

Tracked as Beta / Implemented / Preview on the status page. npm publication is not available yet.