export interface ChatMessage { role: "system" | "user" | "assistant"; content: string; } export interface CompleteOptions { estimateUsd?: number; /** * JSON Schema for the response (Track #145). On SDK adapters this forces a * tool call whose input matches the schema → the returned `text` is always * valid JSON (no regex extraction / parse-error fallback). Ignored by the * stateless agent-cli / noop adapters. */ responseSchema?: Record; } export interface ConnectorResult { text: string; usdSpent: number; modelUsed: string; llmQuality: "higher" | "lower"; cacheHit: boolean; } export interface ConnectorClient { complete(messages: ChatMessage[], opts?: CompleteOptions): Promise; } export declare class ConnectorNotImplementedError extends Error { name: string; constructor(connector: string); }