@crewdle/web-sdk-types 1.0.27 → 1.0.28

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.
@@ -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 { GenerativeAIWorkerConnectorConstructor, NLPLibraryConnectorConstructor, SearchConnectorConstructor } from '../../generative-ai';
5
+ import { AISearchConnectorConstructor, GenerativeAIWorkerConnectorConstructor, NLPLibraryConnectorConstructor, 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';
@@ -70,6 +70,10 @@ export interface ISDKOptions {
70
70
  * The custom search connector to use for searching the web.
71
71
  */
72
72
  searchConnector?: SearchConnectorConstructor;
73
+ /**
74
+ * The custom AI search connector to use for AI search tasks.
75
+ */
76
+ aiSearchConnector?: AISearchConnectorConstructor;
73
77
  /**
74
78
  * The maximum number of outgoing subscriptions.
75
79
  */
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Represents an AI search connector.
3
+ * @category Connector
4
+ */
5
+ export interface IAISearchConnector {
6
+ /**
7
+ * Searches for the query.
8
+ * @param query The query to search for.
9
+ * @param apiKey The API key to use for the search.
10
+ * @returns A promise that resolves with the search result.
11
+ */
12
+ search(query: string, apiKey: string): Promise<string>;
13
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { IAISearchConnector } from './AISearchConnector';
2
+ /**
3
+ * Represents an AI search connector constructor.
4
+ * @category AI
5
+ */
6
+ export type AISearchConnectorConstructor = new () => IAISearchConnector;
@@ -1,3 +1,5 @@
1
+ export * from './AISearchConnector';
2
+ export * from './AISearchConnectorConstructor';
1
3
  export * from './SearchConnector';
2
4
  export * from './SearchConnectorConstructor';
3
5
  export * from './SearchResult';
@@ -1,3 +1,5 @@
1
+ export * from './AISearchConnector';
2
+ export * from './AISearchConnectorConstructor';
1
3
  export * from './SearchConnector';
2
4
  export * from './SearchConnectorConstructor';
3
5
  export * from './SearchResult';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewdle/web-sdk-types",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "The Crewdle Mist Web SDK public types and interfaces",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",