vellum-ai 0.0.6 → 0.0.8

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 (157) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +5 -0
  3. package/api/resources/documents/client/Client.d.ts +1 -1
  4. package/api/resources/documents/client/requests/{ListDocumentsRequest.d.ts → DocumentsListRequest.d.ts} +1 -1
  5. package/api/resources/documents/client/requests/index.d.ts +1 -1
  6. package/api/resources/index.d.ts +2 -0
  7. package/api/resources/index.js +3 -1
  8. package/api/resources/sandboxes/client/Client.d.ts +17 -0
  9. package/api/resources/sandboxes/client/Client.js +83 -0
  10. package/api/resources/sandboxes/client/index.d.ts +1 -0
  11. package/api/resources/sandboxes/client/index.js +17 -0
  12. package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +12 -0
  13. package/api/resources/sandboxes/client/requests/index.d.ts +1 -0
  14. package/api/resources/sandboxes/client/requests/index.js +2 -0
  15. package/api/resources/sandboxes/index.d.ts +1 -0
  16. package/api/resources/sandboxes/index.js +17 -0
  17. package/api/types/BlockTypeEnum.d.ts +2 -3
  18. package/api/types/BlockTypeEnum.js +1 -2
  19. package/api/types/ChatMessage.d.ts +8 -0
  20. package/api/types/ChatMessage.js +5 -0
  21. package/api/types/ModelVersionExecConfigRead.d.ts +2 -1
  22. package/api/types/ModelVersionSandboxSnapshot.d.ts +2 -0
  23. package/api/types/PromptTemplateBlock.d.ts +1 -0
  24. package/api/types/PromptTemplateBlockProperties.d.ts +1 -2
  25. package/api/types/SandboxInput.d.ts +10 -0
  26. package/api/types/SandboxInput.js +5 -0
  27. package/api/types/SandboxInputRequest.d.ts +10 -0
  28. package/api/types/SandboxInputRequest.js +5 -0
  29. package/api/types/SandboxMetricInputParams.d.ts +6 -0
  30. package/api/types/SandboxMetricInputParams.js +5 -0
  31. package/api/types/SandboxMetricInputParamsRequest.d.ts +6 -0
  32. package/api/types/SandboxMetricInputParamsRequest.js +5 -0
  33. package/api/types/SandboxScenario.d.ts +12 -0
  34. package/api/types/SandboxScenario.js +5 -0
  35. package/api/types/TypeEnum.d.ts +8 -0
  36. package/api/types/TypeEnum.js +10 -0
  37. package/api/types/index.d.ts +7 -0
  38. package/api/types/index.js +7 -0
  39. package/dist/Client.d.ts +3 -0
  40. package/dist/Client.js +5 -0
  41. package/dist/api/resources/documents/client/Client.d.ts +1 -1
  42. package/dist/api/resources/documents/client/requests/{ListDocumentsRequest.d.ts → DocumentsListRequest.d.ts} +1 -1
  43. package/dist/api/resources/documents/client/requests/DocumentsListRequest.js +5 -0
  44. package/dist/api/resources/documents/client/requests/index.d.ts +1 -1
  45. package/dist/api/resources/index.d.ts +2 -0
  46. package/dist/api/resources/index.js +3 -1
  47. package/dist/api/resources/sandboxes/client/Client.d.ts +17 -0
  48. package/dist/api/resources/sandboxes/client/Client.js +83 -0
  49. package/dist/api/resources/sandboxes/client/index.d.ts +1 -0
  50. package/dist/api/resources/sandboxes/client/index.js +17 -0
  51. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +12 -0
  52. package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +5 -0
  53. package/dist/api/resources/sandboxes/client/requests/index.d.ts +1 -0
  54. package/dist/api/resources/sandboxes/client/requests/index.js +2 -0
  55. package/dist/api/resources/sandboxes/index.d.ts +1 -0
  56. package/dist/api/resources/sandboxes/index.js +17 -0
  57. package/dist/api/types/BlockTypeEnum.d.ts +2 -3
  58. package/dist/api/types/BlockTypeEnum.js +1 -2
  59. package/dist/api/types/ChatMessage.d.ts +8 -0
  60. package/dist/api/types/ChatMessage.js +5 -0
  61. package/dist/api/types/ModelVersionExecConfigRead.d.ts +2 -1
  62. package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +2 -0
  63. package/dist/api/types/PromptTemplateBlock.d.ts +1 -0
  64. package/dist/api/types/PromptTemplateBlockProperties.d.ts +1 -2
  65. package/dist/api/types/SandboxInput.d.ts +10 -0
  66. package/dist/api/types/SandboxInput.js +5 -0
  67. package/dist/api/types/SandboxInputRequest.d.ts +10 -0
  68. package/dist/api/types/SandboxInputRequest.js +5 -0
  69. package/dist/api/types/SandboxMetricInputParams.d.ts +6 -0
  70. package/dist/api/types/SandboxMetricInputParams.js +5 -0
  71. package/dist/api/types/SandboxMetricInputParamsRequest.d.ts +6 -0
  72. package/dist/api/types/SandboxMetricInputParamsRequest.js +5 -0
  73. package/dist/api/types/SandboxScenario.d.ts +12 -0
  74. package/dist/api/types/SandboxScenario.js +5 -0
  75. package/dist/api/types/TypeEnum.d.ts +8 -0
  76. package/dist/api/types/TypeEnum.js +10 -0
  77. package/dist/api/types/index.d.ts +7 -0
  78. package/dist/api/types/index.js +7 -0
  79. package/dist/serialization/index.d.ts +1 -0
  80. package/dist/serialization/index.js +1 -0
  81. package/dist/serialization/resources/index.d.ts +2 -0
  82. package/dist/serialization/resources/index.js +31 -0
  83. package/dist/serialization/resources/sandboxes/client/index.d.ts +1 -0
  84. package/dist/serialization/resources/sandboxes/client/index.js +17 -0
  85. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +15 -0
  86. package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +38 -0
  87. package/dist/serialization/resources/sandboxes/client/requests/index.d.ts +1 -0
  88. package/dist/serialization/resources/sandboxes/client/requests/index.js +5 -0
  89. package/dist/serialization/resources/sandboxes/index.d.ts +1 -0
  90. package/dist/serialization/resources/sandboxes/index.js +17 -0
  91. package/dist/serialization/types/BlockTypeEnum.d.ts +1 -1
  92. package/dist/serialization/types/BlockTypeEnum.js +1 -1
  93. package/dist/serialization/types/ChatMessage.d.ts +13 -0
  94. package/dist/serialization/types/ChatMessage.js +34 -0
  95. package/dist/serialization/types/ModelVersionExecConfigRead.d.ts +2 -1
  96. package/dist/serialization/types/ModelVersionExecConfigRead.js +2 -1
  97. package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -0
  98. package/dist/serialization/types/ModelVersionSandboxSnapshot.js +1 -0
  99. package/dist/serialization/types/PromptTemplateBlock.d.ts +1 -0
  100. package/dist/serialization/types/PromptTemplateBlock.js +1 -0
  101. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +1 -2
  102. package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -2
  103. package/dist/serialization/types/SandboxInput.d.ts +15 -0
  104. package/dist/serialization/types/SandboxInput.js +38 -0
  105. package/dist/serialization/types/SandboxInputRequest.d.ts +15 -0
  106. package/dist/serialization/types/SandboxInputRequest.js +38 -0
  107. package/dist/serialization/types/SandboxMetricInputParams.d.ts +12 -0
  108. package/dist/serialization/types/SandboxMetricInputParams.js +33 -0
  109. package/dist/serialization/types/SandboxMetricInputParamsRequest.d.ts +12 -0
  110. package/dist/serialization/types/SandboxMetricInputParamsRequest.js +33 -0
  111. package/dist/serialization/types/SandboxScenario.d.ts +15 -0
  112. package/dist/serialization/types/SandboxScenario.js +36 -0
  113. package/dist/serialization/types/TypeEnum.d.ts +10 -0
  114. package/dist/serialization/types/TypeEnum.js +34 -0
  115. package/dist/serialization/types/index.d.ts +7 -0
  116. package/dist/serialization/types/index.js +7 -0
  117. package/package.json +1 -1
  118. package/serialization/index.d.ts +1 -0
  119. package/serialization/index.js +1 -0
  120. package/serialization/resources/index.d.ts +2 -0
  121. package/serialization/resources/index.js +31 -0
  122. package/serialization/resources/sandboxes/client/index.d.ts +1 -0
  123. package/serialization/resources/sandboxes/client/index.js +17 -0
  124. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +15 -0
  125. package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +38 -0
  126. package/serialization/resources/sandboxes/client/requests/index.d.ts +1 -0
  127. package/serialization/resources/sandboxes/client/requests/index.js +5 -0
  128. package/serialization/resources/sandboxes/index.d.ts +1 -0
  129. package/serialization/resources/sandboxes/index.js +17 -0
  130. package/serialization/types/BlockTypeEnum.d.ts +1 -1
  131. package/serialization/types/BlockTypeEnum.js +1 -1
  132. package/serialization/types/ChatMessage.d.ts +13 -0
  133. package/serialization/types/ChatMessage.js +34 -0
  134. package/serialization/types/ModelVersionExecConfigRead.d.ts +2 -1
  135. package/serialization/types/ModelVersionExecConfigRead.js +2 -1
  136. package/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -0
  137. package/serialization/types/ModelVersionSandboxSnapshot.js +1 -0
  138. package/serialization/types/PromptTemplateBlock.d.ts +1 -0
  139. package/serialization/types/PromptTemplateBlock.js +1 -0
  140. package/serialization/types/PromptTemplateBlockProperties.d.ts +1 -2
  141. package/serialization/types/PromptTemplateBlockProperties.js +1 -2
  142. package/serialization/types/SandboxInput.d.ts +15 -0
  143. package/serialization/types/SandboxInput.js +38 -0
  144. package/serialization/types/SandboxInputRequest.d.ts +15 -0
  145. package/serialization/types/SandboxInputRequest.js +38 -0
  146. package/serialization/types/SandboxMetricInputParams.d.ts +12 -0
  147. package/serialization/types/SandboxMetricInputParams.js +33 -0
  148. package/serialization/types/SandboxMetricInputParamsRequest.d.ts +12 -0
  149. package/serialization/types/SandboxMetricInputParamsRequest.js +33 -0
  150. package/serialization/types/SandboxScenario.d.ts +15 -0
  151. package/serialization/types/SandboxScenario.js +36 -0
  152. package/serialization/types/TypeEnum.d.ts +10 -0
  153. package/serialization/types/TypeEnum.js +34 -0
  154. package/serialization/types/index.d.ts +7 -0
  155. package/serialization/types/index.js +7 -0
  156. /package/api/resources/documents/client/requests/{ListDocumentsRequest.js → DocumentsListRequest.js} +0 -0
  157. /package/{dist/api/resources/documents/client/requests/ListDocumentsRequest.js → api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js} +0 -0
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ChatMessage = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ChatMessage = core.serialization.object({
32
+ text: core.serialization.string(),
33
+ role: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole),
34
+ });
@@ -9,7 +9,8 @@ export declare namespace ModelVersionExecConfigRead {
9
9
  interface Raw {
10
10
  parameters: serializers.ModelVersionExecConfigParameters.Raw;
11
11
  input_variables: string[];
12
- prompt_template: string;
12
+ prompt_template?: string | null;
13
13
  prompt_block_data?: serializers.PromptTemplateBlockData.Raw | null;
14
+ prompt_syntax_version: number;
14
15
  }
15
16
  }
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
31
31
  exports.ModelVersionExecConfigRead = core.serialization.object({
32
32
  parameters: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionExecConfigParameters),
33
33
  inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.string())),
34
- promptTemplate: core.serialization.property("prompt_template", core.serialization.string()),
34
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
35
35
  promptBlockData: core.serialization.property("prompt_block_data", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockData).optional()),
36
+ promptSyntaxVersion: core.serialization.property("prompt_syntax_version", core.serialization.number()),
36
37
  });
@@ -9,5 +9,6 @@ export declare namespace ModelVersionSandboxSnapshot {
9
9
  interface Raw {
10
10
  id: string;
11
11
  prompt_index: number;
12
+ prompt_id?: string | null;
12
13
  }
13
14
  }
@@ -31,4 +31,5 @@ const core = __importStar(require("../../core"));
31
31
  exports.ModelVersionSandboxSnapshot = core.serialization.object({
32
32
  id: core.serialization.string(),
33
33
  promptIndex: core.serialization.property("prompt_index", core.serialization.number()),
34
+ promptId: core.serialization.property("prompt_id", core.serialization.string().optional()),
34
35
  });
@@ -7,6 +7,7 @@ import * as core from "../../core";
7
7
  export declare const PromptTemplateBlock: core.serialization.ObjectSchema<serializers.PromptTemplateBlock.Raw, Vellum.PromptTemplateBlock>;
8
8
  export declare namespace PromptTemplateBlock {
9
9
  interface Raw {
10
+ id: string;
10
11
  block_type: serializers.BlockTypeEnum.Raw;
11
12
  properties: serializers.PromptTemplateBlockProperties.Raw;
12
13
  }
@@ -29,6 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.PromptTemplateBlock = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.PromptTemplateBlock = core.serialization.object({
32
+ id: core.serialization.string(),
32
33
  blockType: core.serialization.property("block_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).BlockTypeEnum)),
33
34
  properties: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockProperties),
34
35
  });
@@ -8,8 +8,7 @@ export declare const PromptTemplateBlockProperties: core.serialization.ObjectSch
8
8
  export declare namespace PromptTemplateBlockProperties {
9
9
  interface Raw {
10
10
  chat_role?: serializers.ChatMessageRole.Raw | null;
11
- text?: string | null;
12
- variable_name?: string | null;
11
+ template?: string | null;
13
12
  blocks?: Record<string, unknown>[] | null;
14
13
  }
15
14
  }
@@ -30,8 +30,7 @@ exports.PromptTemplateBlockProperties = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.PromptTemplateBlockProperties = core.serialization.object({
32
32
  chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole).optional()),
33
- text: core.serialization.string().optional(),
34
- variableName: core.serialization.property("variable_name", core.serialization.string().optional()),
33
+ template: core.serialization.string().optional(),
35
34
  blocks: core.serialization
36
35
  .list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
37
36
  .optional(),
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const SandboxInput: core.serialization.ObjectSchema<serializers.SandboxInput.Raw, Vellum.SandboxInput>;
8
+ export declare namespace SandboxInput {
9
+ interface Raw {
10
+ key: string;
11
+ type?: serializers.TypeEnum.Raw | null;
12
+ value?: string | null;
13
+ chat_history?: serializers.ChatMessage.Raw[] | null;
14
+ }
15
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SandboxInput = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SandboxInput = core.serialization.object({
32
+ key: core.serialization.string(),
33
+ type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TypeEnum).optional(),
34
+ value: core.serialization.string().optional(),
35
+ chatHistory: core.serialization.property("chat_history", core.serialization
36
+ .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessage))
37
+ .optional()),
38
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const SandboxInputRequest: core.serialization.ObjectSchema<serializers.SandboxInputRequest.Raw, Vellum.SandboxInputRequest>;
8
+ export declare namespace SandboxInputRequest {
9
+ interface Raw {
10
+ key: string;
11
+ type?: serializers.TypeEnum.Raw | null;
12
+ value?: string | null;
13
+ chat_history?: serializers.ChatMessageRequest.Raw[] | null;
14
+ }
15
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SandboxInputRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SandboxInputRequest = core.serialization.object({
32
+ key: core.serialization.string(),
33
+ type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TypeEnum).optional(),
34
+ value: core.serialization.string().optional(),
35
+ chatHistory: core.serialization.property("chat_history", core.serialization
36
+ .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRequest))
37
+ .optional()),
38
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const SandboxMetricInputParams: core.serialization.ObjectSchema<serializers.SandboxMetricInputParams.Raw, Vellum.SandboxMetricInputParams>;
8
+ export declare namespace SandboxMetricInputParams {
9
+ interface Raw {
10
+ params?: Record<string, unknown> | null;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SandboxMetricInputParams = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SandboxMetricInputParams = core.serialization.object({
32
+ params: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
33
+ });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const SandboxMetricInputParamsRequest: core.serialization.ObjectSchema<serializers.SandboxMetricInputParamsRequest.Raw, Vellum.SandboxMetricInputParamsRequest>;
8
+ export declare namespace SandboxMetricInputParamsRequest {
9
+ interface Raw {
10
+ params?: Record<string, unknown> | null;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SandboxMetricInputParamsRequest = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SandboxMetricInputParamsRequest = core.serialization.object({
32
+ params: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
33
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const SandboxScenario: core.serialization.ObjectSchema<serializers.SandboxScenario.Raw, Vellum.SandboxScenario>;
8
+ export declare namespace SandboxScenario {
9
+ interface Raw {
10
+ label?: string | null;
11
+ inputs: serializers.SandboxInput.Raw[];
12
+ id: string;
13
+ metric_input_params: serializers.SandboxMetricInputParams.Raw;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SandboxScenario = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.SandboxScenario = core.serialization.object({
32
+ label: core.serialization.string().optional(),
33
+ inputs: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SandboxInput)),
34
+ id: core.serialization.string(),
35
+ metricInputParams: core.serialization.property("metric_input_params", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SandboxMetricInputParams)),
36
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const TypeEnum: core.serialization.Schema<serializers.TypeEnum.Raw, Vellum.TypeEnum>;
8
+ export declare namespace TypeEnum {
9
+ type Raw = "TEXT" | "CHAT_HISTORY";
10
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.TypeEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.TypeEnum = core.serialization.enum_([
32
+ "TEXT",
33
+ "CHAT_HISTORY",
34
+ ]);
@@ -1,4 +1,5 @@
1
1
  export * from "./BlockTypeEnum";
2
+ export * from "./ChatMessage";
2
3
  export * from "./ChatMessageRequest";
3
4
  export * from "./ChatMessageRole";
4
5
  export * from "./Document";
@@ -29,6 +30,11 @@ export * from "./PromptTemplateBlock";
29
30
  export * from "./PromptTemplateBlockData";
30
31
  export * from "./PromptTemplateBlockProperties";
31
32
  export * from "./ProviderEnum";
33
+ export * from "./SandboxInput";
34
+ export * from "./SandboxInputRequest";
35
+ export * from "./SandboxMetricInputParams";
36
+ export * from "./SandboxMetricInputParamsRequest";
37
+ export * from "./SandboxScenario";
32
38
  export * from "./SearchErrorResponse";
33
39
  export * from "./SearchFiltersRequest";
34
40
  export * from "./SearchRequestOptionsRequest";
@@ -40,5 +46,6 @@ export * from "./SlimDocument";
40
46
  export * from "./SlimDocumentStatusEnum";
41
47
  export * from "./SubmitCompletionActualRequest";
42
48
  export * from "./SubmitCompletionActualsErrorResponse";
49
+ export * from "./TypeEnum";
43
50
  export * from "./UploadDocumentErrorResponse";
44
51
  export * from "./UploadDocumentResponse";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BlockTypeEnum"), exports);
18
+ __exportStar(require("./ChatMessage"), exports);
18
19
  __exportStar(require("./ChatMessageRequest"), exports);
19
20
  __exportStar(require("./ChatMessageRole"), exports);
20
21
  __exportStar(require("./Document"), exports);
@@ -45,6 +46,11 @@ __exportStar(require("./PromptTemplateBlock"), exports);
45
46
  __exportStar(require("./PromptTemplateBlockData"), exports);
46
47
  __exportStar(require("./PromptTemplateBlockProperties"), exports);
47
48
  __exportStar(require("./ProviderEnum"), exports);
49
+ __exportStar(require("./SandboxInput"), exports);
50
+ __exportStar(require("./SandboxInputRequest"), exports);
51
+ __exportStar(require("./SandboxMetricInputParams"), exports);
52
+ __exportStar(require("./SandboxMetricInputParamsRequest"), exports);
53
+ __exportStar(require("./SandboxScenario"), exports);
48
54
  __exportStar(require("./SearchErrorResponse"), exports);
49
55
  __exportStar(require("./SearchFiltersRequest"), exports);
50
56
  __exportStar(require("./SearchRequestOptionsRequest"), exports);
@@ -56,5 +62,6 @@ __exportStar(require("./SlimDocument"), exports);
56
62
  __exportStar(require("./SlimDocumentStatusEnum"), exports);
57
63
  __exportStar(require("./SubmitCompletionActualRequest"), exports);
58
64
  __exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
65
+ __exportStar(require("./TypeEnum"), exports);
59
66
  __exportStar(require("./UploadDocumentErrorResponse"), exports);
60
67
  __exportStar(require("./UploadDocumentResponse"), exports);