honcho/sdks/typescript
doria 26da24c8bf
feat: add tool_choice to dialectic level settings, fix: `extra-high` label to `max` (#326)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 16:54:17 -05:00
..
__tests__ Missing Commits from previous merge (#321) 2026-01-13 12:14:57 -05:00
examples feat: API renaming and cleanup 2026-01-12 16:50:40 -05:00
src feat: add tool_choice to dialectic level settings, fix: `extra-high` label to `max` (#326) 2026-01-13 16:54:17 -05:00
.gitignore Add Pre-commit Hooks (#165) 2025-07-22 15:17:53 -04:00
CHANGELOG.md chore: Changelog updates 2025-12-05 12:22:44 -05:00
README.md Add Pre-commit Hooks (#165) 2025-07-22 15:17:53 -04:00
biome.json feat: add filter params everywhere (#164) 2025-07-21 13:40:30 -04:00
bun.lock feat: add tool_choice to dialectic level settings, fix: `extra-high` label to `max` (#326) 2026-01-13 16:54:17 -05:00
jest.config.js Add Pre-commit Hooks (#165) 2025-07-22 15:17:53 -04:00
package.json feat: add tool_choice to dialectic level settings, fix: `extra-high` label to `max` (#326) 2026-01-13 16:54:17 -05:00
tsconfig.json API/SDK updates: configurability, more parameters. Unified test harness (#283) 2025-12-03 16:49:30 -05:00

README.md

Honcho TypeScript SDK

A high-level, ergonomic TypeScript SDK for the Honcho conversational memory platform. This library wraps honcho-node-core to provide a user-friendly, Pythonic API for managing peers, sessions, and conversational context.

Installation

npm install @honcho-ai/sdk

Usage

import { Honcho } from "@honcho-ai/sdk";

const honcho = new Honcho({
  apiKey: process.env.HONCHO_API_KEY,
  baseUrl: "http://localhost:8000",
  workspaceId: "test",
});

const assistant = honcho.peer("bob");
const alice = honcho.peer("alice");

await honcho.getPeers();

const session = honcho.session("session_1");
await session.addPeers([alice, assistant]);

await session.addMessages([
  assistant.message("What did you have for breakfast today, alice?"),
  alice.message("I had oatmeal."),
]);

const response = await alice.chat("what did alice have for breakfast today?");
console.log(response);

See examples/ for more.