import type { ChatMessage, AnalysisResponse, ParsedModel } from "../types.js"; import type { ProviderConfig, ResponseFormat } from "./types.js"; /** * Options for fallback behavior on cold starts */ export interface FallbackOptions { /** Enable fallback to always-on endpoint on timeout. Default: true for superagent provider */ enableFallback?: boolean; /** Timeout in milliseconds before falling back. Default: 5000 */ fallbackTimeoutMs?: number; /** Custom fallback URL. If not provided, uses env var or default */ fallbackUrl?: string; } /** * Default model for guard() when no model is specified */ export declare const DEFAULT_GUARD_MODEL = "superagent/guard-1.7b"; /** * Registry of supported providers */ export declare const providers: Record; /** * Parse a model string in "provider/model" format * @example "openai/gpt-4o" -> { provider: "openai", model: "gpt-4o" } */ export declare function parseModel(modelString: string): ParsedModel; /** * Get the provider configuration for a given provider name */ export declare function getProvider(providerName: string): ProviderConfig; /** * Call an LLM provider with the given messages. * If `fallbackModelString` is set and the primary model returns a retryable * status code, the request is re-issued against the fallback model. */ export declare function callProvider(modelString: string, messages: ChatMessage[], responseFormat?: ResponseFormat, fallbackOptions?: FallbackOptions, fallbackModelString?: string): Promise; export type { ProviderConfig, ResponseFormat, JsonSchema } from "./types.js"; //# sourceMappingURL=index.d.ts.map