@unified-llm/core
Version:
Unified LLM interface (in-memory).
29 lines (28 loc) • 1.05 kB
TypeScript
import { LLMClient, LLMClientConfig } from './llm-client';
/**
* ClientManager provides preset configurations for LLMClients.
* Note: v0.4.0 removed persistence support - this is now in-memory only.
*/
export declare class ClientManager {
/**
* Create a new LLMClient from a preset configuration
*/
static createFromPreset(preset: PresetName, apiKey: string, customConfig?: Partial<LLMClientConfig>): LLMClient;
/**
* Get available preset names
*/
static getPresetNames(): PresetName[];
/**
* Get preset configuration
*/
static getPreset(preset: PresetName): PresetConfig | undefined;
}
export type PresetName = 'coding-agent' | 'creative-writer' | 'data-analyst' | 'translator' | 'customer-support' | 'research-agent';
export interface PresetConfig extends Omit<LLMClientConfig, 'id' | 'apiKey' | 'tools'> {
name: string;
description: string;
instructions?: string;
tags?: string[];
tools?: string[];
}
export declare const CLIENT_PRESETS: Record<PresetName, PresetConfig>;