constructor(config = {}) {
    super();
    const { model = "sonar-small-online" } = config;
    const client = new OpenAI({
      baseURL: "https://api.perplexity.ai",
      apiKey: process.env.PERPLEXITY_API_KEY ?? null,
      maxRetries: 3,
    });

    this._client = client;
    this.model = model;
    this.verbose = true;
  }
The agent provider for the Perplexity provider.