vellum-ai 0.0.42 → 0.0.44

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 (131) hide show
  1. package/api/resources/registeredPrompts/client/Client.d.ts +2 -0
  2. package/api/resources/registeredPrompts/client/Client.js +6 -0
  3. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -1
  4. package/api/types/DeploymentRead.d.ts +0 -1
  5. package/api/types/EnrichedNormalizedCompletion.d.ts +1 -0
  6. package/api/types/ModelVersionBuildConfig.d.ts +1 -0
  7. package/api/types/ModelVersionRead.d.ts +2 -2
  8. package/api/types/NodeInputCompiledErrorValue.d.ts +9 -0
  9. package/api/types/{ModelTypeDeprecated.js → NodeInputCompiledErrorValue.js} +0 -5
  10. package/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
  11. package/api/types/ProviderEnum.d.ts +5 -3
  12. package/api/types/ProviderEnum.js +2 -1
  13. package/api/types/TemplatingNodeErrorResult.d.ts +8 -0
  14. package/{dist/api/types/ModelTypeDeprecated.js → api/types/TemplatingNodeErrorResult.js} +0 -5
  15. package/api/types/TemplatingNodeResultOutput.d.ts +4 -1
  16. package/api/types/TerminalNodeErrorResult.d.ts +10 -0
  17. package/api/types/TerminalNodeErrorResult.js +5 -0
  18. package/api/types/TerminalNodeResultOutput.d.ts +4 -1
  19. package/api/types/VellumError.d.ts +8 -0
  20. package/api/types/VellumError.js +5 -0
  21. package/api/types/VellumErrorCodeEnum.d.ts +14 -0
  22. package/api/types/VellumErrorCodeEnum.js +11 -0
  23. package/api/types/VellumVariableType.d.ts +3 -1
  24. package/api/types/VellumVariableType.js +1 -0
  25. package/api/types/WorkflowResultEventOutputData.d.ts +4 -1
  26. package/api/types/WorkflowResultEventOutputDataError.d.ts +13 -0
  27. package/api/types/WorkflowResultEventOutputDataError.js +5 -0
  28. package/api/types/index.d.ts +6 -1
  29. package/api/types/index.js +6 -1
  30. package/dist/api/resources/registeredPrompts/client/Client.d.ts +2 -0
  31. package/dist/api/resources/registeredPrompts/client/Client.js +6 -0
  32. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +2 -1
  33. package/dist/api/types/DeploymentRead.d.ts +0 -1
  34. package/dist/api/types/EnrichedNormalizedCompletion.d.ts +1 -0
  35. package/dist/api/types/ModelVersionBuildConfig.d.ts +1 -0
  36. package/dist/api/types/ModelVersionRead.d.ts +2 -2
  37. package/dist/api/types/NodeInputCompiledErrorValue.d.ts +9 -0
  38. package/dist/api/types/NodeInputCompiledErrorValue.js +5 -0
  39. package/dist/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
  40. package/dist/api/types/ProviderEnum.d.ts +5 -3
  41. package/dist/api/types/ProviderEnum.js +2 -1
  42. package/dist/api/types/TemplatingNodeErrorResult.d.ts +8 -0
  43. package/dist/api/types/TemplatingNodeErrorResult.js +5 -0
  44. package/dist/api/types/TemplatingNodeResultOutput.d.ts +4 -1
  45. package/dist/api/types/TerminalNodeErrorResult.d.ts +10 -0
  46. package/dist/api/types/TerminalNodeErrorResult.js +5 -0
  47. package/dist/api/types/TerminalNodeResultOutput.d.ts +4 -1
  48. package/dist/api/types/VellumError.d.ts +8 -0
  49. package/dist/api/types/VellumError.js +5 -0
  50. package/dist/api/types/VellumErrorCodeEnum.d.ts +14 -0
  51. package/dist/api/types/VellumErrorCodeEnum.js +11 -0
  52. package/dist/api/types/VellumVariableType.d.ts +3 -1
  53. package/dist/api/types/VellumVariableType.js +1 -0
  54. package/dist/api/types/WorkflowResultEventOutputData.d.ts +4 -1
  55. package/dist/api/types/WorkflowResultEventOutputDataError.d.ts +13 -0
  56. package/dist/api/types/WorkflowResultEventOutputDataError.js +5 -0
  57. package/dist/api/types/index.d.ts +6 -1
  58. package/dist/api/types/index.js +6 -1
  59. package/dist/serialization/types/DeploymentRead.d.ts +0 -1
  60. package/dist/serialization/types/DeploymentRead.js +0 -1
  61. package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -0
  62. package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -0
  63. package/dist/serialization/types/ModelVersionBuildConfig.d.ts +1 -0
  64. package/dist/serialization/types/ModelVersionBuildConfig.js +1 -0
  65. package/dist/serialization/types/ModelVersionRead.d.ts +0 -1
  66. package/dist/serialization/types/ModelVersionRead.js +0 -1
  67. package/dist/serialization/types/NodeInputCompiledErrorValue.d.ts +14 -0
  68. package/dist/serialization/types/NodeInputCompiledErrorValue.js +35 -0
  69. package/dist/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
  70. package/dist/serialization/types/NodeInputVariableCompiledValue.js +1 -0
  71. package/dist/serialization/types/ProviderEnum.d.ts +1 -1
  72. package/dist/serialization/types/ProviderEnum.js +11 -1
  73. package/dist/serialization/types/TemplatingNodeErrorResult.d.ts +13 -0
  74. package/dist/serialization/types/TemplatingNodeErrorResult.js +34 -0
  75. package/dist/serialization/types/TemplatingNodeResultOutput.d.ts +4 -1
  76. package/dist/serialization/types/TemplatingNodeResultOutput.js +1 -0
  77. package/dist/serialization/types/TerminalNodeErrorResult.d.ts +14 -0
  78. package/dist/serialization/types/TerminalNodeErrorResult.js +35 -0
  79. package/dist/serialization/types/TerminalNodeResultOutput.d.ts +4 -1
  80. package/dist/serialization/types/TerminalNodeResultOutput.js +1 -0
  81. package/dist/serialization/types/VellumError.d.ts +13 -0
  82. package/dist/serialization/types/VellumError.js +34 -0
  83. package/dist/serialization/types/VellumErrorCodeEnum.d.ts +10 -0
  84. package/dist/serialization/types/{ModelTypeDeprecated.js → VellumErrorCodeEnum.js} +2 -2
  85. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  86. package/dist/serialization/types/VellumVariableType.js +1 -1
  87. package/dist/serialization/types/WorkflowResultEventOutputData.d.ts +4 -1
  88. package/dist/serialization/types/WorkflowResultEventOutputData.js +1 -0
  89. package/dist/serialization/types/WorkflowResultEventOutputDataError.d.ts +17 -0
  90. package/dist/serialization/types/WorkflowResultEventOutputDataError.js +38 -0
  91. package/dist/serialization/types/index.d.ts +6 -1
  92. package/dist/serialization/types/index.js +6 -1
  93. package/package.json +1 -1
  94. package/serialization/types/DeploymentRead.d.ts +0 -1
  95. package/serialization/types/DeploymentRead.js +0 -1
  96. package/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -0
  97. package/serialization/types/EnrichedNormalizedCompletion.js +1 -0
  98. package/serialization/types/ModelVersionBuildConfig.d.ts +1 -0
  99. package/serialization/types/ModelVersionBuildConfig.js +1 -0
  100. package/serialization/types/ModelVersionRead.d.ts +0 -1
  101. package/serialization/types/ModelVersionRead.js +0 -1
  102. package/serialization/types/NodeInputCompiledErrorValue.d.ts +14 -0
  103. package/serialization/types/NodeInputCompiledErrorValue.js +35 -0
  104. package/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
  105. package/serialization/types/NodeInputVariableCompiledValue.js +1 -0
  106. package/serialization/types/ProviderEnum.d.ts +1 -1
  107. package/serialization/types/ProviderEnum.js +11 -1
  108. package/serialization/types/TemplatingNodeErrorResult.d.ts +13 -0
  109. package/serialization/types/TemplatingNodeErrorResult.js +34 -0
  110. package/serialization/types/TemplatingNodeResultOutput.d.ts +4 -1
  111. package/serialization/types/TemplatingNodeResultOutput.js +1 -0
  112. package/serialization/types/TerminalNodeErrorResult.d.ts +14 -0
  113. package/serialization/types/TerminalNodeErrorResult.js +35 -0
  114. package/serialization/types/TerminalNodeResultOutput.d.ts +4 -1
  115. package/serialization/types/TerminalNodeResultOutput.js +1 -0
  116. package/serialization/types/VellumError.d.ts +13 -0
  117. package/serialization/types/VellumError.js +34 -0
  118. package/serialization/types/VellumErrorCodeEnum.d.ts +10 -0
  119. package/serialization/types/{ModelTypeDeprecated.js → VellumErrorCodeEnum.js} +2 -2
  120. package/serialization/types/VellumVariableType.d.ts +1 -1
  121. package/serialization/types/VellumVariableType.js +1 -1
  122. package/serialization/types/WorkflowResultEventOutputData.d.ts +4 -1
  123. package/serialization/types/WorkflowResultEventOutputData.js +1 -0
  124. package/serialization/types/WorkflowResultEventOutputDataError.d.ts +17 -0
  125. package/serialization/types/WorkflowResultEventOutputDataError.js +38 -0
  126. package/serialization/types/index.d.ts +6 -1
  127. package/serialization/types/index.js +6 -1
  128. package/api/types/ModelTypeDeprecated.d.ts +0 -12
  129. package/dist/api/types/ModelTypeDeprecated.d.ts +0 -12
  130. package/dist/serialization/types/ModelTypeDeprecated.d.ts +0 -10
  131. package/serialization/types/ModelTypeDeprecated.d.ts +0 -10
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface TerminalNodeErrorResult {
6
+ id?: string;
7
+ /** The unique name given to the terminal node that produced this output. */
8
+ name: string;
9
+ value?: Vellum.VellumError;
10
+ }
@@ -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 TerminalNodeResultOutput = Vellum.TerminalNodeResultOutput.String | Vellum.TerminalNodeResultOutput.Number | Vellum.TerminalNodeResultOutput.Json | Vellum.TerminalNodeResultOutput.ChatHistory | Vellum.TerminalNodeResultOutput.SearchResults;
5
+ export declare type TerminalNodeResultOutput = Vellum.TerminalNodeResultOutput.String | Vellum.TerminalNodeResultOutput.Number | Vellum.TerminalNodeResultOutput.Json | Vellum.TerminalNodeResultOutput.ChatHistory | Vellum.TerminalNodeResultOutput.SearchResults | Vellum.TerminalNodeResultOutput.Error_;
6
6
  export declare namespace TerminalNodeResultOutput {
7
7
  interface String extends Vellum.TerminalNodeStringResult {
8
8
  type: "STRING";
@@ -19,4 +19,7 @@ export declare namespace TerminalNodeResultOutput {
19
19
  interface SearchResults extends Vellum.TerminalNodeSearchResultsResult {
20
20
  type: "SEARCH_RESULTS";
21
21
  }
22
+ interface Error_ extends Vellum.TerminalNodeErrorResult {
23
+ type: "ERROR";
24
+ }
22
25
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface VellumError {
6
+ message: string;
7
+ code: Vellum.VellumErrorCodeEnum;
8
+ }
@@ -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
+ /**
5
+ * * `INVALID_REQUEST` - INVALID_REQUEST
6
+ * * `PROVIDER_ERROR` - PROVIDER_ERROR
7
+ * * `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
8
+ */
9
+ export declare type VellumErrorCodeEnum = "INVALID_REQUEST" | "PROVIDER_ERROR" | "INTERNAL_SERVER_ERROR";
10
+ export declare const VellumErrorCodeEnum: {
11
+ readonly InvalidRequest: "INVALID_REQUEST";
12
+ readonly ProviderError: "PROVIDER_ERROR";
13
+ readonly InternalServerError: "INTERNAL_SERVER_ERROR";
14
+ };
@@ -0,0 +1,11 @@
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.VellumErrorCodeEnum = void 0;
7
+ exports.VellumErrorCodeEnum = {
8
+ InvalidRequest: "INVALID_REQUEST",
9
+ ProviderError: "PROVIDER_ERROR",
10
+ InternalServerError: "INTERNAL_SERVER_ERROR",
11
+ };
@@ -7,12 +7,14 @@
7
7
  * * `JSON` - JSON
8
8
  * * `CHAT_HISTORY` - CHAT_HISTORY
9
9
  * * `SEARCH_RESULTS` - SEARCH_RESULTS
10
+ * * `ERROR` - ERROR
10
11
  */
11
- export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS";
12
+ export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR";
12
13
  export declare const VellumVariableType: {
13
14
  readonly String: "STRING";
14
15
  readonly Number: "NUMBER";
15
16
  readonly Json: "JSON";
16
17
  readonly ChatHistory: "CHAT_HISTORY";
17
18
  readonly SearchResults: "SEARCH_RESULTS";
19
+ readonly Error: "ERROR";
18
20
  };
@@ -10,4 +10,5 @@ exports.VellumVariableType = {
10
10
  Json: "JSON",
11
11
  ChatHistory: "CHAT_HISTORY",
12
12
  SearchResults: "SEARCH_RESULTS",
13
+ Error: "ERROR",
13
14
  };
@@ -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 WorkflowResultEventOutputData = Vellum.WorkflowResultEventOutputData.String | Vellum.WorkflowResultEventOutputData.Number | Vellum.WorkflowResultEventOutputData.Json | Vellum.WorkflowResultEventOutputData.ChatHistory | Vellum.WorkflowResultEventOutputData.SearchResults;
5
+ export declare type WorkflowResultEventOutputData = Vellum.WorkflowResultEventOutputData.String | Vellum.WorkflowResultEventOutputData.Number | Vellum.WorkflowResultEventOutputData.Json | Vellum.WorkflowResultEventOutputData.ChatHistory | Vellum.WorkflowResultEventOutputData.SearchResults | Vellum.WorkflowResultEventOutputData.Error_;
6
6
  export declare namespace WorkflowResultEventOutputData {
7
7
  interface String extends Vellum.WorkflowResultEventOutputDataString {
8
8
  type: "STRING";
@@ -19,4 +19,7 @@ export declare namespace WorkflowResultEventOutputData {
19
19
  interface SearchResults extends Vellum.WorkflowResultEventOutputDataSearchResults {
20
20
  type: "SEARCH_RESULTS";
21
21
  }
22
+ interface Error_ extends Vellum.WorkflowResultEventOutputDataError {
23
+ type: "ERROR";
24
+ }
22
25
  }
@@ -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 interface WorkflowResultEventOutputDataError {
6
+ id?: string;
7
+ name: string;
8
+ state: Vellum.WorkflowNodeResultEventState;
9
+ nodeId: string;
10
+ /** The newly output string value. Only relevant for string outputs with a state of STREAMING. */
11
+ delta?: string;
12
+ value?: Vellum.VellumError;
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 });
@@ -35,7 +35,6 @@ export * from "./LogprobsEnum";
35
35
  export * from "./MetadataFilterConfigRequest";
36
36
  export * from "./MetadataFilterRuleCombinator";
37
37
  export * from "./MetadataFilterRuleRequest";
38
- export * from "./ModelTypeDeprecated";
39
38
  export * from "./ModelVersionBuildConfig";
40
39
  export * from "./ModelVersionCompilePromptResponse";
41
40
  export * from "./ModelVersionCompiledPrompt";
@@ -45,6 +44,7 @@ export * from "./ModelVersionRead";
45
44
  export * from "./ModelVersionReadStatusEnum";
46
45
  export * from "./ModelVersionSandboxSnapshot";
47
46
  export * from "./NodeInputCompiledChatHistoryValue";
47
+ export * from "./NodeInputCompiledErrorValue";
48
48
  export * from "./NodeInputCompiledJsonValue";
49
49
  export * from "./NodeInputCompiledNumberValue";
50
50
  export * from "./NodeInputCompiledSearchResultsValue";
@@ -95,6 +95,7 @@ export * from "./SubmitCompletionActualRequest";
95
95
  export * from "./SubmitCompletionActualsErrorResponse";
96
96
  export * from "./SubmitWorkflowExecutionActualRequest";
97
97
  export * from "./TemplatingNodeChatHistoryResult";
98
+ export * from "./TemplatingNodeErrorResult";
98
99
  export * from "./TemplatingNodeJsonResult";
99
100
  export * from "./TemplatingNodeNumberResult";
100
101
  export * from "./TemplatingNodeResult";
@@ -103,6 +104,7 @@ export * from "./TemplatingNodeResultOutput";
103
104
  export * from "./TemplatingNodeSearchResultsResult";
104
105
  export * from "./TemplatingNodeStringResult";
105
106
  export * from "./TerminalNodeChatHistoryResult";
107
+ export * from "./TerminalNodeErrorResult";
106
108
  export * from "./TerminalNodeJsonResult";
107
109
  export * from "./TerminalNodeNumberResult";
108
110
  export * from "./TerminalNodeResult";
@@ -113,6 +115,8 @@ export * from "./TerminalNodeStringResult";
113
115
  export * from "./TestSuiteTestCase";
114
116
  export * from "./UploadDocumentErrorResponse";
115
117
  export * from "./UploadDocumentResponse";
118
+ export * from "./VellumError";
119
+ export * from "./VellumErrorCodeEnum";
116
120
  export * from "./VellumVariable";
117
121
  export * from "./VellumVariableType";
118
122
  export * from "./WorkflowEventError";
@@ -133,6 +137,7 @@ export * from "./WorkflowRequestStringInputRequest";
133
137
  export * from "./WorkflowResultEvent";
134
138
  export * from "./WorkflowResultEventOutputData";
135
139
  export * from "./WorkflowResultEventOutputDataChatHistory";
140
+ export * from "./WorkflowResultEventOutputDataError";
136
141
  export * from "./WorkflowResultEventOutputDataJson";
137
142
  export * from "./WorkflowResultEventOutputDataNumber";
138
143
  export * from "./WorkflowResultEventOutputDataSearchResults";
@@ -51,7 +51,6 @@ __exportStar(require("./LogprobsEnum"), exports);
51
51
  __exportStar(require("./MetadataFilterConfigRequest"), exports);
52
52
  __exportStar(require("./MetadataFilterRuleCombinator"), exports);
53
53
  __exportStar(require("./MetadataFilterRuleRequest"), exports);
54
- __exportStar(require("./ModelTypeDeprecated"), exports);
55
54
  __exportStar(require("./ModelVersionBuildConfig"), exports);
56
55
  __exportStar(require("./ModelVersionCompilePromptResponse"), exports);
57
56
  __exportStar(require("./ModelVersionCompiledPrompt"), exports);
@@ -61,6 +60,7 @@ __exportStar(require("./ModelVersionRead"), exports);
61
60
  __exportStar(require("./ModelVersionReadStatusEnum"), exports);
62
61
  __exportStar(require("./ModelVersionSandboxSnapshot"), exports);
63
62
  __exportStar(require("./NodeInputCompiledChatHistoryValue"), exports);
63
+ __exportStar(require("./NodeInputCompiledErrorValue"), exports);
64
64
  __exportStar(require("./NodeInputCompiledJsonValue"), exports);
65
65
  __exportStar(require("./NodeInputCompiledNumberValue"), exports);
66
66
  __exportStar(require("./NodeInputCompiledSearchResultsValue"), exports);
@@ -111,6 +111,7 @@ __exportStar(require("./SubmitCompletionActualRequest"), exports);
111
111
  __exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
112
112
  __exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
113
113
  __exportStar(require("./TemplatingNodeChatHistoryResult"), exports);
114
+ __exportStar(require("./TemplatingNodeErrorResult"), exports);
114
115
  __exportStar(require("./TemplatingNodeJsonResult"), exports);
115
116
  __exportStar(require("./TemplatingNodeNumberResult"), exports);
116
117
  __exportStar(require("./TemplatingNodeResult"), exports);
@@ -119,6 +120,7 @@ __exportStar(require("./TemplatingNodeResultOutput"), exports);
119
120
  __exportStar(require("./TemplatingNodeSearchResultsResult"), exports);
120
121
  __exportStar(require("./TemplatingNodeStringResult"), exports);
121
122
  __exportStar(require("./TerminalNodeChatHistoryResult"), exports);
123
+ __exportStar(require("./TerminalNodeErrorResult"), exports);
122
124
  __exportStar(require("./TerminalNodeJsonResult"), exports);
123
125
  __exportStar(require("./TerminalNodeNumberResult"), exports);
124
126
  __exportStar(require("./TerminalNodeResult"), exports);
@@ -129,6 +131,8 @@ __exportStar(require("./TerminalNodeStringResult"), exports);
129
131
  __exportStar(require("./TestSuiteTestCase"), exports);
130
132
  __exportStar(require("./UploadDocumentErrorResponse"), exports);
131
133
  __exportStar(require("./UploadDocumentResponse"), exports);
134
+ __exportStar(require("./VellumError"), exports);
135
+ __exportStar(require("./VellumErrorCodeEnum"), exports);
132
136
  __exportStar(require("./VellumVariable"), exports);
133
137
  __exportStar(require("./VellumVariableType"), exports);
134
138
  __exportStar(require("./WorkflowEventError"), exports);
@@ -149,6 +153,7 @@ __exportStar(require("./WorkflowRequestStringInputRequest"), exports);
149
153
  __exportStar(require("./WorkflowResultEvent"), exports);
150
154
  __exportStar(require("./WorkflowResultEventOutputData"), exports);
151
155
  __exportStar(require("./WorkflowResultEventOutputDataChatHistory"), exports);
156
+ __exportStar(require("./WorkflowResultEventOutputDataError"), exports);
152
157
  __exportStar(require("./WorkflowResultEventOutputDataJson"), exports);
153
158
  __exportStar(require("./WorkflowResultEventOutputDataNumber"), exports);
154
159
  __exportStar(require("./WorkflowResultEventOutputDataSearchResults"), exports);
@@ -13,7 +13,6 @@ export declare namespace DeploymentRead {
13
13
  name: string;
14
14
  status?: serializers.DeploymentStatus.Raw | null;
15
15
  environment?: serializers.EnvironmentEnum.Raw | null;
16
- model_type: serializers.ModelTypeDeprecated.Raw;
17
16
  active_model_version_ids: string[];
18
17
  last_deployed_on: string;
19
18
  input_variables: serializers.VellumVariable.Raw[];
@@ -35,7 +35,6 @@ exports.DeploymentRead = core.serialization.object({
35
35
  name: core.serialization.string(),
36
36
  status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DeploymentStatus).optional(),
37
37
  environment: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).EnvironmentEnum).optional(),
38
- modelType: core.serialization.property("model_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelTypeDeprecated)),
39
38
  activeModelVersionIds: core.serialization.property("active_model_version_ids", core.serialization.list(core.serialization.string())),
40
39
  lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.date()),
41
40
  inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariable))),
@@ -13,6 +13,7 @@ export declare namespace EnrichedNormalizedCompletion {
13
13
  finish_reason?: serializers.FinishReasonEnum.Raw | null;
14
14
  logprobs?: serializers.NormalizedLogProbs.Raw | null;
15
15
  model_version_id: string;
16
+ prompt_version_id?: string | null;
16
17
  type?: serializers.VellumVariableType.Raw | null;
17
18
  }
18
19
  }
