@crewdle/web-sdk-types 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/sdk/SDKOptions.d.ts +5 -1
- package/dist/generative-ai/index.d.ts +1 -0
- package/dist/generative-ai/index.js +1 -0
- package/dist/generative-ai/query/QueryFileConnector.d.ts +15 -0
- package/dist/generative-ai/query/QueryFileConnector.js +1 -0
- package/dist/generative-ai/query/QueryFileConnectorConstructor.d.ts +6 -0
- package/dist/generative-ai/query/QueryFileConnectorConstructor.js +1 -0
- package/dist/generative-ai/query/QueryFileOptions.d.ts +18 -0
- package/dist/generative-ai/query/QueryFileOptions.js +1 -0
- package/dist/generative-ai/query/index.d.ts +3 -0
- package/dist/generative-ai/query/index.js +3 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { KeyValueDatabaseConnectorConstructor } from '../../key-value-database';
|
|
|
2
2
|
import { ILoggingConnector } from '.';
|
|
3
3
|
import { DocumentParserConnectorConstructor, ObjectStoreConnectorConstructor } from '../../object-storage';
|
|
4
4
|
import { PeerConnectionConnectorConstructor } from '../connection';
|
|
5
|
-
import { AISearchConnectorConstructor, GenerativeAIWorkerConnectorConstructor, NLPLibraryConnectorConstructor, SearchConnectorConstructor } from '../../generative-ai';
|
|
5
|
+
import { AISearchConnectorConstructor, GenerativeAIWorkerConnectorConstructor, NLPLibraryConnectorConstructor, QueryFileConnectorConstructor, SearchConnectorConstructor } from '../../generative-ai';
|
|
6
6
|
import { VectorDatabaseConnectorConstructor } from '../../vector-database';
|
|
7
7
|
import { GraphDatabaseConnectorConstructor } from '../../graph-database';
|
|
8
8
|
import { ExternalStorageConnectionConnectorConstructor, ExternalStorageType } from '../../external-storage';
|
|
@@ -74,6 +74,10 @@ export interface ISDKOptions {
|
|
|
74
74
|
* The custom AI search connector to use for AI search tasks.
|
|
75
75
|
*/
|
|
76
76
|
aiSearchConnector?: AISearchConnectorConstructor;
|
|
77
|
+
/**
|
|
78
|
+
* The custom query file connector to use for querying files.
|
|
79
|
+
*/
|
|
80
|
+
queryFileConnector?: QueryFileConnectorConstructor;
|
|
77
81
|
/**
|
|
78
82
|
* The maximum number of outgoing subscriptions.
|
|
79
83
|
*/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IQueryFileOptions } from './QueryFileOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Interface for the QueryFileConnector.
|
|
4
|
+
* @category Connector
|
|
5
|
+
*/
|
|
6
|
+
export interface IQueryFileConnector {
|
|
7
|
+
/**
|
|
8
|
+
* Executes a query.
|
|
9
|
+
* @param fileContent The content of the file.
|
|
10
|
+
* @param query The query to execute.
|
|
11
|
+
* @param options The options for the query.
|
|
12
|
+
* @returns A promise that resolves with the result of the query.
|
|
13
|
+
*/
|
|
14
|
+
executeQuery(fileContent: string, query: string, options: IQueryFileOptions): Promise<string>;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for the QueryFile function
|
|
3
|
+
* @category AI
|
|
4
|
+
*/
|
|
5
|
+
export interface IQueryFileOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the file has headers.
|
|
8
|
+
*/
|
|
9
|
+
headers?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The quote character.
|
|
12
|
+
*/
|
|
13
|
+
quote?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The delimiter.
|
|
16
|
+
*/
|
|
17
|
+
separator?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|