vellum-ai 0.1.10 → 0.1.11

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.
Files changed (71) hide show
  1. package/Client.js +8 -8
  2. package/api/resources/deployments/client/Client.js +2 -2
  3. package/api/resources/documentIndexes/client/Client.js +2 -2
  4. package/api/resources/documents/client/Client.js +4 -4
  5. package/api/resources/modelVersions/client/Client.js +1 -1
  6. package/api/resources/registeredPrompts/client/Client.js +1 -1
  7. package/api/resources/sandboxes/client/Client.js +2 -2
  8. package/api/resources/testSuites/client/Client.js +2 -2
  9. package/api/types/FulfilledFunctionCall.d.ts +11 -0
  10. package/api/types/FulfilledFunctionCall.js +5 -0
  11. package/api/types/FunctionCall.d.ts +13 -0
  12. package/api/types/FunctionCall.js +5 -0
  13. package/api/types/FunctionCallVariableValue.d.ts +7 -0
  14. package/api/types/FunctionCallVariableValue.js +5 -0
  15. package/api/types/PromptOutput.d.ts +4 -1
  16. package/api/types/RejectedFunctionCall.d.ts +12 -0
  17. package/api/types/RejectedFunctionCall.js +5 -0
  18. package/api/types/VellumVariableType.d.ts +3 -1
  19. package/api/types/VellumVariableType.js +1 -0
  20. package/api/types/index.d.ts +4 -0
  21. package/api/types/index.js +4 -0
  22. package/dist/Client.js +8 -8
  23. package/dist/api/resources/deployments/client/Client.js +2 -2
  24. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  25. package/dist/api/resources/documents/client/Client.js +4 -4
  26. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  27. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  28. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  29. package/dist/api/resources/testSuites/client/Client.js +2 -2
  30. package/dist/api/types/FulfilledFunctionCall.d.ts +11 -0
  31. package/dist/api/types/FulfilledFunctionCall.js +5 -0
  32. package/dist/api/types/FunctionCall.d.ts +13 -0
  33. package/dist/api/types/FunctionCall.js +5 -0
  34. package/dist/api/types/FunctionCallVariableValue.d.ts +7 -0
  35. package/dist/api/types/FunctionCallVariableValue.js +5 -0
  36. package/dist/api/types/PromptOutput.d.ts +4 -1
  37. package/dist/api/types/RejectedFunctionCall.d.ts +12 -0
  38. package/dist/api/types/RejectedFunctionCall.js +5 -0
  39. package/dist/api/types/VellumVariableType.d.ts +3 -1
  40. package/dist/api/types/VellumVariableType.js +1 -0
  41. package/dist/api/types/index.d.ts +4 -0
  42. package/dist/api/types/index.js +4 -0
  43. package/dist/serialization/types/FulfilledFunctionCall.d.ts +14 -0
  44. package/dist/serialization/types/FulfilledFunctionCall.js +35 -0
  45. package/dist/serialization/types/FunctionCall.d.ts +16 -0
  46. package/dist/serialization/types/FunctionCall.js +48 -0
  47. package/dist/serialization/types/FunctionCallVariableValue.d.ts +12 -0
  48. package/dist/serialization/types/FunctionCallVariableValue.js +42 -0
  49. package/dist/serialization/types/PromptOutput.d.ts +4 -1
  50. package/dist/serialization/types/PromptOutput.js +1 -0
  51. package/dist/serialization/types/RejectedFunctionCall.d.ts +14 -0
  52. package/dist/serialization/types/RejectedFunctionCall.js +44 -0
  53. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  54. package/dist/serialization/types/VellumVariableType.js +10 -1
  55. package/dist/serialization/types/index.d.ts +4 -0
  56. package/dist/serialization/types/index.js +4 -0
  57. package/package.json +1 -1
  58. package/serialization/types/FulfilledFunctionCall.d.ts +14 -0
  59. package/serialization/types/FulfilledFunctionCall.js +35 -0
  60. package/serialization/types/FunctionCall.d.ts +16 -0
  61. package/serialization/types/FunctionCall.js +48 -0
  62. package/serialization/types/FunctionCallVariableValue.d.ts +12 -0
  63. package/serialization/types/FunctionCallVariableValue.js +42 -0
  64. package/serialization/types/PromptOutput.d.ts +4 -1
  65. package/serialization/types/PromptOutput.js +1 -0
  66. package/serialization/types/RejectedFunctionCall.d.ts +14 -0
  67. package/serialization/types/RejectedFunctionCall.js +44 -0
  68. package/serialization/types/VellumVariableType.d.ts +1 -1
  69. package/serialization/types/VellumVariableType.js +10 -1
  70. package/serialization/types/index.d.ts +4 -0
  71. package/serialization/types/index.js +4 -0
