UNPKG

@n8n/n8n-nodes-langchain

Version:
53 lines (48 loc) • 2.07 kB
/** * Google Gemini Node - Version 1.2 * Discriminator: resource=image, operation=generate */ interface Credentials { googlePalmApi: CredentialReference; } /** Creates an image from a text prompt */ export type LcGoogleGeminiV12ImageGenerateParams = { resource: 'image'; operation: 'generate'; /** * Model * @builderHint Keep a working or explicitly requested model unless provider evidence shows it is unavailable or unsuitable. When choosing a new model, select a current stable model supported by this node version, the configured API, and the required operation. Use the declared model-list lookup with the connected credential when available. Gateway credits can restrict that list. For a new choice without credentials, use current provider catalog information. Choose a model that fits the task and budget. Copy the exact model ID. Do not rely on node defaults, invent model IDs, or treat an unfamiliar model as invalid. * @searchListMethod imageGenerationModelSearch * @default {"mode":"list","value":"models/gemini-3.1-flash-image-preview"} */ modelId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; /** * A text description of the desired image(s) */ prompt?: string | Expression<string>; /** * Options * @default {} */ options?: { /** Number of images to generate * @displayOptions.show { /modelId: [{"_cnd":{"includes":"imagen"}}] } * @default 1 */ sampleCount?: number | Expression<number>; /** Put Output in Field * @hint The name of the output field to put the binary file data in * @default data */ binaryPropertyOutput?: string | Expression<string>; }; }; export interface LcGoogleGeminiV12ImageGenerateSubnodeConfig { tools?: ToolInstance[]; } export type LcGoogleGeminiV12ImageGenerateNode = { type: '@n8n/n8n-nodes-langchain.googleGemini'; version: 1.2; isTrigger: true; config: NodeConfig<LcGoogleGeminiV12ImageGenerateParams> & { credentials?: Credentials } & { subnodes?: LcGoogleGeminiV12ImageGenerateSubnodeConfig }; };