@@ -35,5 +35,6 @@ exports.EnrichedNormalizedCompletion = core.serialization.object({
35
35
  finishReason: core.serialization.property("finish_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).FinishReasonEnum).optional()),
36
36
  logprobs: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NormalizedLogProbs).optional(),
37
37
  modelVersionId: core.serialization.property("model_version_id", core.serialization.string()),
38
+ promptVersionId: core.serialization.property("prompt_version_id", core.serialization.string().optional()),
38
39
  type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariableType).optional(),
39
40
  });
@@ -9,5 +9,6 @@ export declare namespace ModelVersionBuildConfig {
9
9
  interface Raw {
10
10
  base_model: string;
11
11
  sandbox_snapshot?: serializers.ModelVersionSandboxSnapshot.Raw | null;
12
+ prompt_version_id?: string | null;
12
13
  }
13
14
  }
@@ -31,4 +31,5 @@ const core = __importStar(require("../../core"));
31
31
  exports.ModelVersionBuildConfig = core.serialization.object({
32
32
  baseModel: core.serialization.property("base_model", core.serialization.string()),
33
33
  sandboxSnapshot: core.serialization.property("sandbox_snapshot", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionSandboxSnapshot).optional()),
34
+ promptVersionId: core.serialization.property("prompt_version_id", core.serialization.string().optional()),
34
35
  });
