Adaline Class
TheAdaline class is the main entry point for the TypeScript SDK. It provides methods for fetching deployments and initializing monitors for observability.
Constructor
Parameters
Configuration options for the Adaline client
Example
Methods
getDeployment()
Fetch a specific deployment by its ID.Parameters
Returns
The Deployment object.See Deployment Type for complete documentation.
Example
getLatestDeployment()
Fetch the latest deployment for a prompt in a specific environment.Parameters
Returns
The latest Deployment object for the specified environment.See Deployment Type for complete documentation.
Example
initLatestDeployment()
Initialize a cached latest deployment with automatic background refresh. This is the recommended approach for production applications.Parameters
Returns
A controller object with the following methods:
Example
initEvaluationResults()
Initialize a cached, polling fetcher for evaluation results. MirrorsinitLatestDeployment() but targets EvaluationResultsClient.list(). Useful when an evaluation is still running server-side and you want to surface partial results without writing your own polling loop — the same query (pagination + filters) is replayed on every refresh.
Parameters
Returns
A controller with the same shape as the deployment controller:
Example
initMonitor()
Initialize a monitoring session for logging traces and spans.Parameters
Returns
A Monitor instance for creating traces and spans. See Monitor Class for details.
Example
Namespace clients
Seven namespace clients are attached to everyAdaline instance. Each wraps the corresponding autogen API with retry-on-5xx, abort-on-4xx, and named-argument ergonomics:
| Property | Client | Covers |
|---|---|---|
adaline.datasets | DatasetsClient | Datasets (+ .rows, .columns sub-clients) |
adaline.prompts | PromptsClient | Prompts (+ .draft, .playgrounds, .evaluators, .evaluations sub-clients) |
adaline.providers | ProvidersClient | configured LLM providers |
adaline.models | ModelsClient | models available across providers |
adaline.projects | ProjectsClient | list / get / update workspace projects |
adaline.logs | LogsClient | read-side log access (+ .traces, .spans sub-clients) |
adaline.deploymentsApi— rawDeploymentsApifrom@adaline/apiadaline.logsApi— rawLogsApi(used internally byMonitor)
withRetry helper: