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

Properties

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