@@ -10,7 +10,6 @@ export declare namespace ModelVersionRead {
10
10
  id: string;
11
11
  created: string;
12
12
  label: string;
13
- model_type: serializers.ModelTypeDeprecated.Raw;
14
13
  provider: serializers.ProviderEnum.Raw;
15
14
  external_id: string;
16
15
  build_config: serializers.ModelVersionBuildConfig.Raw;
@@ -32,7 +32,6 @@ exports.ModelVersionRead = core.serialization.object({
32
32
  id: core.serialization.string(),
33
33
  created: core.serialization.date(),
34
34
  label: core.serialization.string(),
35
- modelType: core.serialization.property("model_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelTypeDeprecated)),
36
35
  provider: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProviderEnum),
37
36
  externalId: core.serialization.property("external_id", core.serialization.string()),
38
37
  buildConfig: core.serialization.property("build_config", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionBuildConfig)),
@@ -0,0 +1,14 @@
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 NodeInputCompiledErrorValue: core.serialization.ObjectSchema<serializers.NodeInputCompiledErrorValue.Raw, Vellum.NodeInputCompiledErrorValue>;
8
+ export declare namespace NodeInputCompiledErrorValue {
9
+ interface Raw {
10
+ node_input_id: string;
11
+ key: string;
12
+ value?: serializers.VellumError.Raw | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.NodeInputCompiledErrorValue = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.NodeInputCompiledErrorValue = core.serialization.object({
32
+ nodeInputId: core.serialization.property("node_input_id", core.serialization.string()),
33
+ key: core.serialization.string(),
34
+ value: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumError).optional(),
35
+ });
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const NodeInputVariableCompiledValue: core.serialization.Schema<serializers.NodeInputVariableCompiledValue.Raw, Vellum.NodeInputVariableCompiledValue>;
8
8
  export declare namespace NodeInputVariableCompiledValue {
9
- type Raw = NodeInputVariableCompiledValue.String | NodeInputVariableCompiledValue.Number | NodeInputVariableCompiledValue.Json | NodeInputVariableCompiledValue.ChatHistory | NodeInputVariableCompiledValue.SearchResults;
9
+ type Raw = NodeInputVariableCompiledValue.String | NodeInputVariableCompiledValue.Number | NodeInputVariableCompiledValue.Json | NodeInputVariableCompiledValue.ChatHistory | NodeInputVariableCompiledValue.SearchResults | NodeInputVariableCompiledValue.Error;
10
10
  interface String extends serializers.NodeInputCompiledStringValue.Raw {
11
11
  type: "STRING";
12
12
  }
@@ -22,4 +22,7 @@ export declare namespace NodeInputVariableCompiledValue {
22
22
  interface SearchResults extends serializers.NodeInputCompiledSearchResultsValue.Raw {
23
23
  type: "SEARCH_RESULTS";
24
24
  }
25
+ interface Error extends serializers.NodeInputCompiledErrorValue.Raw {
26
+ type: "ERROR";
27
+ }
25
28
  }
@@ -35,6 +35,7 @@ exports.NodeInputVariableCompiledValue = core.serialization
35
35
  JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledJsonValue),
36
36
  CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledChatHistoryValue),
37
37
  SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledSearchResultsValue),
38
+ ERROR: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledErrorValue),
38
39
  })
