hume 0.5.11 → 0.5.13
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/api/resources/customModels/resources/datasets/client/Client.js +9 -9
- package/api/resources/customModels/resources/files/client/Client.js +7 -7
- package/api/resources/customModels/resources/jobs/client/Client.js +2 -2
- package/api/resources/customModels/resources/models/client/Client.js +6 -6
- package/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
- package/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -11
- package/api/resources/empathicVoice/resources/tools/client/Client.js +31 -20
- package/api/resources/empathicVoice/resources/tools/client/requests/GetReturnToolsForUserRequest.d.ts +4 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +5 -2
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.ts +1 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +4 -1
- package/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +3 -1
- package/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/dist/api/resources/customModels/resources/datasets/client/Client.js +9 -9
- package/dist/api/resources/customModels/resources/files/client/Client.js +7 -7
- package/dist/api/resources/customModels/resources/jobs/client/Client.js +2 -2
- package/dist/api/resources/customModels/resources/models/client/Client.js +6 -6
- package/dist/api/resources/empathicVoice/resources/chats/client/Client.js +2 -2
- package/dist/api/resources/empathicVoice/resources/configs/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/prompts/client/Client.js +9 -9
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.d.ts +22 -11
- package/dist/api/resources/empathicVoice/resources/tools/client/Client.js +31 -20
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/GetReturnToolsForUserRequest.d.ts +4 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts +5 -2
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolName.d.ts +1 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersion.d.ts +4 -1
- package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedToolVersionDescription.d.ts +3 -1
- package/dist/api/resources/expressionMeasurement/resources/batch/client/Client.js +6 -6
- package/package.json +1 -1
|
@@ -74,7 +74,7 @@ class Configs {
|
|
|
74
74
|
method: "GET",
|
|
75
75
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
76
76
|
? yield core.Supplier.get(this._options.accountToken)
|
|
77
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
77
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -127,7 +127,7 @@ class Configs {
|
|
|
127
127
|
method: "POST",
|
|
128
128
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
129
129
|
? yield core.Supplier.get(this._options.accountToken)
|
|
130
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
130
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
131
131
|
contentType: "application/json",
|
|
132
132
|
body: yield serializers.empathicVoice.PostedConfig.jsonOrThrow(request, {
|
|
133
133
|
unrecognizedObjectKeys: "strip",
|
|
@@ -192,7 +192,7 @@ class Configs {
|
|
|
192
192
|
method: "GET",
|
|
193
193
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
194
194
|
? yield core.Supplier.get(this._options.accountToken)
|
|
195
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
195
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
196
196
|
contentType: "application/json",
|
|
197
197
|
queryParameters: _queryParams,
|
|
198
198
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -244,7 +244,7 @@ class Configs {
|
|
|
244
244
|
method: "POST",
|
|
245
245
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
246
246
|
? yield core.Supplier.get(this._options.accountToken)
|
|
247
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
247
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
248
248
|
contentType: "application/json",
|
|
249
249
|
body: yield serializers.empathicVoice.PostedConfigVersion.jsonOrThrow(request, {
|
|
250
250
|
unrecognizedObjectKeys: "strip",
|
|
@@ -297,7 +297,7 @@ class Configs {
|
|
|
297
297
|
method: "DELETE",
|
|
298
298
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
299
299
|
? yield core.Supplier.get(this._options.accountToken)
|
|
300
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
300
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
301
301
|
contentType: "application/json",
|
|
302
302
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
303
303
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -344,7 +344,7 @@ class Configs {
|
|
|
344
344
|
method: "PATCH",
|
|
345
345
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
346
346
|
? yield core.Supplier.get(this._options.accountToken)
|
|
347
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
347
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
348
348
|
contentType: "application/json",
|
|
349
349
|
body: yield serializers.empathicVoice.PostedConfigName.jsonOrThrow(request, {
|
|
350
350
|
unrecognizedObjectKeys: "strip",
|
|
@@ -393,7 +393,7 @@ class Configs {
|
|
|
393
393
|
method: "GET",
|
|
394
394
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
395
395
|
? yield core.Supplier.get(this._options.accountToken)
|
|
396
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
396
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
397
397
|
contentType: "application/json",
|
|
398
398
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
399
399
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -444,7 +444,7 @@ class Configs {
|
|
|
444
444
|
method: "DELETE",
|
|
445
445
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
446
446
|
? yield core.Supplier.get(this._options.accountToken)
|
|
447
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
447
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
448
448
|
contentType: "application/json",
|
|
449
449
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
450
450
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -490,7 +490,7 @@ class Configs {
|
|
|
490
490
|
method: "PATCH",
|
|
491
491
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
492
492
|
? yield core.Supplier.get(this._options.accountToken)
|
|
493
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
493
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
494
494
|
contentType: "application/json",
|
|
495
495
|
body: yield serializers.empathicVoice.PostedConfigVersionDescription.jsonOrThrow(request, {
|
|
496
496
|
unrecognizedObjectKeys: "strip",
|
|
@@ -74,7 +74,7 @@ class Prompts {
|
|
|
74
74
|
method: "GET",
|
|
75
75
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
76
76
|
? yield core.Supplier.get(this._options.accountToken)
|
|
77
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
77
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -128,7 +128,7 @@ class Prompts {
|
|
|
128
128
|
method: "POST",
|
|
129
129
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
130
130
|
? yield core.Supplier.get(this._options.accountToken)
|
|
131
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
131
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
body: yield serializers.empathicVoice.PostedPrompt.jsonOrThrow(request, {
|
|
134
134
|
unrecognizedObjectKeys: "strip",
|
|
@@ -193,7 +193,7 @@ class Prompts {
|
|
|
193
193
|
method: "GET",
|
|
194
194
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
195
195
|
? yield core.Supplier.get(this._options.accountToken)
|
|
196
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
196
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
197
197
|
contentType: "application/json",
|
|
198
198
|
queryParameters: _queryParams,
|
|
199
199
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -247,7 +247,7 @@ class Prompts {
|
|
|
247
247
|
method: "POST",
|
|
248
248
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
249
249
|
? yield core.Supplier.get(this._options.accountToken)
|
|
250
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
250
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
251
251
|
contentType: "application/json",
|
|
252
252
|
body: yield serializers.empathicVoice.PostedPromptVersion.jsonOrThrow(request, {
|
|
253
253
|
unrecognizedObjectKeys: "strip",
|
|
@@ -300,7 +300,7 @@ class Prompts {
|
|
|
300
300
|
method: "DELETE",
|
|
301
301
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
302
302
|
? yield core.Supplier.get(this._options.accountToken)
|
|
303
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
303
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
304
304
|
contentType: "application/json",
|
|
305
305
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
306
306
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -347,7 +347,7 @@ class Prompts {
|
|
|
347
347
|
method: "PATCH",
|
|
348
348
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
349
349
|
? yield core.Supplier.get(this._options.accountToken)
|
|
350
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
350
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
351
351
|
contentType: "application/json",
|
|
352
352
|
body: yield serializers.empathicVoice.PostedPromptName.jsonOrThrow(request, {
|
|
353
353
|
unrecognizedObjectKeys: "strip",
|
|
@@ -396,7 +396,7 @@ class Prompts {
|
|
|
396
396
|
method: "GET",
|
|
397
397
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
398
398
|
? yield core.Supplier.get(this._options.accountToken)
|
|
399
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
399
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
400
400
|
contentType: "application/json",
|
|
401
401
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
402
402
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -447,7 +447,7 @@ class Prompts {
|
|
|
447
447
|
method: "DELETE",
|
|
448
448
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
449
449
|
? yield core.Supplier.get(this._options.accountToken)
|
|
450
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
450
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
451
451
|
contentType: "application/json",
|
|
452
452
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
453
453
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -493,7 +493,7 @@ class Prompts {
|
|
|
493
493
|
method: "PATCH",
|
|
494
494
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
495
495
|
? yield core.Supplier.get(this._options.accountToken)
|
|
496
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
496
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
497
497
|
contentType: "application/json",
|
|
498
498
|
body: yield serializers.empathicVoice.PostedPromptVersionDescription.jsonOrThrow(request, {
|
|
499
499
|
unrecognizedObjectKeys: "strip",
|
|
@@ -24,7 +24,10 @@ export declare class Tools {
|
|
|
24
24
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
25
|
*
|
|
26
26
|
* @example
|
|
27
|
-
* await hume.empathicVoice.tools.getReturnToolsForUser(
|
|
27
|
+
* await hume.empathicVoice.tools.getReturnToolsForUser({
|
|
28
|
+
* pageNumber: 0,
|
|
29
|
+
* pageSize: 2
|
|
30
|
+
* })
|
|
28
31
|
*/
|
|
29
32
|
getReturnToolsForUser(request?: Hume.empathicVoice.GetReturnToolsForUserRequest, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedUserDefinedTools>;
|
|
30
33
|
/**
|
|
@@ -33,8 +36,11 @@ export declare class Tools {
|
|
|
33
36
|
*
|
|
34
37
|
* @example
|
|
35
38
|
* await hume.empathicVoice.tools.createNewTool({
|
|
36
|
-
* name: "
|
|
37
|
-
* parameters: "
|
|
39
|
+
* name: "get_current_weather",
|
|
40
|
+
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
41
|
+
* versionDescription: "Fetches current weather and uses celsius or fahrenheit based on location of user.",
|
|
42
|
+
* description: "This tool is for getting the current weather.",
|
|
43
|
+
* fallbackContent: "Unable to fetch current weather."
|
|
38
44
|
* })
|
|
39
45
|
*/
|
|
40
46
|
createNewTool(request: Hume.empathicVoice.PostedUserDefinedTool, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
@@ -44,7 +50,7 @@ export declare class Tools {
|
|
|
44
50
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
51
|
*
|
|
46
52
|
* @example
|
|
47
|
-
* await hume.empathicVoice.tools.getReturnToolByToolId("
|
|
53
|
+
* await hume.empathicVoice.tools.getReturnToolByToolId("00183a3f-79ba-413d-9f3b-609864268bea")
|
|
48
54
|
*/
|
|
49
55
|
getReturnToolByToolId(id: string, request?: Hume.empathicVoice.GetReturnToolByToolIdRequest, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnPagedUserDefinedTools>;
|
|
50
56
|
/**
|
|
@@ -53,8 +59,11 @@ export declare class Tools {
|
|
|
53
59
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
60
|
*
|
|
55
61
|
* @example
|
|
56
|
-
* await hume.empathicVoice.tools.addNewToolVersion("
|
|
57
|
-
* parameters: "
|
|
62
|
+
* await hume.empathicVoice.tools.addNewToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", {
|
|
63
|
+
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\", \"kelvin\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
64
|
+
* versionDescription: "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.",
|
|
65
|
+
* fallbackContent: "Unable to fetch current weather.",
|
|
66
|
+
* description: "This tool is for getting the current weather."
|
|
58
67
|
* })
|
|
59
68
|
*/
|
|
60
69
|
addNewToolVersion(id: string, request: Hume.empathicVoice.PostedUserDefinedToolVersion, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
@@ -63,7 +72,7 @@ export declare class Tools {
|
|
|
63
72
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
73
|
*
|
|
65
74
|
* @example
|
|
66
|
-
* await hume.empathicVoice.tools.deleteToolVersion("
|
|
75
|
+
* await hume.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-609864268bea")
|
|
67
76
|
*/
|
|
68
77
|
deleteToolVersion(id: string, requestOptions?: Tools.RequestOptions): Promise<void>;
|
|
69
78
|
/**
|
|
@@ -72,8 +81,8 @@ export declare class Tools {
|
|
|
72
81
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
82
|
*
|
|
74
83
|
* @example
|
|
75
|
-
* await hume.empathicVoice.tools.updateToolName("
|
|
76
|
-
* name: "
|
|
84
|
+
* await hume.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-609864268bea", {
|
|
85
|
+
* name: "get_current_temperature"
|
|
77
86
|
* })
|
|
78
87
|
*/
|
|
79
88
|
updateToolName(id: string, request: Hume.empathicVoice.PostedUserDefinedToolName, requestOptions?: Tools.RequestOptions): Promise<string>;
|
|
@@ -83,7 +92,7 @@ export declare class Tools {
|
|
|
83
92
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
93
|
*
|
|
85
94
|
* @example
|
|
86
|
-
* await hume.empathicVoice.tools.getReturnToolByVersionNumber("
|
|
95
|
+
* await hume.empathicVoice.tools.getReturnToolByVersionNumber("00183a3f-79ba-413d-9f3b-609864268bea", 1)
|
|
87
96
|
*/
|
|
88
97
|
getReturnToolByVersionNumber(id: string, version: number, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
89
98
|
/**
|
|
@@ -102,7 +111,9 @@ export declare class Tools {
|
|
|
102
111
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
112
|
*
|
|
104
113
|
* @example
|
|
105
|
-
* await hume.empathicVoice.tools.updateToolVersionDescription("
|
|
114
|
+
* await hume.empathicVoice.tools.updateToolVersionDescription("00183a3f-79ba-413d-9f3b-609864268bea", 1, {
|
|
115
|
+
* versionDescription: "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region."
|
|
116
|
+
* })
|
|
106
117
|
*/
|
|
107
118
|
updateToolVersionDescription(id: string, version: number, request?: Hume.empathicVoice.PostedUserDefinedToolVersionDescription, requestOptions?: Tools.RequestOptions): Promise<Hume.empathicVoice.ReturnUserDefinedTool | undefined>;
|
|
108
119
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
@@ -53,7 +53,10 @@ class Tools {
|
|
|
53
53
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await hume.empathicVoice.tools.getReturnToolsForUser(
|
|
56
|
+
* await hume.empathicVoice.tools.getReturnToolsForUser({
|
|
57
|
+
* pageNumber: 0,
|
|
58
|
+
* pageSize: 2
|
|
59
|
+
* })
|
|
57
60
|
*/
|
|
58
61
|
getReturnToolsForUser(request = {}, requestOptions) {
|
|
59
62
|
var _a, _b;
|
|
@@ -74,7 +77,7 @@ class Tools {
|
|
|
74
77
|
method: "GET",
|
|
75
78
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
76
79
|
? yield core.Supplier.get(this._options.accountToken)
|
|
77
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
80
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
78
81
|
contentType: "application/json",
|
|
79
82
|
queryParameters: _queryParams,
|
|
80
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -116,8 +119,11 @@ class Tools {
|
|
|
116
119
|
*
|
|
117
120
|
* @example
|
|
118
121
|
* await hume.empathicVoice.tools.createNewTool({
|
|
119
|
-
* name: "
|
|
120
|
-
* parameters: "
|
|
122
|
+
* name: "get_current_weather",
|
|
123
|
+
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
124
|
+
* versionDescription: "Fetches current weather and uses celsius or fahrenheit based on location of user.",
|
|
125
|
+
* description: "This tool is for getting the current weather.",
|
|
126
|
+
* fallbackContent: "Unable to fetch current weather."
|
|
121
127
|
* })
|
|
122
128
|
*/
|
|
123
129
|
createNewTool(request, requestOptions) {
|
|
@@ -128,7 +134,7 @@ class Tools {
|
|
|
128
134
|
method: "POST",
|
|
129
135
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
130
136
|
? yield core.Supplier.get(this._options.accountToken)
|
|
131
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
137
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
138
|
contentType: "application/json",
|
|
133
139
|
body: yield serializers.empathicVoice.PostedUserDefinedTool.jsonOrThrow(request, {
|
|
134
140
|
unrecognizedObjectKeys: "strip",
|
|
@@ -172,7 +178,7 @@ class Tools {
|
|
|
172
178
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
179
|
*
|
|
174
180
|
* @example
|
|
175
|
-
* await hume.empathicVoice.tools.getReturnToolByToolId("
|
|
181
|
+
* await hume.empathicVoice.tools.getReturnToolByToolId("00183a3f-79ba-413d-9f3b-609864268bea")
|
|
176
182
|
*/
|
|
177
183
|
getReturnToolByToolId(id, request = {}, requestOptions) {
|
|
178
184
|
var _a, _b;
|
|
@@ -193,7 +199,7 @@ class Tools {
|
|
|
193
199
|
method: "GET",
|
|
194
200
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
195
201
|
? yield core.Supplier.get(this._options.accountToken)
|
|
196
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
202
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
197
203
|
contentType: "application/json",
|
|
198
204
|
queryParameters: _queryParams,
|
|
199
205
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,8 +241,11 @@ class Tools {
|
|
|
235
241
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
236
242
|
*
|
|
237
243
|
* @example
|
|
238
|
-
* await hume.empathicVoice.tools.addNewToolVersion("
|
|
239
|
-
* parameters: "
|
|
244
|
+
* await hume.empathicVoice.tools.addNewToolVersion("00183a3f-79ba-413d-9f3b-609864268bea", {
|
|
245
|
+
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\", \"kelvin\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
246
|
+
* versionDescription: "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.",
|
|
247
|
+
* fallbackContent: "Unable to fetch current weather.",
|
|
248
|
+
* description: "This tool is for getting the current weather."
|
|
240
249
|
* })
|
|
241
250
|
*/
|
|
242
251
|
addNewToolVersion(id, request, requestOptions) {
|
|
@@ -247,7 +256,7 @@ class Tools {
|
|
|
247
256
|
method: "POST",
|
|
248
257
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
249
258
|
? yield core.Supplier.get(this._options.accountToken)
|
|
250
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
259
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
251
260
|
contentType: "application/json",
|
|
252
261
|
body: yield serializers.empathicVoice.PostedUserDefinedToolVersion.jsonOrThrow(request, {
|
|
253
262
|
unrecognizedObjectKeys: "strip",
|
|
@@ -290,7 +299,7 @@ class Tools {
|
|
|
290
299
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
291
300
|
*
|
|
292
301
|
* @example
|
|
293
|
-
* await hume.empathicVoice.tools.deleteToolVersion("
|
|
302
|
+
* await hume.empathicVoice.tools.deleteToolVersion("00183a3f-79ba-413d-9f3b-609864268bea")
|
|
294
303
|
*/
|
|
295
304
|
deleteToolVersion(id, requestOptions) {
|
|
296
305
|
var _a, _b;
|
|
@@ -300,7 +309,7 @@ class Tools {
|
|
|
300
309
|
method: "DELETE",
|
|
301
310
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
302
311
|
? yield core.Supplier.get(this._options.accountToken)
|
|
303
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
312
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
304
313
|
contentType: "application/json",
|
|
305
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
306
315
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -335,8 +344,8 @@ class Tools {
|
|
|
335
344
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
336
345
|
*
|
|
337
346
|
* @example
|
|
338
|
-
* await hume.empathicVoice.tools.updateToolName("
|
|
339
|
-
* name: "
|
|
347
|
+
* await hume.empathicVoice.tools.updateToolName("00183a3f-79ba-413d-9f3b-609864268bea", {
|
|
348
|
+
* name: "get_current_temperature"
|
|
340
349
|
* })
|
|
341
350
|
*/
|
|
342
351
|
updateToolName(id, request, requestOptions) {
|
|
@@ -347,7 +356,7 @@ class Tools {
|
|
|
347
356
|
method: "PATCH",
|
|
348
357
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
349
358
|
? yield core.Supplier.get(this._options.accountToken)
|
|
350
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
359
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
351
360
|
contentType: "application/json",
|
|
352
361
|
body: yield serializers.empathicVoice.PostedUserDefinedToolName.jsonOrThrow(request, {
|
|
353
362
|
unrecognizedObjectKeys: "strip",
|
|
@@ -386,7 +395,7 @@ class Tools {
|
|
|
386
395
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
387
396
|
*
|
|
388
397
|
* @example
|
|
389
|
-
* await hume.empathicVoice.tools.getReturnToolByVersionNumber("
|
|
398
|
+
* await hume.empathicVoice.tools.getReturnToolByVersionNumber("00183a3f-79ba-413d-9f3b-609864268bea", 1)
|
|
390
399
|
*/
|
|
391
400
|
getReturnToolByVersionNumber(id, version, requestOptions) {
|
|
392
401
|
var _a, _b;
|
|
@@ -396,7 +405,7 @@ class Tools {
|
|
|
396
405
|
method: "GET",
|
|
397
406
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
398
407
|
? yield core.Supplier.get(this._options.accountToken)
|
|
399
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
408
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
400
409
|
contentType: "application/json",
|
|
401
410
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
402
411
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -447,7 +456,7 @@ class Tools {
|
|
|
447
456
|
method: "DELETE",
|
|
448
457
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
449
458
|
? yield core.Supplier.get(this._options.accountToken)
|
|
450
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
459
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
451
460
|
contentType: "application/json",
|
|
452
461
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
453
462
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -483,7 +492,9 @@ class Tools {
|
|
|
483
492
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
484
493
|
*
|
|
485
494
|
* @example
|
|
486
|
-
* await hume.empathicVoice.tools.updateToolVersionDescription("
|
|
495
|
+
* await hume.empathicVoice.tools.updateToolVersionDescription("00183a3f-79ba-413d-9f3b-609864268bea", 1, {
|
|
496
|
+
* versionDescription: "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region."
|
|
497
|
+
* })
|
|
487
498
|
*/
|
|
488
499
|
updateToolVersionDescription(id, version, request = {}, requestOptions) {
|
|
489
500
|
var _a, _b;
|
|
@@ -493,7 +504,7 @@ class Tools {
|
|
|
493
504
|
method: "PATCH",
|
|
494
505
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
495
506
|
? yield core.Supplier.get(this._options.accountToken)
|
|
496
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
507
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
497
508
|
contentType: "application/json",
|
|
498
509
|
body: yield serializers.empathicVoice.PostedUserDefinedToolVersionDescription.jsonOrThrow(request, {
|
|
499
510
|
unrecognizedObjectKeys: "strip",
|
package/dist/api/resources/empathicVoice/resources/tools/client/requests/PostedUserDefinedTool.d.ts
CHANGED
|
@@ -4,8 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
* name: "
|
|
8
|
-
* parameters: "
|
|
7
|
+
* name: "get_current_weather",
|
|
8
|
+
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
9
|
+
* versionDescription: "Fetches current weather and uses celsius or fahrenheit based on location of user.",
|
|
10
|
+
* description: "This tool is for getting the current weather.",
|
|
11
|
+
* fallbackContent: "Unable to fetch current weather."
|
|
9
12
|
* }
|
|
10
13
|
*/
|
|
11
14
|
export interface PostedUserDefinedTool {
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
* parameters: "
|
|
7
|
+
* parameters: "{ \"type\": \"object\", \"properties\": { \"location\": { \"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\" }, \"format\": { \"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\", \"kelvin\"], \"description\": \"The temperature unit to use. Infer this from the users location.\" } }, \"required\": [\"location\", \"format\"] }",
|
|
8
|
+
* versionDescription: "Fetches current weather and uses celsius, fahrenheit, or kelvin based on location of user.",
|
|
9
|
+
* fallbackContent: "Unable to fetch current weather.",
|
|
10
|
+
* description: "This tool is for getting the current weather."
|
|
8
11
|
* }
|
|
9
12
|
*/
|
|
10
13
|
export interface PostedUserDefinedToolVersion {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
|
-
* {
|
|
6
|
+
* {
|
|
7
|
+
* versionDescription: "Fetches current temperature, precipitation, wind speed, AQI, and other weather conditions. Uses Celsius, Fahrenheit, or kelvin depending on user's region."
|
|
8
|
+
* }
|
|
7
9
|
*/
|
|
8
10
|
export interface PostedUserDefinedToolVersionDescription {
|
|
9
11
|
/** Description that is appended to a specific version of a Tool. */
|
|
@@ -99,7 +99,7 @@ class Batch {
|
|
|
99
99
|
method: "GET",
|
|
100
100
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
101
101
|
? yield core.Supplier.get(this._options.accountToken)
|
|
102
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
102
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
103
103
|
contentType: "application/json",
|
|
104
104
|
queryParameters: _queryParams,
|
|
105
105
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -155,7 +155,7 @@ class Batch {
|
|
|
155
155
|
method: "POST",
|
|
156
156
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
157
157
|
? yield core.Supplier.get(this._options.accountToken)
|
|
158
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
158
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
body: yield serializers.expressionMeasurement.InferenceBaseRequest.jsonOrThrow(request, {
|
|
161
161
|
unrecognizedObjectKeys: "strip",
|
|
@@ -210,7 +210,7 @@ class Batch {
|
|
|
210
210
|
method: "GET",
|
|
211
211
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
212
212
|
? yield core.Supplier.get(this._options.accountToken)
|
|
213
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
213
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
214
214
|
contentType: "application/json",
|
|
215
215
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
216
216
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -262,7 +262,7 @@ class Batch {
|
|
|
262
262
|
method: "GET",
|
|
263
263
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
264
264
|
? yield core.Supplier.get(this._options.accountToken)
|
|
265
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
265
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
266
266
|
contentType: "application/json",
|
|
267
267
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
268
268
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -308,7 +308,7 @@ class Batch {
|
|
|
308
308
|
method: "GET",
|
|
309
309
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
310
310
|
? yield core.Supplier.get(this._options.accountToken)
|
|
311
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
311
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
312
312
|
contentType: "application/json",
|
|
313
313
|
responseType: "streaming",
|
|
314
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -363,7 +363,7 @@ class Batch {
|
|
|
363
363
|
method: "POST",
|
|
364
364
|
headers: Object.assign({ "X-Account-Token": (yield core.Supplier.get(this._options.accountToken)) != null
|
|
365
365
|
? yield core.Supplier.get(this._options.accountToken)
|
|
366
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.
|
|
366
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "hume", "X-Fern-SDK-Version": "0.5.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
367
367
|
contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
|
|
368
368
|
body: _request,
|
|
369
369
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|