vellum-ai 0.1.9 → 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 (73) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +14 -8
  3. package/api/resources/deployments/client/Client.js +2 -2
  4. package/api/resources/documentIndexes/client/Client.js +2 -2
  5. package/api/resources/documents/client/Client.js +4 -4
  6. package/api/resources/modelVersions/client/Client.js +1 -1
  7. package/api/resources/registeredPrompts/client/Client.js +1 -1
  8. package/api/resources/sandboxes/client/Client.js +2 -2
  9. package/api/resources/testSuites/client/Client.js +2 -2
  10. package/api/types/FulfilledFunctionCall.d.ts +11 -0
  11. package/api/types/FulfilledFunctionCall.js +5 -0
  12. package/api/types/FunctionCall.d.ts +13 -0
  13. package/api/types/FunctionCall.js +5 -0
  14. package/api/types/FunctionCallVariableValue.d.ts +7 -0
  15. package/api/types/FunctionCallVariableValue.js +5 -0
  16. package/api/types/PromptOutput.d.ts +4 -1
  17. package/api/types/RejectedFunctionCall.d.ts +12 -0
  18. package/api/types/RejectedFunctionCall.js +5 -0
  19. package/api/types/VellumVariableType.d.ts +3 -1
  20. package/api/types/VellumVariableType.js +1 -0
  21. package/api/types/index.d.ts +4 -0
  22. package/api/types/index.js +4 -0
  23. package/dist/Client.d.ts +6 -0
  24. package/dist/Client.js +14 -8
  25. package/dist/api/resources/deployments/client/Client.js +2 -2
  26. package/dist/api/resources/documentIndexes/client/Client.js +2 -2
  27. package/dist/api/resources/documents/client/Client.js +4 -4
  28. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  29. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  30. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  31. package/dist/api/resources/testSuites/client/Client.js +2 -2
  32. package/dist/api/types/FulfilledFunctionCall.d.ts +11 -0
  33. package/dist/api/types/FulfilledFunctionCall.js +5 -0
  34. package/dist/api/types/FunctionCall.d.ts +13 -0
  35. package/dist/api/types/FunctionCall.js +5 -0
  36. package/dist/api/types/FunctionCallVariableValue.d.ts +7 -0
  37. package/dist/api/types/FunctionCallVariableValue.js +5 -0
  38. package/dist/api/types/PromptOutput.d.ts +4 -1
  39. package/dist/api/types/RejectedFunctionCall.d.ts +12 -0
  40. package/dist/api/types/RejectedFunctionCall.js +5 -0
  41. package/dist/api/types/VellumVariableType.d.ts +3 -1
  42. package/dist/api/types/VellumVariableType.js +1 -0
  43. package/dist/api/types/index.d.ts +4 -0
  44. package/dist/api/types/index.js +4 -0
  45. package/dist/serialization/types/FulfilledFunctionCall.d.ts +14 -0
  46. package/dist/serialization/types/FulfilledFunctionCall.js +35 -0
  47. package/dist/serialization/types/FunctionCall.d.ts +16 -0
  48. package/dist/serialization/types/FunctionCall.js +48 -0
  49. package/dist/serialization/types/FunctionCallVariableValue.d.ts +12 -0
  50. package/dist/serialization/types/FunctionCallVariableValue.js +42 -0
  51. package/dist/serialization/types/PromptOutput.d.ts +4 -1
  52. package/dist/serialization/types/PromptOutput.js +1 -0
  53. package/dist/serialization/types/RejectedFunctionCall.d.ts +14 -0
  54. package/dist/serialization/types/RejectedFunctionCall.js +44 -0
  55. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  56. package/dist/serialization/types/VellumVariableType.js +10 -1
  57. package/dist/serialization/types/index.d.ts +4 -0
  58. package/dist/serialization/types/index.js +4 -0
  59. package/package.json +1 -1
  60. package/serialization/types/FulfilledFunctionCall.d.ts +14 -0
  61. package/serialization/types/FulfilledFunctionCall.js +35 -0
  62. package/serialization/types/FunctionCall.d.ts +16 -0
  63. package/serialization/types/FunctionCall.js +48 -0
  64. package/serialization/types/FunctionCallVariableValue.d.ts +12 -0
  65. package/serialization/types/FunctionCallVariableValue.js +42 -0
  66. package/serialization/types/PromptOutput.d.ts +4 -1
  67. package/serialization/types/PromptOutput.js +1 -0
  68. package/serialization/types/RejectedFunctionCall.d.ts +14 -0
  69. package/serialization/types/RejectedFunctionCall.js +44 -0
  70. package/serialization/types/VellumVariableType.d.ts +1 -1
  71. package/serialization/types/VellumVariableType.js +10 -1
  72. package/serialization/types/index.d.ts +4 -0
  73. package/serialization/types/index.js +4 -0
