@crewdle/web-sdk-types 1.0.54 → 1.0.56
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/node/NodeType.d.ts +5 -1
- package/dist/core/node/NodeType.js +4 -0
- package/dist/core/sdk/SDK.d.ts +17 -0
- package/dist/core/sdk/index.d.ts +1 -1
- package/dist/generative-ai/jobs/inference/GenerativeAIInferenceCreateJobParameters.d.ts +4 -0
- package/dist/generative-ai/jobs/inference/GenerativeAIInferenceWorkerParameters.d.ts +17 -3
- package/dist/generative-ai/jobs/inference/GenerativeAIInferenceWorkerParameters.js +1 -0
- package/dist/generative-ai/jobs/prompt/options/PromptFunction.d.ts +2 -0
- package/dist/generative-ai/jobs/realtime-session-create/GenerativeAIRealtimeSessionCreateResult.d.ts +8 -0
- package/package.json +1 -1
package/dist/core/sdk/SDK.d.ts
CHANGED
|
@@ -40,3 +40,20 @@ export interface ISDK {
|
|
|
40
40
|
*/
|
|
41
41
|
joinCluster(clusterId: string, standalone?: boolean): Promise<ICluster>;
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* The local SDK interface for standalone, offline use.
|
|
45
|
+
* @category Core
|
|
46
|
+
*/
|
|
47
|
+
export interface ILocalSDK {
|
|
48
|
+
/**
|
|
49
|
+
* Close the SDK.
|
|
50
|
+
* @param options The options to close the SDK with.
|
|
51
|
+
*/
|
|
52
|
+
close(options?: ISDKCloseOptions): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Join a cluster.
|
|
55
|
+
* @param clusterId The ID of the cluster to join.
|
|
56
|
+
* @returns A promise that resolves with the cluster.
|
|
57
|
+
*/
|
|
58
|
+
joinCluster(clusterId: string): Promise<ICluster>;
|
|
59
|
+
}
|
package/dist/core/sdk/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ILoggingConnector } from './LoggingConnector';
|
|
2
2
|
export { LoggingConnectorEvent } from './LoggingConnectorEvent';
|
|
3
|
-
export { ISDK } from './SDK';
|
|
3
|
+
export { ISDK, ILocalSDK } from './SDK';
|
|
4
4
|
export { ISDKCloseOptions } from './SDKCloseOptions';
|
|
5
5
|
export { ISDKOptions } from './SDKOptions';
|
|
6
6
|
export { Unsubscribe } from './Unsubscribe';
|
|
@@ -95,6 +95,10 @@ export interface IGenerativeAIInferenceCreateJobParameters extends IGenerativeAI
|
|
|
95
95
|
* tools for the AI job.
|
|
96
96
|
*/
|
|
97
97
|
tools?: IGenerativeAIInferenceTool[];
|
|
98
|
+
/**
|
|
99
|
+
* Whether to emit tool execution status during streaming.
|
|
100
|
+
*/
|
|
101
|
+
toolStatus?: boolean;
|
|
98
102
|
/**
|
|
99
103
|
* The internal context used by the AI job.
|
|
100
104
|
*/
|
|
@@ -94,6 +94,10 @@ export interface IGenerativeAIInferenceWorkerParameters extends IGenerativeAIWor
|
|
|
94
94
|
* tools for the AI job.
|
|
95
95
|
*/
|
|
96
96
|
tools?: IGenerativeAIInferenceTool[];
|
|
97
|
+
/**
|
|
98
|
+
* Whether to emit tool execution status during streaming.
|
|
99
|
+
*/
|
|
100
|
+
toolStatus?: boolean;
|
|
97
101
|
/**
|
|
98
102
|
* The internal context used by the AI job.
|
|
99
103
|
*/
|
|
@@ -193,6 +197,18 @@ export interface IGenerativeAIInferenceTool {
|
|
|
193
197
|
* The grammar for the tool.
|
|
194
198
|
*/
|
|
195
199
|
grammar?: any;
|
|
200
|
+
/**
|
|
201
|
+
* The reasoning effort for the tool.
|
|
202
|
+
*/
|
|
203
|
+
reasoning?: string;
|
|
204
|
+
/**
|
|
205
|
+
* The verbosity for the tool.
|
|
206
|
+
*/
|
|
207
|
+
verbosity?: string;
|
|
208
|
+
/**
|
|
209
|
+
* The files for the tool.
|
|
210
|
+
*/
|
|
211
|
+
files?: string[];
|
|
196
212
|
/**
|
|
197
213
|
* The collection ID for the tool.
|
|
198
214
|
*/
|
|
@@ -225,9 +241,6 @@ export interface IGenerativeAIInferenceTool {
|
|
|
225
241
|
* The allowed tools for the tool.
|
|
226
242
|
*/
|
|
227
243
|
allowed_tools?: string[];
|
|
228
|
-
/**
|
|
229
|
-
* The headers for the tool.
|
|
230
|
-
*/
|
|
231
244
|
/**
|
|
232
245
|
* The tools for the tool.
|
|
233
246
|
*/
|
|
@@ -249,6 +262,7 @@ export declare enum GenerativeAIInferenceToolType {
|
|
|
249
262
|
Search = "search",
|
|
250
263
|
WebScraper = "web-scraper",
|
|
251
264
|
WebScraperRaw = "web-scraper-raw",
|
|
265
|
+
WebScraperMarkdown = "web-scraper-markdown",
|
|
252
266
|
WriteFile = "write-file",
|
|
253
267
|
FormSkillGetQuestion = "form-skill-get-question",
|
|
254
268
|
FormSkillSetAnswer = "form-skill-set-answer",
|
|
@@ -15,6 +15,7 @@ export var GenerativeAIInferenceToolType;
|
|
|
15
15
|
GenerativeAIInferenceToolType["Search"] = "search";
|
|
16
16
|
GenerativeAIInferenceToolType["WebScraper"] = "web-scraper";
|
|
17
17
|
GenerativeAIInferenceToolType["WebScraperRaw"] = "web-scraper-raw";
|
|
18
|
+
GenerativeAIInferenceToolType["WebScraperMarkdown"] = "web-scraper-markdown";
|
|
18
19
|
GenerativeAIInferenceToolType["WriteFile"] = "write-file";
|
|
19
20
|
GenerativeAIInferenceToolType["FormSkillGetQuestion"] = "form-skill-get-question";
|
|
20
21
|
GenerativeAIInferenceToolType["FormSkillSetAnswer"] = "form-skill-set-answer";
|
package/dist/generative-ai/jobs/realtime-session-create/GenerativeAIRealtimeSessionCreateResult.d.ts
CHANGED
|
@@ -15,6 +15,14 @@ export interface IGenerativeAIRealtimeSessionCreateResult extends IGenerativeAIJ
|
|
|
15
15
|
* The API key.
|
|
16
16
|
*/
|
|
17
17
|
apiKey: string;
|
|
18
|
+
/**
|
|
19
|
+
* The Twilio Account SID.
|
|
20
|
+
*/
|
|
21
|
+
twilioAccountSid?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The Twilio Auth Token.
|
|
24
|
+
*/
|
|
25
|
+
twilioAuthToken?: string;
|
|
18
26
|
/**
|
|
19
27
|
* The type of session.
|
|
20
28
|
*/
|