UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

61 lines (56 loc) 1.61 kB
/** * Google Gemini Node - Version 1.2 * Discriminator: resource=image, operation=edit */ interface Credentials { googlePalmApi: CredentialReference; } /** Upload one or more images and apply edits based on a prompt */ export type LcGoogleGeminiV12ImageEditParams = { resource: 'image'; operation: 'edit'; /** * Model * @searchListMethod imageEditModelSearch * @default {"mode":"list","value":""} */ modelId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; /** * Instruction describing how to edit the image */ prompt?: string | Expression<string> | PlaceholderValue; /** * Add one or more binary fields to include images with your prompt * @default {"values":[{"binaryPropertyName":"data"}]} */ images?: { /** Image */ values?: Array<{ /** The name of the binary field containing the image data * @default data */ binaryPropertyName?: string | Expression<string> | PlaceholderValue; }>; }; /** * Options * @default {} */ options?: { /** Put Output in Field * @hint The name of the output field to put the binary file data in * @default edited */ binaryPropertyOutput?: string | Expression<string> | PlaceholderValue; }; }; export interface LcGoogleGeminiV12ImageEditSubnodeConfig { tools?: ToolInstance[]; } export type LcGoogleGeminiV12ImageEditNode = { type: '@n8n/n8n-nodes-langchain.googleGemini'; version: 1.2; credentials?: Credentials; config: NodeConfig<LcGoogleGeminiV12ImageEditParams> & { subnodes?: LcGoogleGeminiV12ImageEditSubnodeConfig }; };