TypeScript
Use the @huggler/sdk preview to embed the runtime in Node.js.
The SDK includes TypeScript declarations and loads a platform-specific Node-API addon. The preview supports Apple Silicon macOS and Linux x64 with glibc.
Start here
- TypeScript quickstart covers installing the preview tarballs, running a turn, and recovering the reply.
- TypeScript API lists options, promises, event types, and error codes.
Build with TypeScript
- Configure providers with named installations and model discovery.
- Control threads with an async event iterator, callbacks, and interruption.
- Manage history and context with snapshots, search, and pagination.
- Observe collaboration from stored tasks and native-child events.
See the feature matrix for operations exposed by each binding.