n8n-nodes-databricks-api
Version:
Databricks node for n8n
28 lines (27 loc) • 1.88 kB
TypeScript
import type { BaseChatMemory } from '@langchain/community/memory/chat_memory';
import type { BaseChatMessageHistory } from '@langchain/core/chat_history';
import type { Document } from '@langchain/core/documents';
import { Embeddings } from '@langchain/core/embeddings';
import { BaseRetriever } from '@langchain/core/retrievers';
import type { Tool } from '@langchain/core/tools';
import { VectorStore } from '@langchain/core/vectorstores';
import { TextSplitter } from '@langchain/textsplitters';
import type { BaseDocumentLoader } from 'langchain/dist/document_loaders/base';
import type { IExecuteFunctions, ISupplyDataFunctions, NodeConnectionType } from 'n8n-workflow';
import { N8nBinaryLoader } from './N8nBinaryLoader';
import { N8nJsonLoader } from './N8nJsonLoader';
export declare function callMethodAsync<T>(this: T, parameters: {
executeFunctions: IExecuteFunctions | ISupplyDataFunctions;
connectionType: NodeConnectionType;
currentNodeRunIndex: number;
method: (...args: any[]) => Promise<unknown>;
arguments: unknown[];
}): Promise<unknown>;
export declare function callMethodSync<T>(this: T, parameters: {
executeFunctions: IExecuteFunctions;
connectionType: NodeConnectionType;
currentNodeRunIndex: number;
method: (...args: any[]) => T;
arguments: unknown[];
}): unknown;
export declare function logWrapper(originalInstance: Tool | BaseChatMemory | BaseChatMessageHistory | BaseRetriever | Embeddings | Document[] | Document | BaseDocumentLoader | TextSplitter | VectorStore | N8nBinaryLoader | N8nJsonLoader, executeFunctions: IExecuteFunctions | ISupplyDataFunctions): Tool | BaseChatMemory | BaseChatMessageHistory | N8nBinaryLoader | TextSplitter | Document<Record<string, any>> | Document<Record<string, any>>[] | BaseDocumentLoader | N8nJsonLoader | BaseRetriever<Record<string, any>> | Embeddings | VectorStore;