Skip to main content

TypeScript SDK

The TypeScript SDK provides a complete toolkit for integrating Adaline’s LLM deployment and observability features into your AI applications.

Installation

Quick Start

Resource management

Beyond deployments and monitoring, Adaline exposes seven namespace clients that cover the platform’s full REST surface. Each method retries 5xx responses, aborts on 4xx, and takes a named-argument object:
See the per-client pages for full method lists: Need the same retry behavior on a raw call? Use the exported withRetry helper:

Type Definitions

The SDK includes full TypeScript type definitions. Most types are imported from @adaline/api:
See Types Reference for complete type documentation.

Error Handling

The SDK uses automatic retry logic with exponential backoff:
  • 5xx errors: Automatically retried up to 10 times within a 20s budget
  • 4xx errors: Fail immediately (no retry)
  • Network errors: Retried with exponential backoff
Failed flush entries are dropped and counted via monitor.droppedCount. Successfully sent entries are tracked via monitor.sentCount.

Real-World Examples

Example 1: RAG Pipeline

Example 2: Multi-Agent System