39
40
  .transform({
40
41
  transform: (value) => value,
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ProviderEnum: core.serialization.Schema<serializers.ProviderEnum.Raw, Vellum.ProviderEnum>;
8
8
  export declare namespace ProviderEnum {
9
- type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "MYSTIC" | "OPENAI" | "PYQ";
9
+ type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "HUGGINGFACE" | "MYSTIC" | "PYQ";
10
10
  }
@@ -28,4 +28,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ProviderEnum = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.ProviderEnum = core.serialization.enum_(["ANTHROPIC", "COHERE", "GOOGLE", "HOSTED", "MOSAICML", "MYSTIC", "OPENAI", "PYQ"]);
31
+ exports.ProviderEnum = core.serialization.enum_([
32
+ "ANTHROPIC",
33
+ "COHERE",
34
+ "GOOGLE",
35
+ "HOSTED",
36
+ "MOSAICML",
37
+ "OPENAI",
38
+ "HUGGINGFACE",
39
+ "MYSTIC",
40
+ "PYQ",
41
+ ]);
@@ -0,0 +1,13 @@
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 TemplatingNodeErrorResult: core.serialization.ObjectSchema<serializers.TemplatingNodeErrorResult.Raw, Vellum.TemplatingNodeErrorResult>;
8
+ export declare namespace TemplatingNodeErrorResult {
9
+ interface Raw {
10
+ id: string;
11
+ value?: serializers.VellumError.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.TemplatingNodeErrorResult = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.TemplatingNodeErrorResult = core.serialization.object({
32
+ id: core.serialization.string(),
33
+ value: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumError).optional(),
34
+ });
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const TemplatingNodeResultOutput: core.serialization.Schema<serializers.TemplatingNodeResultOutput.Raw, Vellum.TemplatingNodeResultOutput>;
8
8
  export declare namespace TemplatingNodeResultOutput {
9
- type Raw = TemplatingNodeResultOutput.String | TemplatingNodeResultOutput.Number | TemplatingNodeResultOutput.Json | TemplatingNodeResultOutput.ChatHistory | TemplatingNodeResultOutput.SearchResults;
9
+ type Raw = TemplatingNodeResultOutput.String | TemplatingNodeResultOutput.Number | TemplatingNodeResultOutput.Json | TemplatingNodeResultOutput.ChatHistory | TemplatingNodeResultOutput.SearchResults | TemplatingNodeResultOutput.Error;
10
10
  interface String extends serializers.TemplatingNodeStringResult.Raw {
11
11
  type: "STRING";
12
12
  }
@@ -22,4 +22,7 @@ export declare namespace TemplatingNodeResultOutput {
22
22
  interface SearchResults extends serializers.TemplatingNodeSearchResultsResult.Raw {
23
23
  type: "SEARCH_RESULTS";
24
24
  }
25
+ interface Error extends serializers.TemplatingNodeErrorResult.Raw {
26
+ type: "ERROR";
27
+ }
25
28
  }
@@ -35,6 +35,7 @@ exports.TemplatingNodeResultOutput = core.serialization
35
35
  JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeJsonResult),
36
36
  CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeChatHistoryResult),
37
37
  SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeSearchResultsResult),
38
+ ERROR: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TemplatingNodeErrorResult),
38
39
  })
