INNER CODE UNIT · TypeScript

SecGemini

google/sec-gemini · sec-gemini-ts/src/index.ts:72

export class SecGemini {
  private apiKey: string;
  private baseURL: string;
  private websocketsURL: string;
  private logsUrl: string;
  private httpClient: HttpClient;
  private logsHttpClient: HttpClient;

  // Store fetched user and model information
  private userInfo: UserInfo | null = null;
  private user: PublicUser | null = null; // Convenience accessor
  private stableModel: ModelInfoInput | null = null;
  private experimentalModel: ModelInfoInput | null = null;

  /**
   * Private constructor. Use the static `SecGemini.create()` method for instantiation.
   */
  private constructor(apiKey: string, baseURL: string, websocketsURL: string, logsUrl: string) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…