@n8n/n8n-nodes-langchain
Version:
67 lines (62 loc) • 2.51 kB
text/typescript
/**
* Google Gemini Node - Version 1.1
* Discriminator: resource=audio, operation=transcribe
*/
interface Credentials {
googlePalmApi: CredentialReference;
}
/** Transcribes audio into the text */
export type LcGoogleGeminiV11AudioTranscribeParams = {
resource: 'audio';
operation: 'transcribe';
/**
* 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 audioModelSearch
* @default {"mode":"list","value":""}
*/
modelId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/**
* Input Type
* @default url
*/
inputType?: 'url' | 'binary' | Expression<string>;
/**
* URL(s) of the audio(s) to transcribe, multiple URLs can be added separated by comma
* @displayOptions.show { inputType: ["url"] }
*/
audioUrls?: string | Expression<string>;
/**
* Name of the binary field(s) which contains the audio(s), seperate multiple field names with commas
* @hint The name of the input field containing the binary file data to be processed
* @displayOptions.show { inputType: ["binary"] }
* @default data
*/
binaryPropertyName?: string | Expression<string>;
/**
* Whether to simplify the response or not
* @default true
*/
simplify?: boolean | Expression<boolean>;
/**
* Options
* @default {}
*/
options?: {
/** The start time of the audio in MM:SS or HH:MM:SS format
*/
startTime?: string | Expression<string>;
/** The end time of the audio in MM:SS or HH:MM:SS format
*/
endTime?: string | Expression<string>;
};
};
export interface LcGoogleGeminiV11AudioTranscribeSubnodeConfig {
tools?: ToolInstance[];
}
export type LcGoogleGeminiV11AudioTranscribeNode = {
type: '@n8n/n8n-nodes-langchain.googleGemini';
version: 1.1;
isTrigger: true;
config: NodeConfig<LcGoogleGeminiV11AudioTranscribeParams> & { credentials?: Credentials } & { subnodes?: LcGoogleGeminiV11AudioTranscribeSubnodeConfig };
};