vellum-ai 0.0.41 → 0.0.42

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 (143) hide show
  1. package/api/client/requests/GenerateBodyRequest.d.ts +1 -1
  2. package/api/client/requests/GenerateStreamBodyRequest.d.ts +1 -1
  3. package/api/resources/documentIndexes/client/Client.d.ts +4 -0
  4. package/api/resources/documentIndexes/client/Client.js +39 -0
  5. package/api/types/ApiNodeResult.d.ts +7 -0
  6. package/api/types/{ContentType.js → ApiNodeResult.js} +0 -5
  7. package/api/types/ApiNodeResultData.d.ts +11 -0
  8. package/{dist/api/types/ContentType.js → api/types/ApiNodeResultData.js} +0 -5
  9. package/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
  10. package/api/types/ModelVersionExecConfigParameters.d.ts +2 -2
  11. package/api/types/NodeInputCompiledNumberValue.d.ts +8 -0
  12. package/api/types/NodeInputCompiledNumberValue.js +5 -0
  13. package/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
  14. package/api/types/PromptTemplateBlockProperties.d.ts +1 -1
  15. package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -1
  16. package/api/types/SearchResultMergingRequest.d.ts +1 -1
  17. package/api/types/SearchWeightsRequest.d.ts +3 -3
  18. package/api/types/TemplatingNodeNumberResult.d.ts +7 -0
  19. package/api/types/TemplatingNodeNumberResult.js +5 -0
  20. package/api/types/TemplatingNodeResultOutput.d.ts +4 -1
  21. package/api/types/TerminalNodeNumberResult.d.ts +9 -0
  22. package/api/types/TerminalNodeNumberResult.js +5 -0
  23. package/api/types/TerminalNodeResultOutput.d.ts +4 -1
  24. package/api/types/VellumVariableType.d.ts +6 -4
  25. package/api/types/VellumVariableType.js +1 -0
  26. package/api/types/WorkflowNodeResultData.d.ts +4 -1
  27. package/api/types/WorkflowResultEventOutputData.d.ts +4 -1
  28. package/api/types/WorkflowResultEventOutputDataNumber.d.ts +13 -0
  29. package/api/types/WorkflowResultEventOutputDataNumber.js +5 -0
  30. package/api/types/index.d.ts +6 -1
  31. package/api/types/index.js +6 -1
  32. package/dist/api/client/requests/GenerateBodyRequest.d.ts +1 -1
  33. package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +1 -1
  34. package/dist/api/resources/documentIndexes/client/Client.d.ts +4 -0
  35. package/dist/api/resources/documentIndexes/client/Client.js +39 -0
  36. package/dist/api/types/ApiNodeResult.d.ts +7 -0
  37. package/dist/api/types/ApiNodeResult.js +5 -0
  38. package/dist/api/types/ApiNodeResultData.d.ts +11 -0
  39. package/dist/api/types/ApiNodeResultData.js +5 -0
  40. package/dist/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
  41. package/dist/api/types/ModelVersionExecConfigParameters.d.ts +2 -2
  42. package/dist/api/types/NodeInputCompiledNumberValue.d.ts +8 -0
  43. package/dist/api/types/NodeInputCompiledNumberValue.js +5 -0
  44. package/dist/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
  45. package/dist/api/types/PromptTemplateBlockProperties.d.ts +1 -1
  46. package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -1
  47. package/dist/api/types/SearchResultMergingRequest.d.ts +1 -1
  48. package/dist/api/types/SearchWeightsRequest.d.ts +3 -3
  49. package/dist/api/types/TemplatingNodeNumberResult.d.ts +7 -0
  50. package/dist/api/types/TemplatingNodeNumberResult.js +5 -0
  51. package/dist/api/types/TemplatingNodeResultOutput.d.ts +4 -1
  52. package/dist/api/types/TerminalNodeNumberResult.d.ts +9 -0
  53. package/dist/api/types/TerminalNodeNumberResult.js +5 -0
  54. package/dist/api/types/TerminalNodeResultOutput.d.ts +4 -1
  55. package/dist/api/types/VellumVariableType.d.ts +6 -4
  56. package/dist/api/types/VellumVariableType.js +1 -0
  57. package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
  58. package/dist/api/types/WorkflowResultEventOutputData.d.ts +4 -1
  59. package/dist/api/types/WorkflowResultEventOutputDataNumber.d.ts +13 -0
  60. package/dist/api/types/WorkflowResultEventOutputDataNumber.js +5 -0
  61. package/dist/api/types/index.d.ts +6 -1
  62. package/dist/api/types/index.js +6 -1
  63. package/dist/serialization/types/ApiNodeResult.d.ts +12 -0
  64. package/dist/serialization/types/ApiNodeResult.js +33 -0
  65. package/dist/serialization/types/ApiNodeResultData.d.ts +17 -0
  66. package/dist/serialization/types/ApiNodeResultData.js +38 -0
  67. package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
  68. package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -1
  69. package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
  70. package/dist/serialization/types/ModelVersionExecConfigParameters.js +2 -2
  71. package/dist/serialization/types/NodeInputCompiledNumberValue.d.ts +14 -0
  72. package/dist/serialization/types/NodeInputCompiledNumberValue.js +35 -0
  73. package/dist/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
  74. package/dist/serialization/types/NodeInputVariableCompiledValue.js +1 -0
  75. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +1 -1
  76. package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -1
  77. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -1
  78. package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -1
  79. package/dist/serialization/types/SearchResultMergingRequest.d.ts +1 -1
  80. package/dist/serialization/types/SearchResultMergingRequest.js +1 -1
  81. package/dist/serialization/types/SearchWeightsRequest.d.ts +2 -2
  82. package/dist/serialization/types/SearchWeightsRequest.js +2 -2
  83. package/dist/serialization/types/TemplatingNodeNumberResult.d.ts +13 -0
  84. package/dist/serialization/types/{ContentType.js → TemplatingNodeNumberResult.js} +5 -2
  85. package/dist/serialization/types/TemplatingNodeResultOutput.d.ts +4 -1
  86. package/dist/serialization/types/TemplatingNodeResultOutput.js +1 -0
  87. package/dist/serialization/types/TerminalNodeNumberResult.d.ts +14 -0
  88. package/dist/serialization/types/TerminalNodeNumberResult.js +35 -0
  89. package/dist/serialization/types/TerminalNodeResultOutput.d.ts +4 -1
  90. package/dist/serialization/types/TerminalNodeResultOutput.js +1 -0
  91. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  92. package/dist/serialization/types/VellumVariableType.js +1 -1
  93. package/dist/serialization/types/WorkflowNodeResultData.d.ts +4 -1
  94. package/dist/serialization/types/WorkflowNodeResultData.js +1 -0
  95. package/dist/serialization/types/WorkflowResultEventOutputData.d.ts +4 -1
  96. package/dist/serialization/types/WorkflowResultEventOutputData.js +1 -0
  97. package/dist/serialization/types/WorkflowResultEventOutputDataNumber.d.ts +17 -0
  98. package/dist/serialization/types/WorkflowResultEventOutputDataNumber.js +38 -0
  99. package/dist/serialization/types/index.d.ts +6 -1
  100. package/dist/serialization/types/index.js +6 -1
  101. package/package.json +1 -1
  102. package/serialization/types/ApiNodeResult.d.ts +12 -0
  103. package/serialization/types/ApiNodeResult.js +33 -0
  104. package/serialization/types/ApiNodeResultData.d.ts +17 -0
  105. package/serialization/types/ApiNodeResultData.js +38 -0
  106. package/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
  107. package/serialization/types/EnrichedNormalizedCompletion.js +1 -1
  108. package/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
  109. package/serialization/types/ModelVersionExecConfigParameters.js +2 -2
  110. package/serialization/types/NodeInputCompiledNumberValue.d.ts +14 -0
  111. package/serialization/types/NodeInputCompiledNumberValue.js +35 -0
  112. package/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
  113. package/serialization/types/NodeInputVariableCompiledValue.js +1 -0
  114. package/serialization/types/PromptTemplateBlockProperties.d.ts +1 -1
  115. package/serialization/types/PromptTemplateBlockProperties.js +1 -1
  116. package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -1
  117. package/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -1
  118. package/serialization/types/SearchResultMergingRequest.d.ts +1 -1
  119. package/serialization/types/SearchResultMergingRequest.js +1 -1
  120. package/serialization/types/SearchWeightsRequest.d.ts +2 -2
  121. package/serialization/types/SearchWeightsRequest.js +2 -2
  122. package/serialization/types/TemplatingNodeNumberResult.d.ts +13 -0
  123. package/serialization/types/{ContentType.js → TemplatingNodeNumberResult.js} +5 -2
  124. package/serialization/types/TemplatingNodeResultOutput.d.ts +4 -1
  125. package/serialization/types/TemplatingNodeResultOutput.js +1 -0
  126. package/serialization/types/TerminalNodeNumberResult.d.ts +14 -0
  127. package/serialization/types/TerminalNodeNumberResult.js +35 -0
  128. package/serialization/types/TerminalNodeResultOutput.d.ts +4 -1
  129. package/serialization/types/TerminalNodeResultOutput.js +1 -0
  130. package/serialization/types/VellumVariableType.d.ts +1 -1
  131. package/serialization/types/VellumVariableType.js +1 -1
  132. package/serialization/types/WorkflowNodeResultData.d.ts +4 -1
  133. package/serialization/types/WorkflowNodeResultData.js +1 -0
  134. package/serialization/types/WorkflowResultEventOutputData.d.ts +4 -1
  135. package/serialization/types/WorkflowResultEventOutputData.js +1 -0
  136. package/serialization/types/WorkflowResultEventOutputDataNumber.d.ts +17 -0
  137. package/serialization/types/WorkflowResultEventOutputDataNumber.js +38 -0
  138. package/serialization/types/index.d.ts +6 -1
  139. package/serialization/types/index.js +6 -1
  140. package/api/types/ContentType.d.ts +0 -12
  141. package/dist/api/types/ContentType.d.ts +0 -12
  142. package/dist/serialization/types/ContentType.d.ts +0 -10
  143. package/serialization/types/ContentType.d.ts +0 -10
