vellum-ai 0.9.7 → 0.9.9

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 (141) hide show
  1. package/.mock/definition/__package__.yml +10 -38
  2. package/.mock/definition/adHoc.yml +1 -1
  3. package/.mock/openapi/openapi.yml +16 -50
  4. package/Client.js +10 -10
  5. package/api/resources/adHoc/client/Client.js +1 -1
  6. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +8 -2
  7. package/api/resources/containerImages/client/Client.js +4 -4
  8. package/api/resources/deployments/client/Client.js +6 -6
  9. package/api/resources/documentIndexes/client/Client.js +8 -8
  10. package/api/resources/documents/client/Client.js +5 -5
  11. package/api/resources/folderEntities/client/Client.js +2 -2
  12. package/api/resources/metricDefinitions/client/Client.js +1 -1
  13. package/api/resources/sandboxes/client/Client.js +3 -3
  14. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  15. package/api/resources/testSuites/client/Client.js +4 -4
  16. package/api/resources/workflowDeployments/client/Client.js +5 -5
  17. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  18. package/api/resources/workflows/client/Client.js +2 -2
  19. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  20. package/api/types/ChatMessagePromptBlock.d.ts +16 -0
  21. package/api/types/ChatMessagePromptBlock.js +5 -0
  22. package/api/types/EphemeralPromptCacheConfig.d.ts +7 -0
  23. package/api/types/EphemeralPromptCacheConfig.js +5 -0
  24. package/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +7 -0
  25. package/api/types/EphemeralPromptCacheConfigTypeEnum.js +5 -0
  26. package/api/types/FunctionDefinitionPromptBlock.d.ts +15 -0
  27. package/api/types/FunctionDefinitionPromptBlock.js +5 -0
  28. package/api/types/JinjaPromptBlock.d.ts +14 -0
  29. package/api/types/JinjaPromptBlock.js +5 -0
  30. package/api/types/PlainTextPromptBlock.d.ts +13 -0
  31. package/api/types/PlainTextPromptBlock.js +5 -0
  32. package/api/types/PromptBlock.d.ts +5 -0
  33. package/api/types/PromptBlock.js +5 -0
  34. package/api/types/PromptBlockState.d.ts +12 -0
  35. package/api/types/PromptBlockState.js +10 -0
  36. package/api/types/RichTextChildBlock.d.ts +5 -0
  37. package/api/types/RichTextChildBlock.js +5 -0
  38. package/api/types/RichTextPromptBlock.d.ts +13 -0
  39. package/api/types/RichTextPromptBlock.js +5 -0
  40. package/api/types/VariablePromptBlock.d.ts +13 -0
  41. package/api/types/VariablePromptBlock.js +5 -0
  42. package/api/types/index.d.ts +11 -0
  43. package/api/types/index.js +11 -0
  44. package/dist/Client.js +10 -10
  45. package/dist/api/resources/adHoc/client/Client.js +1 -1
  46. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +8 -2
  47. package/dist/api/resources/containerImages/client/Client.js +4 -4
  48. package/dist/api/resources/deployments/client/Client.js +6 -6
  49. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  50. package/dist/api/resources/documents/client/Client.js +5 -5
  51. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  52. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  53. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  54. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  55. package/dist/api/resources/testSuites/client/Client.js +4 -4
  56. package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
  57. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  58. package/dist/api/resources/workflows/client/Client.js +2 -2
  59. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  60. package/dist/api/types/ChatMessagePromptBlock.d.ts +16 -0
  61. package/dist/api/types/ChatMessagePromptBlock.js +5 -0
  62. package/dist/api/types/EphemeralPromptCacheConfig.d.ts +7 -0
  63. package/dist/api/types/EphemeralPromptCacheConfig.js +5 -0
  64. package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.d.ts +7 -0
  65. package/dist/api/types/EphemeralPromptCacheConfigTypeEnum.js +5 -0
  66. package/dist/api/types/FunctionDefinitionPromptBlock.d.ts +15 -0
  67. package/dist/api/types/FunctionDefinitionPromptBlock.js +5 -0
  68. package/dist/api/types/JinjaPromptBlock.d.ts +14 -0
  69. package/dist/api/types/JinjaPromptBlock.js +5 -0
  70. package/dist/api/types/PlainTextPromptBlock.d.ts +13 -0
  71. package/dist/api/types/PlainTextPromptBlock.js +5 -0
  72. package/dist/api/types/PromptBlock.d.ts +5 -0
  73. package/dist/api/types/PromptBlock.js +5 -0
  74. package/dist/api/types/PromptBlockState.d.ts +12 -0
  75. package/dist/api/types/PromptBlockState.js +10 -0
  76. package/dist/api/types/RichTextChildBlock.d.ts +5 -0
  77. package/dist/api/types/RichTextChildBlock.js +5 -0
  78. package/dist/api/types/RichTextPromptBlock.d.ts +13 -0
  79. package/dist/api/types/RichTextPromptBlock.js +5 -0
  80. package/dist/api/types/VariablePromptBlock.d.ts +13 -0
  81. package/dist/api/types/VariablePromptBlock.js +5 -0
  82. package/dist/api/types/index.d.ts +11 -0
  83. package/dist/api/types/index.js +11 -0
  84. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +1 -1
  85. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -1
  86. package/dist/serialization/types/ChatMessagePromptBlock.d.ts +21 -0
  87. package/dist/serialization/types/ChatMessagePromptBlock.js +43 -0
  88. package/dist/serialization/types/EphemeralPromptCacheConfig.d.ts +13 -0
  89. package/dist/serialization/types/EphemeralPromptCacheConfig.js +34 -0
  90. package/dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +10 -0
  91. package/dist/serialization/types/EphemeralPromptCacheConfigTypeEnum.js +31 -0
  92. package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +19 -0
  93. package/dist/serialization/types/FunctionDefinitionPromptBlock.js +40 -0
  94. package/dist/serialization/types/JinjaPromptBlock.d.ts +19 -0
  95. package/dist/serialization/types/JinjaPromptBlock.js +40 -0
  96. package/dist/serialization/types/PlainTextPromptBlock.d.ts +17 -0
  97. package/dist/serialization/types/PlainTextPromptBlock.js +38 -0
  98. package/dist/serialization/types/PromptBlock.d.ts +14 -0
  99. package/dist/serialization/types/PromptBlock.js +42 -0
  100. package/dist/serialization/types/PromptBlockState.d.ts +10 -0
  101. package/dist/serialization/types/PromptBlockState.js +31 -0
  102. package/dist/serialization/types/RichTextChildBlock.d.ts +12 -0
  103. package/dist/serialization/types/RichTextChildBlock.js +33 -0
  104. package/dist/serialization/types/RichTextPromptBlock.d.ts +18 -0
  105. package/dist/serialization/types/RichTextPromptBlock.js +39 -0
  106. package/dist/serialization/types/VariablePromptBlock.d.ts +17 -0
  107. package/dist/serialization/types/VariablePromptBlock.js +38 -0
  108. package/dist/serialization/types/index.d.ts +11 -0
  109. package/dist/serialization/types/index.js +11 -0
  110. package/dist/version.d.ts +1 -1
  111. package/dist/version.js +1 -1
  112. package/package.json +1 -1
  113. package/reference.md +7 -1
  114. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +1 -1
  115. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -1
  116. package/serialization/types/ChatMessagePromptBlock.d.ts +21 -0
  117. package/serialization/types/ChatMessagePromptBlock.js +43 -0
  118. package/serialization/types/EphemeralPromptCacheConfig.d.ts +13 -0
  119. package/serialization/types/EphemeralPromptCacheConfig.js +34 -0
  120. package/serialization/types/EphemeralPromptCacheConfigTypeEnum.d.ts +10 -0
  121. package/serialization/types/EphemeralPromptCacheConfigTypeEnum.js +31 -0
  122. package/serialization/types/FunctionDefinitionPromptBlock.d.ts +19 -0
  123. package/serialization/types/FunctionDefinitionPromptBlock.js +40 -0
  124. package/serialization/types/JinjaPromptBlock.d.ts +19 -0
  125. package/serialization/types/JinjaPromptBlock.js +40 -0
  126. package/serialization/types/PlainTextPromptBlock.d.ts +17 -0
  127. package/serialization/types/PlainTextPromptBlock.js +38 -0
  128. package/serialization/types/PromptBlock.d.ts +14 -0
  129. package/serialization/types/PromptBlock.js +42 -0
  130. package/serialization/types/PromptBlockState.d.ts +10 -0
  131. package/serialization/types/PromptBlockState.js +31 -0
  132. package/serialization/types/RichTextChildBlock.d.ts +12 -0
  133. package/serialization/types/RichTextChildBlock.js +33 -0
  134. package/serialization/types/RichTextPromptBlock.d.ts +18 -0
  135. package/serialization/types/RichTextPromptBlock.js +39 -0
  136. package/serialization/types/VariablePromptBlock.d.ts +17 -0
  137. package/serialization/types/VariablePromptBlock.js +38 -0
  138. package/serialization/types/index.d.ts +11 -0
  139. package/serialization/types/index.js +11 -0
  140. package/version.d.ts +1 -1
  141. package/version.js +1 -1
