Use parameter properties where possible. (#242)

This commit is contained in:
Jacob Richman
2025-05-02 09:31:18 -07:00
committed by GitHub
parent a7679db6e9
commit 539ab947a4
12 changed files with 18 additions and 53 deletions

View File

@@ -23,7 +23,6 @@ import { ReadManyFilesTool } from '../tools/read-many-files.js'; // Import ReadM
import { getResponseText } from '../utils/generateContentResponseUtilities.js';
export class GeminiClient {
private config: Config;
private client: GoogleGenAI;
private model: string;
private generateContentConfig: GenerateContentConfig = {
@@ -32,9 +31,8 @@ export class GeminiClient {
};
private readonly MAX_TURNS = 100;
constructor(config: Config) {
constructor(private config: Config) {
this.client = new GoogleGenAI({ apiKey: config.getApiKey() });
this.config = config;
this.model = config.getModel();
}