@n8n/n8n-nodes-langchain
Version:

61 lines (56 loc) • 1.61 kB
text/typescript
/**
* 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 };
};