@n8n/n8n-nodes-langchain
Version:
62 lines (57 loc) • 2.2 kB
text/typescript
/**
* Google Gemini Node - Version 1.1
* Discriminator: resource=image, operation=edit
*/
interface Credentials {
googlePalmApi: CredentialReference;
}
/** Upload one or more images and apply edits based on a prompt */
export type LcGoogleGeminiV11ImageEditParams = {
resource: 'image';
operation: 'edit';
/**
* 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 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>;
/**
* 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>;
}>;
};
/**
* 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>;
};
};
export interface LcGoogleGeminiV11ImageEditSubnodeConfig {
tools?: ToolInstance[];
}
export type LcGoogleGeminiV11ImageEditNode = {
type: '@n8n/n8n-nodes-langchain.googleGemini';
version: 1.1;
isTrigger: true;
config: NodeConfig<LcGoogleGeminiV11ImageEditParams> & { credentials?: Credentials } & { subnodes?: LcGoogleGeminiV11ImageEditSubnodeConfig };
};