package/Client.js CHANGED
@@ -77,7 +77,7 @@ class VellumClient {
77
77
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
78
78
  "X-Fern-Language": "JavaScript",
79
79
  "X-Fern-SDK-Name": "vellum-ai",
80
- "X-Fern-SDK-Version": "v0.1.10",
80
+ "X-Fern-SDK-Version": "v0.1.11",
81
81
  },
82
82
  contentType: "application/json",
83
83
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -141,7 +141,7 @@ class VellumClient {
141
141
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "vellum-ai",
144
- "X-Fern-SDK-Version": "v0.1.10",
144
+ "X-Fern-SDK-Version": "v0.1.11",
145
145
  },
146
146
  contentType: "application/json",
147
147
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
@@ -211,7 +211,7 @@ class VellumClient {
211
211
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
212
212
  "X-Fern-Language": "JavaScript",
213
213
  "X-Fern-SDK-Name": "vellum-ai",
214
- "X-Fern-SDK-Version": "v0.1.10",
214
+ "X-Fern-SDK-Version": "v0.1.11",
215
215
  },
216
216
  contentType: "application/json",
217
217
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
@@ -295,7 +295,7 @@ class VellumClient {
295
295
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
296
296
  "X-Fern-Language": "JavaScript",
297
297
  "X-Fern-SDK-Name": "vellum-ai",
298
- "X-Fern-SDK-Version": "v0.1.10",
298
+ "X-Fern-SDK-Version": "v0.1.11",
299
299
  },
300
300
  contentType: "application/json",
301
301
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -358,7 +358,7 @@ class VellumClient {
358
358
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
359
359
  "X-Fern-Language": "JavaScript",
360
360
  "X-Fern-SDK-Name": "vellum-ai",
361
- "X-Fern-SDK-Version": "v0.1.10",
361
+ "X-Fern-SDK-Version": "v0.1.11",
362
362
  },
363
363
  contentType: "application/json",
364
364
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -431,7 +431,7 @@ class VellumClient {
431
431
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
432
432
  "X-Fern-Language": "JavaScript",
433
433
  "X-Fern-SDK-Name": "vellum-ai",
434
- "X-Fern-SDK-Version": "v0.1.10",
434
+ "X-Fern-SDK-Version": "v0.1.11",
435
435
  },
436
436
  contentType: "application/json",
437
437
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -500,7 +500,7 @@ class VellumClient {
500
500
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
501
501
  "X-Fern-Language": "JavaScript",
502
502
  "X-Fern-SDK-Name": "vellum-ai",
503
- "X-Fern-SDK-Version": "v0.1.10",
503
+ "X-Fern-SDK-Version": "v0.1.11",
504
504
  },
505
505
  contentType: "application/json",
506
506
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
@@ -563,7 +563,7 @@ class VellumClient {
563
563
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
564
564
  "X-Fern-Language": "JavaScript",
565
565
  "X-Fern-SDK-Name": "vellum-ai",
566
- "X-Fern-SDK-Version": "v0.1.10",
566
+ "X-Fern-SDK-Version": "v0.1.11",
567
567
  },
568
568
  contentType: "application/json",