@@ -64,7 +64,7 @@ class WorkspaceSecrets {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
66
66
  method: "GET",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.7", "User-Agent": "vellum-ai/0.9.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -117,7 +117,7 @@ class WorkspaceSecrets {
117
117
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
118
118
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
119
119
  method: "PATCH",
120
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.7", "User-Agent": "vellum-ai/0.9.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.9.9", "User-Agent": "vellum-ai/0.9.9", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
121
  contentType: "application/json",
122
122
  requestType: "json",
123
123
  body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A block that represents a chat message in a prompt template.
7
+ */
8
+ export interface ChatMessagePromptBlock {
9
+ state?: Vellum.PromptBlockState;
10
+ cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
+ blockType: "CHAT_MESSAGE";
12
+ chatRole: Vellum.ChatMessageRole;
13
+ chatSource?: string;
14
+ chatMessageUnterminated?: boolean;
15
+ blocks: Vellum.PromptBlock[];
16
+ }
@@ -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 "../index";
5
+ export interface EphemeralPromptCacheConfig {
6
+ type?: Vellum.EphemeralPromptCacheConfigTypeEnum;
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 });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * - `EPHEMERAL` - EPHEMERAL
6
+ */
7
+ export declare type EphemeralPromptCacheConfigTypeEnum = "EPHEMERAL";
@@ -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,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A block that represents a function definition in a prompt template.
7
+ */
8
+ export interface FunctionDefinitionPromptBlock {
9
+ state?: Vellum.PromptBlockState;
10
+ cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
+ blockType: "FUNCTION_DEFINITION";
12
+ functionName?: string;
13
+ functionDescription?: string;
14
+ functionParameters?: Record<string, unknown>;
15
+ }
@@ -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,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A block of Jinja template code that is used to generate a prompt
7
+ */
8
+ export interface JinjaPromptBlock {
9
+ state?: Vellum.PromptBlockState;
10
+ cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
+ blockType: "JINJA";
12
+ template: string;
13
+ templateType: Vellum.VellumVariableType;
14
+ }
@@ -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 "../index";
5
+ /**
6
+ * A block that holds a plain text string value.
7
+ */
8
+ export interface PlainTextPromptBlock {
9
+ state?: Vellum.PromptBlockState;
10
+ cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
+ blockType: "PLAIN_TEXT";
12
+ text: string;
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,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export declare type PromptBlock = Vellum.JinjaPromptBlock | Vellum.ChatMessagePromptBlock | Vellum.FunctionDefinitionPromptBlock | Vellum.VariablePromptBlock | Vellum.RichTextPromptBlock;
@@ -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,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * - `ENABLED` - ENABLED
6
+ * - `DISABLED` - DISABLED
7
+ */
8
+ export declare type PromptBlockState = "ENABLED" | "DISABLED";
9
+ export declare const PromptBlockState: {
10
+ readonly Enabled: "ENABLED";
11
+ readonly Disabled: "DISABLED";
12
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PromptBlockState = void 0;
7
+ exports.PromptBlockState = {
8
+ Enabled: "ENABLED",
9
+ Disabled: "DISABLED",
10
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export declare type RichTextChildBlock = Vellum.VariablePromptBlock | Vellum.PlainTextPromptBlock;
@@ -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 "../index";
5
+ /**
6
+ * A block that includes a combination of plain text and variable blocks.
7
+ */
8
+ export interface RichTextPromptBlock {
9
+ state?: Vellum.PromptBlockState;
10
+ cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
+ blockType: "RICH_TEXT";
12
+ blocks: Vellum.RichTextChildBlock[];
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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A block that represents a variable in a prompt template.
7
+ */
8
+ export interface VariablePromptBlock {
9
+ state?: Vellum.PromptBlockState;
10
+ cacheConfig?: Vellum.EphemeralPromptCacheConfig;
11
+ blockType: "VARIABLE";
12
+ inputVariableId: string;
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 });
@@ -34,6 +34,7 @@ export * from "./ChatHistoryVellumValueRequest";
34
34
  export * from "./ChatMessage";
35
35
  export * from "./ChatMessageContent";
36
36
  export * from "./ChatMessageContentRequest";
37
+ export * from "./ChatMessagePromptBlock";
37
38
  export * from "./ChatMessageRequest";
38
39
  export * from "./ChatMessageRole";
39
40
  export * from "./CodeExecutionNodeArrayResult";
@@ -77,6 +78,8 @@ export * from "./EnrichedNormalizedCompletion";
77
78
  export * from "./EntityStatus";
78
79
  export * from "./EntityVisibility";
79
80
  export * from "./EnvironmentEnum";
81
+ export * from "./EphemeralPromptCacheConfig";
82
+ export * from "./EphemeralPromptCacheConfigTypeEnum";
80
83
  export * from "./ErrorInputRequest";
81
84
  export * from "./ErrorVariableValue";
82
85
  export * from "./ErrorVellumValue";
@@ -125,6 +128,7 @@ export * from "./FunctionCallRequest";
125
128
  export * from "./FunctionCallVariableValue";
126
129
  export * from "./FunctionCallVellumValue";
127
130
  export * from "./FunctionCallVellumValueRequest";
131
+ export * from "./FunctionDefinitionPromptBlock";
128
132
  export * from "./GenerateOptionsRequest";
129
133
  export * from "./GenerateRequest";
130
134
  export * from "./GenerateResponse";
@@ -158,6 +162,7 @@ export * from "./InstructorVectorizerConfig";
158
162
  export * from "./InstructorVectorizerConfigRequest";
159
163
  export * from "./IterationStateEnum";
160
164
  export * from "./JsonInputRequest";
165
+ export * from "./JinjaPromptBlock";
161
166
  export * from "./JsonVariableValue";
162
167
  export * from "./JsonVellumValue";
163
168
  export * from "./JsonVellumValueRequest";
@@ -241,9 +246,12 @@ export * from "./PaginatedTestSuiteTestCaseList";
241
246
  export * from "./PaginatedWorkflowReleaseTagReadList";
242
247
  export * from "./PdfSearchResultMetaSource";
243
248
  export * from "./PdfSearchResultMetaSourceRequest";
249
+ export * from "./PlainTextPromptBlock";
244
250
  export * from "./Price";
245
251
  export * from "./ProcessingFailureReasonEnum";
246
252
  export * from "./ProcessingStateEnum";
253
+ export * from "./PromptBlock";
254
+ export * from "./PromptBlockState";
247
255
  export * from "./PromptDeploymentExpandMetaRequest";
248
256
  export * from "./PromptDeploymentInputRequest";
249
257
  export * from "./PromptExecutionMeta";
@@ -270,6 +278,8 @@ export * from "./RejectedPromptExecutionMeta";
270
278
  export * from "./RejectedWorkflowNodeResultEvent";
271
279
  export * from "./ReleaseTagSource";
272
280
  export * from "./ReplaceTestSuiteTestCaseRequest";
281
+ export * from "./RichTextChildBlock";
282
+ export * from "./RichTextPromptBlock";
273
283
  export * from "./SandboxScenario";
274
284
  export * from "./ScenarioInput";
275
285
  export * from "./ScenarioInputChatHistoryVariableValue";
@@ -403,6 +413,7 @@ export * from "./TokenOverlappingWindowChunkingRequest";
403
413
  export * from "./UnitEnum";
404
414
  export * from "./UploadDocumentResponse";
405
415
  export * from "./UpsertTestSuiteTestCaseRequest";
416
+ export * from "./VariablePromptBlock";
406
417
  export * from "./VellumAudio";
407
418
  export * from "./VellumAudioRequest";
408
419
  export * from "./VellumError";
@@ -50,6 +50,7 @@ __exportStar(require("./ChatHistoryVellumValueRequest"), exports);
50
50
  __exportStar(require("./ChatMessage"), exports);
51
51
  __exportStar(require("./ChatMessageContent"), exports);
52
52
  __exportStar(require("./ChatMessageContentRequest"), exports);
53
+ __exportStar(require("./ChatMessagePromptBlock"), exports);
53
54
  __exportStar(require("./ChatMessageRequest"), exports);
54
55
  __exportStar(require("./ChatMessageRole"), exports);
55
56
  __exportStar(require("./CodeExecutionNodeArrayResult"), exports);
@@ -93,6 +94,8 @@ __exportStar(require("./EnrichedNormalizedCompletion"), exports);
93
94
  __exportStar(require("./EntityStatus"), exports);
94
95
  __exportStar(require("./EntityVisibility"), exports);
95
96
  __exportStar(require("./EnvironmentEnum"), exports);
97
+ __exportStar(require("./EphemeralPromptCacheConfig"), exports);
98
+ __exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
96
99
  __exportStar(require("./ErrorInputRequest"), exports);
97
100
  __exportStar(require("./ErrorVariableValue"), exports);
98
101
  __exportStar(require("./ErrorVellumValue"), exports);
@@ -141,6 +144,7 @@ __exportStar(require("./FunctionCallRequest"), exports);
141
144
  __exportStar(require("./FunctionCallVariableValue"), exports);
142
145
  __exportStar(require("./FunctionCallVellumValue"), exports);
143
146
  __exportStar(require("./FunctionCallVellumValueRequest"), exports);
147
+ __exportStar(require("./FunctionDefinitionPromptBlock"), exports);
144
148
  __exportStar(require("./GenerateOptionsRequest"), exports);
145
149
  __exportStar(require("./GenerateRequest"), exports);
146
150
  __exportStar(require("./GenerateResponse"), exports);
@@ -174,6 +178,7 @@ __exportStar(require("./InstructorVectorizerConfig"), exports);
174
178
  __exportStar(require("./InstructorVectorizerConfigRequest"), exports);
175
179
  __exportStar(require("./IterationStateEnum"), exports);
176
180
  __exportStar(require("./JsonInputRequest"), exports);
181
+ __exportStar(require("./JinjaPromptBlock"), exports);
177
182
  __exportStar(require("./JsonVariableValue"), exports);
178
183
  __exportStar(require("./JsonVellumValue"), exports);
179
184
  __exportStar(require("./JsonVellumValueRequest"), exports);
@@ -257,9 +262,12 @@ __exportStar(require("./PaginatedTestSuiteTestCaseList"), exports);
257
262
  __exportStar(require("./PaginatedWorkflowReleaseTagReadList"), exports);
258
263
  __exportStar(require("./PdfSearchResultMetaSource"), exports);
259
264
  __exportStar(require("./PdfSearchResultMetaSourceRequest"), exports);
265
+ __exportStar(require("./PlainTextPromptBlock"), exports);
260
266
  __exportStar(require("./Price"), exports);
261
267
  __exportStar(require("./ProcessingFailureReasonEnum"), exports);
262
268
  __exportStar(require("./ProcessingStateEnum"), exports);
269
+ __exportStar(require("./PromptBlock"), exports);
270
+ __exportStar(require("./PromptBlockState"), exports);
263
271
  __exportStar(require("./PromptDeploymentExpandMetaRequest"), exports);
264
272
  __exportStar(require("./PromptDeploymentInputRequest"), exports);
265
273
  __exportStar(require("./PromptExecutionMeta"), exports);
@@ -286,6 +294,8 @@ __exportStar(require("./RejectedPromptExecutionMeta"), exports);
286
294
  __exportStar(require("./RejectedWorkflowNodeResultEvent"), exports);
287
295
  __exportStar(require("./ReleaseTagSource"), exports);
288
296
  __exportStar(require("./ReplaceTestSuiteTestCaseRequest"), exports);
297
+ __exportStar(require("./RichTextChildBlock"), exports);
298
+ __exportStar(require("./RichTextPromptBlock"), exports);
289
299
  __exportStar(require("./SandboxScenario"), exports);
290
300
  __exportStar(require("./ScenarioInput"), exports);
291
301
  __exportStar(require("./ScenarioInputChatHistoryVariableValue"), exports);
@@ -419,6 +429,7 @@ __exportStar(require("./TokenOverlappingWindowChunkingRequest"), exports);
419
429
  __exportStar(require("./UnitEnum"), exports);
420
430
  __exportStar(require("./UploadDocumentResponse"), exports);
421
431
  __exportStar(require("./UpsertTestSuiteTestCaseRequest"), exports);
432
+ __exportStar(require("./VariablePromptBlock"), exports);
422
433
  __exportStar(require("./VellumAudio"), exports);
423
434
  __exportStar(require("./VellumAudioRequest"), exports);
424
435
  __exportStar(require("./VellumError"), exports);
@@ -17,7 +17,7 @@ export declare namespace AdHocExecutePromptStream {
17
17
  input_variables: VellumVariable.Raw[];
18
18
  parameters: PromptParameters.Raw;
19
19
  settings?: PromptSettings.Raw | null;
20
- blocks: unknown[];
20
+ blocks: serializers.PromptBlock.Raw[];
21
21
  expand_meta?: AdHocExpandMeta.Raw | null;
22
22
  }
23
23
  }
@@ -27,6 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.AdHocExecutePromptStream = void 0;
30
+ const serializers = __importStar(require("../../../../index"));
30
31
  const core = __importStar(require("../../../../../core"));
31
32
  const PromptRequestInput_1 = require("../../../../types/PromptRequestInput");
32
33
  const VellumVariable_1 = require("../../../../types/VellumVariable");
@@ -39,6 +40,6 @@ exports.AdHocExecutePromptStream = core.serialization.object({
39
40
  inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
40
41
  parameters: PromptParameters_1.PromptParameters,
41
42
  settings: PromptSettings_1.PromptSettings.optional(),
42
- blocks: core.serialization.list(core.serialization.unknown()),
43
+ blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
43
44
  expandMeta: core.serialization.property("expand_meta", AdHocExpandMeta_1.AdHocExpandMeta.optional()),
44
45
  });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { PromptBlockState } from "./PromptBlockState";
8
+ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
+ import { ChatMessageRole } from "./ChatMessageRole";
10
+ export declare const ChatMessagePromptBlock: core.serialization.ObjectSchema<serializers.ChatMessagePromptBlock.Raw, Vellum.ChatMessagePromptBlock>;
11
+ export declare namespace ChatMessagePromptBlock {
12
+ interface Raw {
13
+ state?: PromptBlockState.Raw | null;
14
+ cache_config?: EphemeralPromptCacheConfig.Raw | null;
15
+ block_type: "CHAT_MESSAGE";
16
+ chat_role: ChatMessageRole.Raw;
17
+ chat_source?: string | null;
18
+ chat_message_unterminated?: boolean | null;
19
+ blocks: serializers.PromptBlock.Raw[];
20
+ }
21
+ }
@@ -0,0 +1,43 @@
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.ChatMessagePromptBlock = void 0;
30
+ const serializers = __importStar(require("../index"));
31
+ const core = __importStar(require("../../core"));
32
+ const PromptBlockState_1 = require("./PromptBlockState");
33
+ const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
34
+ const ChatMessageRole_1 = require("./ChatMessageRole");
35
+ exports.ChatMessagePromptBlock = core.serialization.object({
36
+ state: PromptBlockState_1.PromptBlockState.optional(),
37
+ cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
38
+ blockType: core.serialization.property("block_type", core.serialization.stringLiteral("CHAT_MESSAGE")),
39
+ chatRole: core.serialization.property("chat_role", ChatMessageRole_1.ChatMessageRole),
40
+ chatSource: core.serialization.property("chat_source", core.serialization.string().optional()),
41
+ chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
42
+ blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
43
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { EphemeralPromptCacheConfigTypeEnum } from "./EphemeralPromptCacheConfigTypeEnum";
8
+ export declare const EphemeralPromptCacheConfig: core.serialization.ObjectSchema<serializers.EphemeralPromptCacheConfig.Raw, Vellum.EphemeralPromptCacheConfig>;
9
+ export declare namespace EphemeralPromptCacheConfig {
10
+ interface Raw {
11
+ type?: EphemeralPromptCacheConfigTypeEnum.Raw | null;
12
+ }
13
+ }
@@ -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.EphemeralPromptCacheConfig = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const EphemeralPromptCacheConfigTypeEnum_1 = require("./EphemeralPromptCacheConfigTypeEnum");
32
+ exports.EphemeralPromptCacheConfig = core.serialization.object({
33
+ type: EphemeralPromptCacheConfigTypeEnum_1.EphemeralPromptCacheConfigTypeEnum.optional(),
34
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const EphemeralPromptCacheConfigTypeEnum: core.serialization.Schema<serializers.EphemeralPromptCacheConfigTypeEnum.Raw, Vellum.EphemeralPromptCacheConfigTypeEnum>;
8
+ export declare namespace EphemeralPromptCacheConfigTypeEnum {
9
+ type Raw = "EPHEMERAL";
10
+ }
@@ -0,0 +1,31 @@
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.EphemeralPromptCacheConfigTypeEnum = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.EphemeralPromptCacheConfigTypeEnum = core.serialization.stringLiteral("EPHEMERAL");
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { PromptBlockState } from "./PromptBlockState";
8
+ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
+ export declare const FunctionDefinitionPromptBlock: core.serialization.ObjectSchema<serializers.FunctionDefinitionPromptBlock.Raw, Vellum.FunctionDefinitionPromptBlock>;
10
+ export declare namespace FunctionDefinitionPromptBlock {
11
+ interface Raw {
12
+ state?: PromptBlockState.Raw | null;
13
+ cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
+ block_type: "FUNCTION_DEFINITION";
15
+ function_name?: string | null;
16
+ function_description?: string | null;
17
+ function_parameters?: Record<string, unknown> | null;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
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.FunctionDefinitionPromptBlock = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const PromptBlockState_1 = require("./PromptBlockState");
32
+ const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
33
+ exports.FunctionDefinitionPromptBlock = core.serialization.object({
34
+ state: PromptBlockState_1.PromptBlockState.optional(),
35
+ cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
36
+ blockType: core.serialization.property("block_type", core.serialization.stringLiteral("FUNCTION_DEFINITION")),
37
+ functionName: core.serialization.property("function_name", core.serialization.string().optional()),
38
+ functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
39
+ functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
40
+ });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { PromptBlockState } from "./PromptBlockState";
8
+ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
+ import { VellumVariableType } from "./VellumVariableType";
10
+ export declare const JinjaPromptBlock: core.serialization.ObjectSchema<serializers.JinjaPromptBlock.Raw, Vellum.JinjaPromptBlock>;
11
+ export declare namespace JinjaPromptBlock {
12
+ interface Raw {
13
+ state?: PromptBlockState.Raw | null;
14
+ cache_config?: EphemeralPromptCacheConfig.Raw | null;
15
+ block_type: "JINJA";
16
+ template: string;
17
+ template_type: VellumVariableType.Raw;
18
+ }
19
+ }