UNPKG

gcloud-sonar-ai

Version:

A production-ready NPM package that provides a Perplexity Sonar alternative using Google Cloud Vertex AI and Gemini models.

16 lines 706 B
import { SonarConfig, SonarResponse, StreamChunk, ChatSession, HealthStatus } from './types'; export declare class SonarAI { private vertexAI; private auth; private config; constructor(config?: SonarConfig); search(query: string, options?: Partial<SonarConfig>): Promise<SonarResponse>; searchStream(query: string, options?: Partial<SonarConfig>): AsyncGenerator<StreamChunk, SonarResponse>; createChat(): Promise<ChatSession>; healthCheck(): Promise<HealthStatus>; getAvailableModels(): Promise<string[]>; updateConfig(newConfig: Partial<SonarConfig>): void; getConfig(): Partial<SonarConfig>; private buildSearchTools; } //# sourceMappingURL=sonar.d.ts.map