@crewdle/web-sdk-types 1.0.42 → 1.0.43
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.
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an AI search connector result.
|
|
3
|
+
* @category Connector
|
|
4
|
+
*/
|
|
5
|
+
export interface IAISearchConnectorResult {
|
|
6
|
+
/**
|
|
7
|
+
* The output of the search result.
|
|
8
|
+
*/
|
|
9
|
+
output: string;
|
|
10
|
+
/**
|
|
11
|
+
* The input tokens used for the search.
|
|
12
|
+
*/
|
|
13
|
+
inputTokens: number;
|
|
14
|
+
/**
|
|
15
|
+
* The output tokens used for the search.
|
|
16
|
+
*/
|
|
17
|
+
outputTokens: number;
|
|
18
|
+
}
|
|
1
19
|
/**
|
|
2
20
|
* Represents an AI search connector.
|
|
3
21
|
* @category Connector
|
|
@@ -10,5 +28,5 @@ export interface IAISearchConnector {
|
|
|
10
28
|
* @param apiKey The API key to use for the search.
|
|
11
29
|
* @returns A promise that resolves with the search result.
|
|
12
30
|
*/
|
|
13
|
-
search(query: string, modelId: string): Promise<
|
|
31
|
+
search(query: string, modelId: string): Promise<IAISearchConnectorResult>;
|
|
14
32
|
}
|