interface GeminiRequest {
    contents?: GeminiContent[];
    generationConfig?: GeminiGenerationConfig;
    safetySettings?: GeminiSafetySetting[];
    systemInstruction?: GeminiContent;
    toolConfig?: {
        functionCallingConfig: {
            mode: "any" | "auto" | "none";
            allowedFunctionNames?: string[];
        };
    };
    tools?: GeminiTool[];
}

Properties

contents?: GeminiContent[]
generationConfig?: GeminiGenerationConfig
safetySettings?: GeminiSafetySetting[]
systemInstruction?: GeminiContent
toolConfig?: {
    functionCallingConfig: {
        mode: "any" | "auto" | "none";
        allowedFunctionNames?: string[];
    };
}
tools?: GeminiTool[]