39
40
  .transform({
40
41
  transform: (value) => value,
@@ -0,0 +1,14 @@
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 TerminalNodeErrorResult: core.serialization.ObjectSchema<serializers.TerminalNodeErrorResult.Raw, Vellum.TerminalNodeErrorResult>;
8
+ export declare namespace TerminalNodeErrorResult {
9
+ interface Raw {
10
+ id?: string | null;
11
+ name: string;
12
+ value?: serializers.VellumError.Raw | null;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
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.TerminalNodeErrorResult = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.TerminalNodeErrorResult = core.serialization.object({
32
+ id: core.serialization.string().optional(),
33
+ name: core.serialization.string(),
34
+ value: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumError).optional(),
35
+ });
@@ -6,7 +6,7 @@ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const TerminalNodeResultOutput: core.serialization.Schema<serializers.TerminalNodeResultOutput.Raw, Vellum.TerminalNodeResultOutput>;
8
8
  export declare namespace TerminalNodeResultOutput {
9
- type Raw = TerminalNodeResultOutput.String | TerminalNodeResultOutput.Number | TerminalNodeResultOutput.Json | TerminalNodeResultOutput.ChatHistory | TerminalNodeResultOutput.SearchResults;
9
+ type Raw = TerminalNodeResultOutput.String | TerminalNodeResultOutput.Number | TerminalNodeResultOutput.Json | TerminalNodeResultOutput.ChatHistory | TerminalNodeResultOutput.SearchResults | TerminalNodeResultOutput.Error;
10
10
  interface String extends serializers.TerminalNodeStringResult.Raw {
11
11
  type: "STRING";
12
12
  }
@@ -22,4 +22,7 @@ export declare namespace TerminalNodeResultOutput {
22
22
  interface SearchResults extends serializers.TerminalNodeSearchResultsResult.Raw {
23
23
  type: "SEARCH_RESULTS";
24
24
  }
25
+ interface Error extends serializers.TerminalNodeErrorResult.Raw {
26
+ type: "ERROR";
27
+ }
25
28
  }
@@ -35,6 +35,7 @@ exports.TerminalNodeResultOutput = core.serialization
35
35
  JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeJsonResult),
36
36
  CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeChatHistoryResult),
37
37
  SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeSearchResultsResult),
38
+ ERROR: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).TerminalNodeErrorResult),
38
39
  })
39
40
  .transform({
40
41
  transform: (value) => value,
@@ -0,0 +1,13 @@
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 VellumError: core.serialization.ObjectSchema<serializers.VellumError.Raw, Vellum.VellumError>;
8
+ export declare namespace VellumError {
9
+ interface Raw {
10
+ message: string;
11
+ code: serializers.VellumErrorCodeEnum.Raw;
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.VellumError = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.VellumError = core.serialization.object({
32
+ message: core.serialization.string(),
33
+ code: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumErrorCodeEnum),
34
+ });