@@ -6,7 +6,7 @@ export interface PromptTemplateBlockProperties {
6
6
  chatRole?: Vellum.ChatMessageRole;
7
7
  chatMessageUnterminated?: boolean;
8
8
  template?: string;
9
- templateType?: Vellum.ContentType;
9
+ templateType?: Vellum.VellumVariableType;
10
10
  functionName?: string;
11
11
  functionDescription?: string;
12
12
  functionParameters?: Record<string, unknown>;
@@ -6,7 +6,7 @@ export interface PromptTemplateBlockPropertiesRequest {
6
6
  chatRole?: Vellum.ChatMessageRole;
7
7
  chatMessageUnterminated?: boolean;
8
8
  template?: string;
9
- templateType?: Vellum.ContentType;
9
+ templateType?: Vellum.VellumVariableType;
10
10
  functionName?: string;
11
11
  functionDescription?: string;
12
12
  functionParameters?: Record<string, unknown>;
@@ -3,5 +3,5 @@
3
3
  */
4
4
  export interface SearchResultMergingRequest {
5
5
  /** Whether to enable merging results */
6
- enabled: boolean;
6
+ enabled?: boolean;
7
7
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface SearchWeightsRequest {
5
5
  /** The relative weight to give to semantic similarity */
6
- semanticSimilarity: number;
7
- /** The relative weight to give to keyword matches */
8
- keywords: number;
6
+ semanticSimilarity?: number;
7
+ /** The relative weight to give to keywords */
8
+ keywords?: number;
9
9
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TemplatingNodeNumberResult {
5
+ id: string;
6
+ value?: number;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,11 +2,14 @@
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 TemplatingNodeResultOutput = Vellum.TemplatingNodeResultOutput.String | Vellum.TemplatingNodeResultOutput.Json | Vellum.TemplatingNodeResultOutput.ChatHistory | Vellum.TemplatingNodeResultOutput.SearchResults;
5
+ export declare type TemplatingNodeResultOutput = Vellum.TemplatingNodeResultOutput.String | Vellum.TemplatingNodeResultOutput.Number | Vellum.TemplatingNodeResultOutput.Json | Vellum.TemplatingNodeResultOutput.ChatHistory | Vellum.TemplatingNodeResultOutput.SearchResults;
6
6
  export declare namespace TemplatingNodeResultOutput {
7
7
  interface String extends Vellum.TemplatingNodeStringResult {
8
8
  type: "STRING";
9
9
  }
10
+ interface Number extends Vellum.TemplatingNodeNumberResult {
11
+ type: "NUMBER";
12
+ }
10
13
  interface Json extends Vellum.TemplatingNodeJsonResult {
11
14
  type: "JSON";
12
15
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TerminalNodeNumberResult {
5
+ id?: string;
6
+ /** The unique name given to the terminal node that produced this output. */
7
+ name: string;
8
+ value?: number;
9
+ }
@@ -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,11 +2,14 @@
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.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;
6
6
  export declare namespace TerminalNodeResultOutput {
7
7
  interface String extends Vellum.TerminalNodeStringResult {
8
8
  type: "STRING";
9
9
  }
10
+ interface Number extends Vellum.TerminalNodeNumberResult {
11
+ type: "NUMBER";
12
+ }
10
13
  interface Json extends Vellum.TerminalNodeJsonResult {
11
14
  type: "JSON";
12
15
  }
@@ -2,14 +2,16 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * * `STRING` - String
5
+ * * `STRING` - STRING
6
+ * * `NUMBER` - NUMBER
6
7
  * * `JSON` - JSON
7
- * * `CHAT_HISTORY` - Chat History
8
- * * `SEARCH_RESULTS` - Search Results
8
+ * * `CHAT_HISTORY` - CHAT_HISTORY
9
+ * * `SEARCH_RESULTS` - SEARCH_RESULTS
9
10
  */
10
- export declare type VellumVariableType = "STRING" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS";
11
+ export declare type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS";
11
12
  export declare const VellumVariableType: {
12
13
  readonly String: "STRING";
14
+ readonly Number: "NUMBER";
13
15
  readonly Json: "JSON";
14
16
  readonly ChatHistory: "CHAT_HISTORY";
15
17
  readonly SearchResults: "SEARCH_RESULTS";
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.VellumVariableType = void 0;
7
7
  exports.VellumVariableType = {
8
8
  String: "STRING",
9
+ Number: "NUMBER",
9
10
  Json: "JSON",
10
11
  ChatHistory: "CHAT_HISTORY",
11
12
  SearchResults: "SEARCH_RESULTS",
@@ -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 WorkflowNodeResultData = Vellum.WorkflowNodeResultData.Prompt | Vellum.WorkflowNodeResultData.Search | Vellum.WorkflowNodeResultData.Templating | Vellum.WorkflowNodeResultData.Conditional | Vellum.WorkflowNodeResultData.Terminal;
5
+ export declare type WorkflowNodeResultData = Vellum.WorkflowNodeResultData.Prompt | Vellum.WorkflowNodeResultData.Search | Vellum.WorkflowNodeResultData.Templating | Vellum.WorkflowNodeResultData.Conditional | Vellum.WorkflowNodeResultData.Api | Vellum.WorkflowNodeResultData.Terminal;
6
6
  export declare namespace WorkflowNodeResultData {
7
7
  interface Prompt extends Vellum.PromptNodeResult {
8
8
  type: "PROMPT";
@@ -16,6 +16,9 @@ export declare namespace WorkflowNodeResultData {
16
16
  interface Conditional extends Vellum.ConditionalNodeResult {
17
17
  type: "CONDITIONAL";
18
18
  }
19
+ interface Api extends Vellum.ApiNodeResult {
20
+ type: "API";
21
+ }
19
22
  interface Terminal extends Vellum.TerminalNodeResult {
20
23
  type: "TERMINAL";
21
24
  }
@@ -2,11 +2,14 @@
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.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;
6
6
  export declare namespace WorkflowResultEventOutputData {
7
7
  interface String extends Vellum.WorkflowResultEventOutputDataString {
8
8
  type: "STRING";
9
9
  }
10
+ interface Number extends Vellum.WorkflowResultEventOutputDataNumber {
11
+ type: "NUMBER";
12
+ }
10
13
  interface Json extends Vellum.WorkflowResultEventOutputDataJson {
11
14
  type: "JSON";
12
15
  }
@@ -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 WorkflowResultEventOutputDataNumber {
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?: number;
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 });
@@ -1,10 +1,11 @@
1
+ export * from "./ApiNodeResult";
2
+ export * from "./ApiNodeResultData";
1
3
  export * from "./BlockTypeEnum";
2
4
  export * from "./ChatMessage";
3
5
  export * from "./ChatMessageRequest";
4
6
  export * from "./ChatMessageRole";
5
7
  export * from "./ConditionalNodeResult";
6
8
  export * from "./ConditionalNodeResultData";
7
- export * from "./ContentType";
8
9
  export * from "./DeploymentRead";
9
10
  export * from "./DeploymentStatus";
10
11
  export * from "./DocumentDocumentToDocumentIndex";
@@ -45,6 +46,7 @@ export * from "./ModelVersionReadStatusEnum";
45
46
  export * from "./ModelVersionSandboxSnapshot";
46
47
  export * from "./NodeInputCompiledChatHistoryValue";
47
48
  export * from "./NodeInputCompiledJsonValue";
49
+ export * from "./NodeInputCompiledNumberValue";
48
50
  export * from "./NodeInputCompiledSearchResultsValue";
49
51
  export * from "./NodeInputCompiledStringValue";
50
52
  export * from "./NodeInputVariableCompiledValue";
@@ -94,6 +96,7 @@ export * from "./SubmitCompletionActualsErrorResponse";
94
96
  export * from "./SubmitWorkflowExecutionActualRequest";
95
97
  export * from "./TemplatingNodeChatHistoryResult";
96
98
  export * from "./TemplatingNodeJsonResult";
99
+ export * from "./TemplatingNodeNumberResult";
97
100
  export * from "./TemplatingNodeResult";
98
101
  export * from "./TemplatingNodeResultData";
99
102
  export * from "./TemplatingNodeResultOutput";
@@ -101,6 +104,7 @@ export * from "./TemplatingNodeSearchResultsResult";
101
104
  export * from "./TemplatingNodeStringResult";
102
105
  export * from "./TerminalNodeChatHistoryResult";
103
106
  export * from "./TerminalNodeJsonResult";
107
+ export * from "./TerminalNodeNumberResult";
104
108
  export * from "./TerminalNodeResult";
105
109
  export * from "./TerminalNodeResultData";
106
110
  export * from "./TerminalNodeResultOutput";
@@ -130,6 +134,7 @@ export * from "./WorkflowResultEvent";
130
134
  export * from "./WorkflowResultEventOutputData";
131
135
  export * from "./WorkflowResultEventOutputDataChatHistory";
132
136
  export * from "./WorkflowResultEventOutputDataJson";
137
+ export * from "./WorkflowResultEventOutputDataNumber";
133
138
  export * from "./WorkflowResultEventOutputDataSearchResults";
134
139
  export * from "./WorkflowResultEventOutputDataString";
135
140
  export * from "./WorkflowStreamEvent";
@@ -14,13 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ApiNodeResult"), exports);
18
+ __exportStar(require("./ApiNodeResultData"), exports);
17
19
  __exportStar(require("./BlockTypeEnum"), exports);
18
20
  __exportStar(require("./ChatMessage"), exports);
19
21
  __exportStar(require("./ChatMessageRequest"), exports);
20
22
  __exportStar(require("./ChatMessageRole"), exports);
21
23
  __exportStar(require("./ConditionalNodeResult"), exports);
22
24
  __exportStar(require("./ConditionalNodeResultData"), exports);
23
- __exportStar(require("./ContentType"), exports);
24
25
  __exportStar(require("./DeploymentRead"), exports);
25
26
  __exportStar(require("./DeploymentStatus"), exports);
26
27
  __exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
@@ -61,6 +62,7 @@ __exportStar(require("./ModelVersionReadStatusEnum"), exports);
61
62
  __exportStar(require("./ModelVersionSandboxSnapshot"), exports);
62
63
  __exportStar(require("./NodeInputCompiledChatHistoryValue"), exports);
63
64
  __exportStar(require("./NodeInputCompiledJsonValue"), exports);
65
+ __exportStar(require("./NodeInputCompiledNumberValue"), exports);
64
66
  __exportStar(require("./NodeInputCompiledSearchResultsValue"), exports);
65
67
  __exportStar(require("./NodeInputCompiledStringValue"), exports);
66
68
  __exportStar(require("./NodeInputVariableCompiledValue"), exports);
@@ -110,6 +112,7 @@ __exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
110
112
  __exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
111
113
  __exportStar(require("./TemplatingNodeChatHistoryResult"), exports);
112
114
  __exportStar(require("./TemplatingNodeJsonResult"), exports);
115
+ __exportStar(require("./TemplatingNodeNumberResult"), exports);
113
116
  __exportStar(require("./TemplatingNodeResult"), exports);
114
117
  __exportStar(require("./TemplatingNodeResultData"), exports);
115
118
  __exportStar(require("./TemplatingNodeResultOutput"), exports);
@@ -117,6 +120,7 @@ __exportStar(require("./TemplatingNodeSearchResultsResult"), exports);
117
120
  __exportStar(require("./TemplatingNodeStringResult"), exports);
118
121
  __exportStar(require("./TerminalNodeChatHistoryResult"), exports);
119
122
  __exportStar(require("./TerminalNodeJsonResult"), exports);
123
+ __exportStar(require("./TerminalNodeNumberResult"), exports);
120
124
  __exportStar(require("./TerminalNodeResult"), exports);
121
125
  __exportStar(require("./TerminalNodeResultData"), exports);
122
126
  __exportStar(require("./TerminalNodeResultOutput"), exports);
@@ -146,6 +150,7 @@ __exportStar(require("./WorkflowResultEvent"), exports);
146
150
  __exportStar(require("./WorkflowResultEventOutputData"), exports);
147
151
  __exportStar(require("./WorkflowResultEventOutputDataChatHistory"), exports);
148
152
  __exportStar(require("./WorkflowResultEventOutputDataJson"), exports);
153
+ __exportStar(require("./WorkflowResultEventOutputDataNumber"), exports);
149
154
  __exportStar(require("./WorkflowResultEventOutputDataSearchResults"), exports);
150
155
  __exportStar(require("./WorkflowResultEventOutputDataString"), exports);
151
156
  __exportStar(require("./WorkflowStreamEvent"), exports);
@@ -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 ApiNodeResult: core.serialization.ObjectSchema<serializers.ApiNodeResult.Raw, Vellum.ApiNodeResult>;
8
+ export declare namespace ApiNodeResult {
9
+ interface Raw {
10
+ data: serializers.ApiNodeResultData.Raw;
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.ApiNodeResult = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ApiNodeResult = core.serialization.object({
32
+ data: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ApiNodeResultData),
33
+ });
@@ -0,0 +1,17 @@
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 ApiNodeResultData: core.serialization.ObjectSchema<serializers.ApiNodeResultData.Raw, Vellum.ApiNodeResultData>;
8
+ export declare namespace ApiNodeResultData {
9
+ interface Raw {
10
+ text_output_id: string;
11
+ text?: string | null;
12
+ json_output_id: string;
13
+ json?: Record<string, unknown> | null;
14
+ status_code_output_id: string;
15
+ status_code: number;
16
+ }
17
+ }
@@ -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.ApiNodeResultData = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.ApiNodeResultData = core.serialization.object({
32
+ textOutputId: core.serialization.property("text_output_id", core.serialization.string()),
33
+ text: core.serialization.string().optional(),
34
+ jsonOutputId: core.serialization.property("json_output_id", core.serialization.string()),
35
+ json: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
36
+ statusCodeOutputId: core.serialization.property("status_code_output_id", core.serialization.string()),
37
+ statusCode: core.serialization.property("status_code", core.serialization.number()),
38
+ });
@@ -13,6 +13,6 @@ 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
- type?: serializers.ContentType.Raw | null;
16
+ type?: serializers.VellumVariableType.Raw | null;
17
17
  }
18
18
  }
@@ -35,5 +35,5 @@ 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
- type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ContentType).optional(),
38
+ type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariableType).optional(),
39
39
  });
@@ -7,8 +7,8 @@ import * as core from "../../core";
7
7
  export declare const ModelVersionExecConfigParameters: core.serialization.ObjectSchema<serializers.ModelVersionExecConfigParameters.Raw, Vellum.ModelVersionExecConfigParameters>;
8
8
  export declare namespace ModelVersionExecConfigParameters {
9
9
  interface Raw {
10
- temperature: number;
11
- max_tokens: number;
10
+ temperature?: number | null;
11
+ max_tokens?: number | null;
12
12
  top_p: number;
13
13
  frequency_penalty: number;
14
14
  presence_penalty: number;
@@ -29,8 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ModelVersionExecConfigParameters = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.ModelVersionExecConfigParameters = core.serialization.object({
32
- temperature: core.serialization.number(),
33
- maxTokens: core.serialization.property("max_tokens", core.serialization.number()),
32
+ temperature: core.serialization.number().optional(),
33
+ maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
34
34
  topP: core.serialization.property("top_p", core.serialization.number()),
35
35
  frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number()),
36
36
  presencePenalty: core.serialization.property("presence_penalty", core.serialization.number()),
@@ -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 NodeInputCompiledNumberValue: core.serialization.ObjectSchema<serializers.NodeInputCompiledNumberValue.Raw, Vellum.NodeInputCompiledNumberValue>;
8
+ export declare namespace NodeInputCompiledNumberValue {
9
+ interface Raw {
10
+ node_input_id: string;
11
+ key: string;
12
+ value?: number | 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.NodeInputCompiledNumberValue = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.NodeInputCompiledNumberValue = core.serialization.object({
32
+ nodeInputId: core.serialization.property("node_input_id", core.serialization.string()),
33
+ key: core.serialization.string(),
34
+ value: core.serialization.number().optional(),
35
+ });
@@ -6,10 +6,13 @@ 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.Json | NodeInputVariableCompiledValue.ChatHistory | NodeInputVariableCompiledValue.SearchResults;
9
+ type Raw = NodeInputVariableCompiledValue.String | NodeInputVariableCompiledValue.Number | NodeInputVariableCompiledValue.Json | NodeInputVariableCompiledValue.ChatHistory | NodeInputVariableCompiledValue.SearchResults;
10
10
  interface String extends serializers.NodeInputCompiledStringValue.Raw {
11
11
  type: "STRING";
12
12
  }
13
+ interface Number extends serializers.NodeInputCompiledNumberValue.Raw {
14
+ type: "NUMBER";
15
+ }
13
16
  interface Json extends serializers.NodeInputCompiledJsonValue.Raw {
14
17
  type: "JSON";
15
18
  }
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
31
31
  exports.NodeInputVariableCompiledValue = core.serialization
32
32
  .union("type", {
33
33
  STRING: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledStringValue),
34
+ NUMBER: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledNumberValue),
34
35
  JSON: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledJsonValue),
35
36
  CHAT_HISTORY: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledChatHistoryValue),
36
37
  SEARCH_RESULTS: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).NodeInputCompiledSearchResultsValue),
@@ -10,7 +10,7 @@ export declare namespace PromptTemplateBlockProperties {
10
10
  chat_role?: serializers.ChatMessageRole.Raw | null;
11
11
  chat_message_unterminated?: boolean | null;
12
12
  template?: string | null;
13
- template_type?: serializers.ContentType.Raw | null;
13
+ template_type?: serializers.VellumVariableType.Raw | null;
14
14
  function_name?: string | null;
15
15
  function_description?: string | null;
16
16
  function_parameters?: Record<string, unknown> | null;
@@ -32,7 +32,7 @@ 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
33
  chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
34
34
  template: core.serialization.string().optional(),
35
- templateType: core.serialization.property("template_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ContentType).optional()),
35
+ templateType: core.serialization.property("template_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariableType).optional()),
36
36
  functionName: core.serialization.property("function_name", core.serialization.string().optional()),
37
37
  functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
38
38
  functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
@@ -10,7 +10,7 @@ export declare namespace PromptTemplateBlockPropertiesRequest {
10
10
  chat_role?: serializers.ChatMessageRole.Raw | null;
11
11
  chat_message_unterminated?: boolean | null;
12
12
  template?: string | null;
13
- template_type?: serializers.ContentType.Raw | null;
13
+ template_type?: serializers.VellumVariableType.Raw | null;
14
14
  function_name?: string | null;
15
15
  function_description?: string | null;
16
16
  function_parameters?: Record<string, unknown> | null;
@@ -32,7 +32,7 @@ exports.PromptTemplateBlockPropertiesRequest = core.serialization.object({
32
32
  chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole).optional()),
33
33
  chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
34
34
  template: core.serialization.string().optional(),
35
- templateType: core.serialization.property("template_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ContentType).optional()),
35
+ templateType: core.serialization.property("template_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariableType).optional()),
36
36
  functionName: core.serialization.property("function_name", core.serialization.string().optional()),
37
37
  functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
38
38
  functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
@@ -7,6 +7,6 @@ import * as core from "../../core";
7
7
  export declare const SearchResultMergingRequest: core.serialization.ObjectSchema<serializers.SearchResultMergingRequest.Raw, Vellum.SearchResultMergingRequest>;
8
8
  export declare namespace SearchResultMergingRequest {
9
9
  interface Raw {
10
- enabled: boolean;
10
+ enabled?: boolean | null;
11
11
  }
12
12
  }
@@ -29,5 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SearchResultMergingRequest = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.SearchResultMergingRequest = core.serialization.object({
32
- enabled: core.serialization.boolean(),
32
+ enabled: core.serialization.boolean().optional(),
33
33
  });
@@ -7,7 +7,7 @@ import * as core from "../../core";
7
7
  export declare const SearchWeightsRequest: core.serialization.ObjectSchema<serializers.SearchWeightsRequest.Raw, Vellum.SearchWeightsRequest>;
8
8
  export declare namespace SearchWeightsRequest {
9
9
  interface Raw {
10
- semantic_similarity: number;
11
- keywords: number;
10
+ semantic_similarity?: number | null;
11
+ keywords?: number | null;
12
12
  }
13
13
  }
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.SearchWeightsRequest = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.SearchWeightsRequest = core.serialization.object({
32
- semanticSimilarity: core.serialization.property("semantic_similarity", core.serialization.number()),
33
- keywords: core.serialization.number(),
32
+ semanticSimilarity: core.serialization.property("semantic_similarity", core.serialization.number().optional()),
33
+ keywords: core.serialization.number().optional(),
34
34
  });
@@ -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 TemplatingNodeNumberResult: core.serialization.ObjectSchema<serializers.TemplatingNodeNumberResult.Raw, Vellum.TemplatingNodeNumberResult>;
8
+ export declare namespace TemplatingNodeNumberResult {
9
+ interface Raw {
10
+ id: string;
11
+ value?: number | null;
12
+ }
13
+ }
@@ -26,6 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ContentType = void 0;
29
+ exports.TemplatingNodeNumberResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.ContentType = core.serialization.enum_(["STRING", "JSON"]);
31
+ exports.TemplatingNodeNumberResult = core.serialization.object({
32
+ id: core.serialization.string(),
33
+ value: core.serialization.number().optional(),
34
+ });