569
569
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -62,7 +62,7 @@ class Deployments {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "v0.1.10",
65
+ "X-Fern-SDK-Version": "v0.1.11",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -108,7 +108,7 @@ class Deployments {
108
108
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
109
109
  "X-Fern-Language": "JavaScript",
110
110
  "X-Fern-SDK-Name": "vellum-ai",
111
- "X-Fern-SDK-Version": "v0.1.10",
111
+ "X-Fern-SDK-Version": "v0.1.11",
112
112
  },
113
113
  contentType: "application/json",
114
114
  body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
@@ -62,7 +62,7 @@ class DocumentIndexes {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "v0.1.10",
65
+ "X-Fern-SDK-Version": "v0.1.11",
66
66
  },
67
67
  contentType: "application/json",
68
68
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
@@ -114,7 +114,7 @@ class DocumentIndexes {
114
114
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
115
115
  "X-Fern-Language": "JavaScript",
116
116
  "X-Fern-SDK-Name": "vellum-ai",
117
- "X-Fern-SDK-Version": "v0.1.10",
117
+ "X-Fern-SDK-Version": "v0.1.11",
118
118
  },
119
119
  contentType: "application/json",
120
120
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -81,7 +81,7 @@ class Documents {
81
81
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
82
82
  "X-Fern-Language": "JavaScript",
83
83
  "X-Fern-SDK-Name": "vellum-ai",
84
- "X-Fern-SDK-Version": "v0.1.10",
84
+ "X-Fern-SDK-Version": "v0.1.11",
85
85
  },
86
86
  contentType: "application/json",
87
87
  queryParameters: _queryParams,
@@ -128,7 +128,7 @@ class Documents {
128
128
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
129
129
  "X-Fern-Language": "JavaScript",
130
130
  "X-Fern-SDK-Name": "vellum-ai",
131
- "X-Fern-SDK-Version": "v0.1.10",
131
+ "X-Fern-SDK-Version": "v0.1.11",
132
132
  },
133
133
  contentType: "application/json",
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -172,7 +172,7 @@ class Documents {
172
172
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
173
173
  "X-Fern-Language": "JavaScript",
174
174
  "X-Fern-SDK-Name": "vellum-ai",
175
- "X-Fern-SDK-Version": "v0.1.10",
175
+ "X-Fern-SDK-Version": "v0.1.11",
176
176
  },
177
177
  contentType: "application/json",
178
178
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
@@ -248,7 +248,7 @@ class Documents {
248
248
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
249
249
  "X-Fern-Language": "JavaScript",
250
250
  "X-Fern-SDK-Name": "vellum-ai",
251
- "X-Fern-SDK-Version": "v0.1.10",
251
+ "X-Fern-SDK-Version": "v0.1.11",
252
252
  },
253
253
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
254
254
  body: _request,
@@ -62,7 +62,7 @@ class ModelVersions {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "v0.1.10",
65
+ "X-Fern-SDK-Version": "v0.1.11",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -69,7 +69,7 @@ class RegisteredPrompts {
69
69
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "vellum-ai",
72
- "X-Fern-SDK-Version": "v0.1.10",
72
+ "X-Fern-SDK-Version": "v0.1.11",
73
73
  },
74
74
  contentType: "application/json",
75
75
  body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
@@ -68,7 +68,7 @@ class Sandboxes {
68
68
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "vellum-ai",
71
- "X-Fern-SDK-Version": "v0.1.10",
71
+ "X-Fern-SDK-Version": "v0.1.11",
72
72
  },
73
73
  contentType: "application/json",
74
74
  body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
@@ -123,7 +123,7 @@ class Sandboxes {
123
123
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "vellum-ai",
126
- "X-Fern-SDK-Version": "v0.1.10",
126
+ "X-Fern-SDK-Version": "v0.1.11",
127
127
  },
128
128
  contentType: "application/json",
129
129
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -74,7 +74,7 @@ class TestSuites {
74
74
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "vellum-ai",
77
- "X-Fern-SDK-Version": "v0.1.10",
77
+ "X-Fern-SDK-Version": "v0.1.11",
78
78
  },
79
79
  contentType: "application/json",
80
80
  body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
@@ -129,7 +129,7 @@ class TestSuites {
129
129
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
130
130
  "X-Fern-Language": "JavaScript",
131
131
  "X-Fern-SDK-Name": "vellum-ai",
132
- "X-Fern-SDK-Version": "v0.1.10",
132
+ "X-Fern-SDK-Version": "v0.1.11",
133
133
  },
134
134
  contentType: "application/json",
135
135
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The final resolved function call value.
6
+ */
7
+ export interface FulfilledFunctionCall {
8
+ arguments: Record<string, unknown>;
9
+ id?: string;
10
+ name: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type FunctionCall = Vellum.FunctionCall.Fulfilled | Vellum.FunctionCall.Rejected;
6
+ export declare namespace FunctionCall {
7
+ interface Fulfilled extends Vellum.FulfilledFunctionCall {
8
+ state: "FULFILLED";
9
+ }
10
+ interface Rejected extends Vellum.RejectedFunctionCall {
11
+ state: "REJECTED";
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface FunctionCallVariableValue {
6
+ value: Vellum.FunctionCall;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "..";
5
- export declare type PromptOutput = Vellum.PromptOutput.String | Vellum.PromptOutput.Json | Vellum.PromptOutput.Error_;
5
+ export declare type PromptOutput = Vellum.PromptOutput.String | Vellum.PromptOutput.Json | Vellum.PromptOutput.Error_ | Vellum.PromptOutput.FunctionCall;
6
6
  export declare namespace PromptOutput {
7
7
  interface String extends Vellum.StringVariableValue {
8
8
  type: "STRING";
@@ -13,4 +13,7 @@ export declare namespace PromptOutput {
13
13
  interface Error_ extends Vellum.ErrorVariableValue {
14
14
  type: "ERROR";
15
15
  }
16
+ interface FunctionCall extends Vellum.FunctionCallVariableValue {
17
+ type: "FUNCTION_CALL";
18
+ }
16
19
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ /**
6
+ * Returned if the function call failed to parse for some reason.
7
+ */
8
+ export interface RejectedFunctionCall {
9
+ error: Vellum.VellumError;
10
+ id?: string;
11
+ name: string;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,8 +9,9 @@
9
9
  * - `SEARCH_RESULTS` - SEARCH_RESULTS
10
10
  * - `ERROR` - ERROR
11
11
  * - `ARRAY` - ARRAY
12
+ * - `FUNCTION_CALL` - FUNCTION_CALL
12
13
  */
13
- export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY";
14
+ export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY" | "FUNCTION_CALL";
14
15
  export declare const VellumVariableType: {
15
16
  readonly String: "STRING";
16
17
  readonly Number: "NUMBER";
@@ -19,4 +20,5 @@ export declare const VellumVariableType: {
19
20
  readonly SearchResults: "SEARCH_RESULTS";
20
21
  readonly Error: "ERROR";
21
22
  readonly Array: "ARRAY";
23
+ readonly FunctionCall: "FUNCTION_CALL";
22
24
  };
@@ -12,4 +12,5 @@ exports.VellumVariableType = {
12
12
  SearchResults: "SEARCH_RESULTS",
13
13
  Error: "ERROR",
14
14
  Array: "ARRAY",
15
+ FunctionCall: "FUNCTION_CALL",
15
16
  };
@@ -37,7 +37,10 @@ export * from "./FinishReasonEnum";
37
37
  export * from "./FulfilledEnum";
38
38
  export * from "./FulfilledExecutePromptEvent";
39
39
  export * from "./FulfilledExecutePromptResponse";
40
+ export * from "./FulfilledFunctionCall";
40
41
  export * from "./FulfilledPromptExecutionMeta";
42
+ export * from "./FunctionCall";
43
+ export * from "./FunctionCallVariableValue";
41
44
  export * from "./GenerateErrorResponse";
42
45
  export * from "./GenerateOptionsRequest";
43
46
  export * from "./GenerateRequest";
@@ -111,6 +114,7 @@ export * from "./RegisteredPromptSandboxSnapshot";
111
114
  export * from "./RejectedEnum";
112
115
  export * from "./RejectedExecutePromptEvent";
113
116
  export * from "./RejectedExecutePromptResponse";
117
+ export * from "./RejectedFunctionCall";
114
118
  export * from "./RejectedPromptExecutionMeta";
115
119
  export * from "./SandboxMetricInputParams";
116
120
  export * from "./SandboxMetricInputParamsRequest";
@@ -53,7 +53,10 @@ __exportStar(require("./FinishReasonEnum"), exports);
53
53
  __exportStar(require("./FulfilledEnum"), exports);
54
54
  __exportStar(require("./FulfilledExecutePromptEvent"), exports);
55
55
  __exportStar(require("./FulfilledExecutePromptResponse"), exports);
56
+ __exportStar(require("./FulfilledFunctionCall"), exports);
56
57
  __exportStar(require("./FulfilledPromptExecutionMeta"), exports);
58
+ __exportStar(require("./FunctionCall"), exports);
59
+ __exportStar(require("./FunctionCallVariableValue"), exports);
57
60
  __exportStar(require("./GenerateErrorResponse"), exports);
58
61
  __exportStar(require("./GenerateOptionsRequest"), exports);
59
62
  __exportStar(require("./GenerateRequest"), exports);
@@ -127,6 +130,7 @@ __exportStar(require("./RegisteredPromptSandboxSnapshot"), exports);
127
130
  __exportStar(require("./RejectedEnum"), exports);
128
131
  __exportStar(require("./RejectedExecutePromptEvent"), exports);
129
132
  __exportStar(require("./RejectedExecutePromptResponse"), exports);
133
+ __exportStar(require("./RejectedFunctionCall"), exports);
130
134
  __exportStar(require("./RejectedPromptExecutionMeta"), exports);
131
135
  __exportStar(require("./SandboxMetricInputParams"), exports);
132
136
  __exportStar(require("./SandboxMetricInputParamsRequest"), exports);
package/dist/Client.js CHANGED
@@ -77,7 +77,7 @@ class VellumClient {
77
77
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
78
78
  "X-Fern-Language": "JavaScript",
79
79
  "X-Fern-SDK-Name": "vellum-ai",
80
- "X-Fern-SDK-Version": "v0.1.10",
80
+ "X-Fern-SDK-Version": "v0.1.11",
81
81
  },
82
82
  contentType: "application/json",
83
83
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -141,7 +141,7 @@ class VellumClient {
141
141
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "vellum-ai",
144
- "X-Fern-SDK-Version": "v0.1.10",
144
+ "X-Fern-SDK-Version": "v0.1.11",
145
145
  },
146
146
  contentType: "application/json",
147
147
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
@@ -211,7 +211,7 @@ class VellumClient {
211
211
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
212
212
  "X-Fern-Language": "JavaScript",
213
213
  "X-Fern-SDK-Name": "vellum-ai",
214
- "X-Fern-SDK-Version": "v0.1.10",
214
+ "X-Fern-SDK-Version": "v0.1.11",
215
215
  },
216
216
  contentType: "application/json",
217
217
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
@@ -295,7 +295,7 @@ class VellumClient {
295
295
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
296
296
  "X-Fern-Language": "JavaScript",
297
297
  "X-Fern-SDK-Name": "vellum-ai",
298
- "X-Fern-SDK-Version": "v0.1.10",
298
+ "X-Fern-SDK-Version": "v0.1.11",
299
299
  },
300
300
  contentType: "application/json",
301
301
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -358,7 +358,7 @@ class VellumClient {
358
358
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
359
359
  "X-Fern-Language": "JavaScript",
360
360
  "X-Fern-SDK-Name": "vellum-ai",
361
- "X-Fern-SDK-Version": "v0.1.10",
361
+ "X-Fern-SDK-Version": "v0.1.11",
362
362
  },
363
363
  contentType: "application/json",
364
364
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -431,7 +431,7 @@ class VellumClient {
431
431
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
432
432
  "X-Fern-Language": "JavaScript",
433
433
  "X-Fern-SDK-Name": "vellum-ai",
434
- "X-Fern-SDK-Version": "v0.1.10",
434
+ "X-Fern-SDK-Version": "v0.1.11",
435
435
  },
436
436
  contentType: "application/json",
437
437
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -500,7 +500,7 @@ class VellumClient {
500
500
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
501
501
  "X-Fern-Language": "JavaScript",
502
502
  "X-Fern-SDK-Name": "vellum-ai",
503
- "X-Fern-SDK-Version": "v0.1.10",
503
+ "X-Fern-SDK-Version": "v0.1.11",
504
504
  },
505
505
  contentType: "application/json",
506
506
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
@@ -563,7 +563,7 @@ class VellumClient {
563
563
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
564
564
  "X-Fern-Language": "JavaScript",
565
565
  "X-Fern-SDK-Name": "vellum-ai",
566
- "X-Fern-SDK-Version": "v0.1.10",
566
+ "X-Fern-SDK-Version": "v0.1.11",
567
567
  },
568
568
  contentType: "application/json",
569
569
  body: yield serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -62,7 +62,7 @@ class Deployments {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "v0.1.10",
65
+ "X-Fern-SDK-Version": "v0.1.11",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -108,7 +108,7 @@ class Deployments {
108
108
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
109
109
  "X-Fern-Language": "JavaScript",
110
110
  "X-Fern-SDK-Name": "vellum-ai",
111
- "X-Fern-SDK-Version": "v0.1.10",
111
+ "X-Fern-SDK-Version": "v0.1.11",
112
112
  },
113
113
  contentType: "application/json",
114
114
  body: yield serializers.DeploymentProviderPayloadRequest.jsonOrThrow(request, {
@@ -62,7 +62,7 @@ class DocumentIndexes {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "v0.1.10",
65
+ "X-Fern-SDK-Version": "v0.1.11",
66
66
  },
67
67
  contentType: "application/json",
68
68
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
@@ -114,7 +114,7 @@ class DocumentIndexes {
114
114
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
115
115
  "X-Fern-Language": "JavaScript",
116
116
  "X-Fern-SDK-Name": "vellum-ai",
117
- "X-Fern-SDK-Version": "v0.1.10",
117
+ "X-Fern-SDK-Version": "v0.1.11",
118
118
  },
119
119
  contentType: "application/json",
120
120
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -81,7 +81,7 @@ class Documents {
81
81
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
82
82
  "X-Fern-Language": "JavaScript",
83
83
  "X-Fern-SDK-Name": "vellum-ai",
84
- "X-Fern-SDK-Version": "v0.1.10",
84
+ "X-Fern-SDK-Version": "v0.1.11",
85
85
  },
86
86
  contentType: "application/json",
87
87
  queryParameters: _queryParams,
@@ -128,7 +128,7 @@ class Documents {
128
128
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
129
129
  "X-Fern-Language": "JavaScript",
130
130
  "X-Fern-SDK-Name": "vellum-ai",
131
- "X-Fern-SDK-Version": "v0.1.10",
131
+ "X-Fern-SDK-Version": "v0.1.11",
132
132
  },
133
133
  contentType: "application/json",
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -172,7 +172,7 @@ class Documents {
172
172
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
173
173
  "X-Fern-Language": "JavaScript",
174
174
  "X-Fern-SDK-Name": "vellum-ai",
175
- "X-Fern-SDK-Version": "v0.1.10",
175
+ "X-Fern-SDK-Version": "v0.1.11",
176
176
  },
177
177
  contentType: "application/json",
178
178
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
@@ -248,7 +248,7 @@ class Documents {
248
248
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
249
249
  "X-Fern-Language": "JavaScript",
250
250
  "X-Fern-SDK-Name": "vellum-ai",
251
- "X-Fern-SDK-Version": "v0.1.10",
251
+ "X-Fern-SDK-Version": "v0.1.11",
252
252
  },
253
253
  contentType: "multipart/form-data; boundary=" + _request.getBoundary(),
254
254
  body: _request,
@@ -62,7 +62,7 @@ class ModelVersions {
62
62
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "vellum-ai",
65
- "X-Fern-SDK-Version": "v0.1.10",
65
+ "X-Fern-SDK-Version": "v0.1.11",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -69,7 +69,7 @@ class RegisteredPrompts {
69
69
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "vellum-ai",
72
- "X-Fern-SDK-Version": "v0.1.10",
72
+ "X-Fern-SDK-Version": "v0.1.11",
73
73
  },
74
74
  contentType: "application/json",
75
75
  body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
@@ -68,7 +68,7 @@ class Sandboxes {
68
68
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "vellum-ai",
71
- "X-Fern-SDK-Version": "v0.1.10",
71
+ "X-Fern-SDK-Version": "v0.1.11",
72
72
  },
73
73
  contentType: "application/json",
74
74
  body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
@@ -123,7 +123,7 @@ class Sandboxes {
123
123
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
124
124
  "X-Fern-Language": "JavaScript",
125
125
  "X-Fern-SDK-Name": "vellum-ai",
126
- "X-Fern-SDK-Version": "v0.1.10",
126
+ "X-Fern-SDK-Version": "v0.1.11",
127
127
  },
128
128
  contentType: "application/json",
129
129
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -74,7 +74,7 @@ class TestSuites {
74
74
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "vellum-ai",
77
- "X-Fern-SDK-Version": "v0.1.10",
77
+ "X-Fern-SDK-Version": "v0.1.11",
78
78
  },
79
79
  contentType: "application/json",
80
80
  body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
@@ -129,7 +129,7 @@ class TestSuites {
129
129
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
130
130
  "X-Fern-Language": "JavaScript",
131
131
  "X-Fern-SDK-Name": "vellum-ai",
132
- "X-Fern-SDK-Version": "v0.1.10",
132
+ "X-Fern-SDK-Version": "v0.1.11",
133
133
  },
134
134
  contentType: "application/json",
135
135
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * The final resolved function call value.
6
+ */
7
+ export interface FulfilledFunctionCall {
8
+ arguments: Record<string, unknown>;
9
+ id?: string;
10
+ name: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type FunctionCall = Vellum.FunctionCall.Fulfilled | Vellum.FunctionCall.Rejected;
6
+ export declare namespace FunctionCall {
7
+ interface Fulfilled extends Vellum.FulfilledFunctionCall {
8
+ state: "FULFILLED";
9
+ }
10
+ interface Rejected extends Vellum.RejectedFunctionCall {
11
+ state: "REJECTED";
12
+ }
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface FunctionCallVariableValue {
6
+ value: Vellum.FunctionCall;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });