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

Properties

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