package/Client.d.ts CHANGED
@@ -26,6 +26,9 @@ export declare class VellumClient {
26
26
  constructor(_options: VellumClient.Options);
27
27
  /**
28
28
  * Executes a deployed Prompt and returns the result.
29
+ *
30
+ * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
31
+ * In the meantime, we recommend still using the `/generate` endpoint for prompts with function calling.
29
32
  * @throws {@link Vellum.BadRequestError}
30
33
  * @throws {@link Vellum.ForbiddenError}
31
34
  * @throws {@link Vellum.NotFoundError}
@@ -34,6 +37,9 @@ export declare class VellumClient {
34
37
  executePrompt(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptResponse>;
35
38
  /**
36
39
  * Executes a deployed Prompt and streams back the results.
40
+ *
41
+ * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
42
+ * In the meantime, we recommend still using the `/generate-stream` endpoint for prompts with function calling
37
43
  */
38
44
  executePromptStream(request: Vellum.ExecutePromptStreamRequest, requestOptions?: VellumClient.RequestOptions): Promise<core.Stream<Vellum.ExecutePromptEvent>>;
39
45
  /**
package/Client.js CHANGED
@@ -58,6 +58,9 @@ class VellumClient {
58
58
  }
59
59
  /**
60
60
  * Executes a deployed Prompt and returns the result.
61
+ *
62
+ * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
63
+ * In the meantime, we recommend still using the `/generate` endpoint for prompts with function calling.
61
64
  * @throws {@link Vellum.BadRequestError}
62
65
  * @throws {@link Vellum.ForbiddenError}
63
66
  * @throws {@link Vellum.NotFoundError}
@@ -74,7 +77,7 @@ class VellumClient {
74
77
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
75
78
  "X-Fern-Language": "JavaScript",
76
79
  "X-Fern-SDK-Name": "vellum-ai",
77
- "X-Fern-SDK-Version": "v0.1.9",
80
+ "X-Fern-SDK-Version": "v0.1.11",
78
81
  },
79
82
  contentType: "application/json",
80
83
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -123,6 +126,9 @@ class VellumClient {
123
126
  }
124
127
  /**
125
128
  * Executes a deployed Prompt and streams back the results.
129
+ *
130
+ * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
131
+ * In the meantime, we recommend still using the `/generate-stream` endpoint for prompts with function calling
126
132
  */
127
133
  executePromptStream(request, requestOptions) {
128
134
  var _a;
@@ -135,7 +141,7 @@ class VellumClient {
135
141
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
136
142
  "X-Fern-Language": "JavaScript",
137
143
  "X-Fern-SDK-Name": "vellum-ai",
138
- "X-Fern-SDK-Version": "v0.1.9",
144
+ "X-Fern-SDK-Version": "v0.1.11",
139
145
  },
140
146
  contentType: "application/json",
141
147
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
@@ -205,7 +211,7 @@ class VellumClient {
205
211
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
206
212
  "X-Fern-Language": "JavaScript",
207
213
  "X-Fern-SDK-Name": "vellum-ai",
208
- "X-Fern-SDK-Version": "v0.1.9",
214
+ "X-Fern-SDK-Version": "v0.1.11",
209
215
  },
210
216
  contentType: "application/json",
211
217
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
@@ -289,7 +295,7 @@ class VellumClient {
289
295
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
290
296
  "X-Fern-Language": "JavaScript",
291
297
  "X-Fern-SDK-Name": "vellum-ai",
292
- "X-Fern-SDK-Version": "v0.1.9",
298
+ "X-Fern-SDK-Version": "v0.1.11",
293
299
  },
294
300
  contentType: "application/json",
295
301
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -352,7 +358,7 @@ class VellumClient {
352
358
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
353
359
  "X-Fern-Language": "JavaScript",
354
360
  "X-Fern-SDK-Name": "vellum-ai",
355
- "X-Fern-SDK-Version": "v0.1.9",
361
+ "X-Fern-SDK-Version": "v0.1.11",
356
362
  },
357
363
  contentType: "application/json",
358
364
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -425,7 +431,7 @@ class VellumClient {
425
431
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
426
432
  "X-Fern-Language": "JavaScript",
427
433
  "X-Fern-SDK-Name": "vellum-ai",
428
- "X-Fern-SDK-Version": "v0.1.9",
434
+ "X-Fern-SDK-Version": "v0.1.11",
429
435
  },
430
436
  contentType: "application/json",
431
437
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -494,7 +500,7 @@ class VellumClient {
494
500
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
495
501
  "X-Fern-Language": "JavaScript",
496
502
  "X-Fern-SDK-Name": "vellum-ai",
497
- "X-Fern-SDK-Version": "v0.1.9",
503
+ "X-Fern-SDK-Version": "v0.1.11",
498
504
  },
499
505
  contentType: "application/json",
500
506
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
@@ -557,7 +563,7 @@ class VellumClient {
557
563
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
558
564
  "X-Fern-Language": "JavaScript",
559
565
  "X-Fern-SDK-Name": "vellum-ai",
560
- "X-Fern-SDK-Version": "v0.1.9",
566
+ "X-Fern-SDK-Version": "v0.1.11",
561
567
  },
562
568
  contentType: "application/json",
563
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.d.ts CHANGED
@@ -26,6 +26,9 @@ export declare class VellumClient {
26
26
  constructor(_options: VellumClient.Options);
27
27
  /**
28
28
  * Executes a deployed Prompt and returns the result.
29
+ *
30
+ * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
31
+ * In the meantime, we recommend still using the `/generate` endpoint for prompts with function calling.
29
32
  * @throws {@link Vellum.BadRequestError}
30
33
  * @throws {@link Vellum.ForbiddenError}
31
34
  * @throws {@link Vellum.NotFoundError}
@@ -34,6 +37,9 @@ export declare class VellumClient {
34
37
  executePrompt(request: Vellum.ExecutePromptRequest, requestOptions?: VellumClient.RequestOptions): Promise<Vellum.ExecutePromptResponse>;
35
38
  /**
36
39
  * Executes a deployed Prompt and streams back the results.
40
+ *
41
+ * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
42
+ * In the meantime, we recommend still using the `/generate-stream` endpoint for prompts with function calling
37
43
  */
38
44
  executePromptStream(request: Vellum.ExecutePromptStreamRequest, requestOptions?: VellumClient.RequestOptions): Promise<core.Stream<Vellum.ExecutePromptEvent>>;
39
45
  /**
package/dist/Client.js CHANGED
@@ -58,6 +58,9 @@ class VellumClient {
58
58
  }
59
59
  /**
60
60
  * Executes a deployed Prompt and returns the result.
61
+ *
62
+ * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
63
+ * In the meantime, we recommend still using the `/generate` endpoint for prompts with function calling.
61
64
  * @throws {@link Vellum.BadRequestError}
62
65
  * @throws {@link Vellum.ForbiddenError}
63
66
  * @throws {@link Vellum.NotFoundError}
@@ -74,7 +77,7 @@ class VellumClient {
74
77
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
75
78
  "X-Fern-Language": "JavaScript",
76
79
  "X-Fern-SDK-Name": "vellum-ai",
77
- "X-Fern-SDK-Version": "v0.1.9",
80
+ "X-Fern-SDK-Version": "v0.1.11",
78
81
  },
79
82
  contentType: "application/json",
80
83
  body: yield serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -123,6 +126,9 @@ class VellumClient {
123
126
  }
124
127
  /**
125
128
  * Executes a deployed Prompt and streams back the results.
129
+ *
130
+ * Note: This endpoint temporarily does not support prompts with function calling, support is coming soon.
131
+ * In the meantime, we recommend still using the `/generate-stream` endpoint for prompts with function calling
126
132
  */
127
133
  executePromptStream(request, requestOptions) {
128
134
  var _a;
@@ -135,7 +141,7 @@ class VellumClient {
135
141
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
136
142
  "X-Fern-Language": "JavaScript",
137
143
  "X-Fern-SDK-Name": "vellum-ai",
138
- "X-Fern-SDK-Version": "v0.1.9",
144
+ "X-Fern-SDK-Version": "v0.1.11",
139
145
  },
140
146
  contentType: "application/json",
141
147
  body: yield serializers.ExecutePromptStreamRequest.jsonOrThrow(request, {
@@ -205,7 +211,7 @@ class VellumClient {
205
211
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
206
212
  "X-Fern-Language": "JavaScript",
207
213
  "X-Fern-SDK-Name": "vellum-ai",
208
- "X-Fern-SDK-Version": "v0.1.9",
214
+ "X-Fern-SDK-Version": "v0.1.11",
209
215
  },
210
216
  contentType: "application/json",
211
217
  body: yield serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, {
@@ -289,7 +295,7 @@ class VellumClient {
289
295
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
290
296
  "X-Fern-Language": "JavaScript",
291
297
  "X-Fern-SDK-Name": "vellum-ai",
292
- "X-Fern-SDK-Version": "v0.1.9",
298
+ "X-Fern-SDK-Version": "v0.1.11",
293
299
  },
294
300
  contentType: "application/json",
295
301
  body: yield serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -352,7 +358,7 @@ class VellumClient {
352
358
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
353
359
  "X-Fern-Language": "JavaScript",
354
360
  "X-Fern-SDK-Name": "vellum-ai",
355
- "X-Fern-SDK-Version": "v0.1.9",
361
+ "X-Fern-SDK-Version": "v0.1.11",
356
362
  },
357
363
  contentType: "application/json",
358
364
  body: yield serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -425,7 +431,7 @@ class VellumClient {
425
431
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
426
432
  "X-Fern-Language": "JavaScript",
427
433
  "X-Fern-SDK-Name": "vellum-ai",
428
- "X-Fern-SDK-Version": "v0.1.9",
434
+ "X-Fern-SDK-Version": "v0.1.11",
429
435
  },
430
436
  contentType: "application/json",
431
437
  body: yield serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -494,7 +500,7 @@ class VellumClient {
494
500
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
495
501
  "X-Fern-Language": "JavaScript",
496
502
  "X-Fern-SDK-Name": "vellum-ai",
497
- "X-Fern-SDK-Version": "v0.1.9",
503
+ "X-Fern-SDK-Version": "v0.1.11",
498
504
  },
499
505
  contentType: "application/json",
500
506
  body: yield serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, {
@@ -557,7 +563,7 @@ class VellumClient {
557
563
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
558
564
  "X-Fern-Language": "JavaScript",
559
565
  "X-Fern-SDK-Name": "vellum-ai",
560
- "X-Fern-SDK-Version": "v0.1.9",
566
+ "X-Fern-SDK-Version": "v0.1.11",
561
567
  },
562
568
  contentType: "application/json",
563
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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.9",
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,