interface GeminiAPIConfig {
    googleSearchToolAdjustment?: GoogleSearchToolSetting;
    mediaManager?: MediaManager;
    safetyHandler?: GoogleAISafetyHandler;
    useSystemInstruction?: boolean;
}

Properties

googleSearchToolAdjustment?: GoogleSearchToolSetting

How to handle the Google Search tool, since the name (and format) of the tool changes between Gemini 1.5 and Gemini 2.0. true - Change based on the model version. (Default) false - Do not change the tool name provided string value - Use this as the attribute name for the search tool, adapting any tool attributes if possible. When the model is created, a "true" or default setting will be changed to a string based on the model.

mediaManager?: MediaManager
safetyHandler?: GoogleAISafetyHandler
useSystemInstruction?: boolean