| 148 | } |
| 149 | |
| 150 | export interface INode extends INodeProperties { |
| 151 | credential?: INodeParams |
| 152 | inputs?: INodeParams[] |
| 153 | output?: INodeOutputsValue[] |
| 154 | loadMethods?: { |
| 155 | [key: string]: (nodeData: INodeData, options?: ICommonObject) => Promise<INodeOptionsValue[]> |
| 156 | } |
| 157 | vectorStoreMethods?: { |
| 158 | upsert: (nodeData: INodeData, options?: ICommonObject) => Promise<IndexingResult | void> |
| 159 | search: (nodeData: INodeData, options?: ICommonObject) => Promise<any> |
| 160 | delete: (nodeData: INodeData, ids: string[], options?: ICommonObject) => Promise<void> |
| 161 | } |
| 162 | init?(nodeData: INodeData, input: string, options?: ICommonObject): Promise<any> |
| 163 | run?(nodeData: INodeData, input: string, options?: ICommonObject): Promise<string | ICommonObject> |
| 164 | } |
| 165 | |
| 166 | export interface INodeData extends INodeProperties { |
| 167 | id: string |
no outgoing calls
no test coverage detected