vellum-ai 0.0.24 → 0.0.26
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.
- package/Client.js +1 -1
- package/api/resources/documents/client/Client.d.ts +11 -0
- package/api/resources/documents/client/Client.js +58 -0
- package/api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +11 -0
- package/api/resources/documents/client/requests/index.d.ts +1 -0
- package/api/types/DeploymentRead.d.ts +1 -0
- package/api/types/InputVariable.d.ts +9 -0
- package/api/types/InputVariableType.d.ts +14 -0
- package/api/types/InputVariableType.js +11 -0
- package/api/types/MetadataFilterConfigRequest.d.ts +15 -0
- package/api/types/MetadataFilterRuleCombinator.d.ts +12 -0
- package/api/types/MetadataFilterRuleCombinator.js +10 -0
- package/api/types/MetadataFilterRuleRequest.d.ts +15 -0
- package/api/types/ModelVersionExecConfig.d.ts +2 -2
- package/api/types/PromptTemplateBlockProperties.d.ts +1 -0
- package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
- package/api/types/RegisterPromptPromptInfoRequest.d.ts +2 -2
- package/api/types/RegisteredPromptInputVariableRequest.d.ts +11 -0
- package/api/types/RegisteredPromptInputVariableRequest.js +5 -0
- package/api/types/SearchFiltersRequest.d.ts +3 -0
- package/api/types/SetDocumentMetadataErrorResponse.d.ts +6 -0
- package/api/types/SetDocumentMetadataErrorResponse.js +5 -0
- package/api/types/SetDocumentMetadataResponse.d.ts +7 -0
- package/api/types/SetDocumentMetadataResponse.js +5 -0
- package/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
- package/api/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/api/types/index.d.ts +8 -2
- package/api/types/index.js +8 -2
- package/dist/Client.js +1 -1
- package/dist/api/resources/documents/client/Client.d.ts +11 -0
- package/dist/api/resources/documents/client/Client.js +58 -0
- package/dist/api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +11 -0
- package/dist/api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js +5 -0
- package/dist/api/resources/documents/client/requests/index.d.ts +1 -0
- package/dist/api/types/DeploymentRead.d.ts +1 -0
- package/dist/api/types/InputVariable.d.ts +9 -0
- package/dist/api/types/InputVariable.js +5 -0
- package/dist/api/types/InputVariableType.d.ts +14 -0
- package/dist/api/types/InputVariableType.js +11 -0
- package/dist/api/types/MetadataFilterConfigRequest.d.ts +15 -0
- package/dist/api/types/MetadataFilterConfigRequest.js +5 -0
- package/dist/api/types/MetadataFilterRuleCombinator.d.ts +12 -0
- package/dist/api/types/MetadataFilterRuleCombinator.js +10 -0
- package/dist/api/types/MetadataFilterRuleRequest.d.ts +15 -0
- package/dist/api/types/MetadataFilterRuleRequest.js +5 -0
- package/dist/api/types/ModelVersionExecConfig.d.ts +2 -2
- package/dist/api/types/PromptTemplateBlockProperties.d.ts +1 -0
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
- package/dist/api/types/RegisterPromptPromptInfoRequest.d.ts +2 -2
- package/dist/api/types/RegisteredPromptInputVariableRequest.d.ts +11 -0
- package/dist/api/types/RegisteredPromptInputVariableRequest.js +5 -0
- package/dist/api/types/SearchFiltersRequest.d.ts +3 -0
- package/dist/api/types/SetDocumentMetadataErrorResponse.d.ts +6 -0
- package/dist/api/types/SetDocumentMetadataErrorResponse.js +5 -0
- package/dist/api/types/SetDocumentMetadataResponse.d.ts +7 -0
- package/dist/api/types/SetDocumentMetadataResponse.js +5 -0
- package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
- package/dist/api/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/dist/api/types/index.d.ts +8 -2
- package/dist/api/types/index.js +8 -2
- package/dist/serialization/resources/documents/client/index.d.ts +1 -0
- package/dist/serialization/resources/documents/client/index.js +17 -0
- package/dist/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +14 -0
- package/dist/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js +35 -0
- package/dist/serialization/resources/documents/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/documents/client/requests/index.js +5 -0
- package/dist/serialization/resources/documents/index.d.ts +1 -0
- package/dist/serialization/resources/documents/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/types/DeploymentRead.d.ts +1 -0
- package/dist/serialization/types/DeploymentRead.js +1 -0
- package/dist/serialization/types/InputVariable.d.ts +14 -0
- package/dist/serialization/types/InputVariable.js +35 -0
- package/dist/serialization/types/InputVariableType.d.ts +10 -0
- package/dist/serialization/types/{PromptTemplateInputVariable.js → InputVariableType.js} +2 -4
- package/dist/serialization/types/MetadataFilterConfigRequest.d.ts +17 -0
- package/dist/serialization/types/MetadataFilterConfigRequest.js +40 -0
- package/dist/serialization/types/MetadataFilterRuleCombinator.d.ts +10 -0
- package/{serialization/types/PromptTemplateInputVariable.js → dist/serialization/types/MetadataFilterRuleCombinator.js} +2 -4
- package/dist/serialization/types/MetadataFilterRuleRequest.d.ts +17 -0
- package/dist/serialization/types/MetadataFilterRuleRequest.js +40 -0
- package/dist/serialization/types/ModelVersionExecConfig.d.ts +1 -1
- package/dist/serialization/types/ModelVersionExecConfig.js +1 -1
- package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +1 -0
- package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -0
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -0
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.d.ts +1 -1
- package/dist/serialization/types/RegisterPromptPromptInfoRequest.js +1 -1
- package/dist/serialization/types/RegisteredPromptInputVariableRequest.d.ts +14 -0
- package/dist/serialization/types/RegisteredPromptInputVariableRequest.js +35 -0
- package/dist/serialization/types/SearchFiltersRequest.d.ts +1 -0
- package/dist/serialization/types/SearchFiltersRequest.js +1 -0
- package/dist/serialization/types/SetDocumentMetadataErrorResponse.d.ts +12 -0
- package/dist/serialization/types/{PromptTemplateInputVariableRequest.js → SetDocumentMetadataErrorResponse.js} +3 -3
- package/dist/serialization/types/SetDocumentMetadataResponse.d.ts +12 -0
- package/dist/serialization/types/SetDocumentMetadataResponse.js +33 -0
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.js +1 -1
- package/dist/serialization/types/index.d.ts +8 -2
- package/dist/serialization/types/index.js +8 -2
- package/package.json +1 -1
- package/serialization/resources/documents/client/index.d.ts +1 -0
- package/serialization/resources/documents/client/index.js +17 -0
- package/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +14 -0
- package/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js +35 -0
- package/serialization/resources/documents/client/requests/index.d.ts +1 -0
- package/serialization/resources/documents/client/requests/index.js +5 -0
- package/serialization/resources/documents/index.d.ts +1 -0
- package/serialization/resources/documents/index.js +17 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/types/DeploymentRead.d.ts +1 -0
- package/serialization/types/DeploymentRead.js +1 -0
- package/serialization/types/InputVariable.d.ts +14 -0
- package/serialization/types/InputVariable.js +35 -0
- package/serialization/types/InputVariableType.d.ts +10 -0
- package/serialization/types/InputVariableType.js +31 -0
- package/serialization/types/MetadataFilterConfigRequest.d.ts +17 -0
- package/serialization/types/MetadataFilterConfigRequest.js +40 -0
- package/serialization/types/MetadataFilterRuleCombinator.d.ts +10 -0
- package/serialization/types/MetadataFilterRuleCombinator.js +31 -0
- package/serialization/types/MetadataFilterRuleRequest.d.ts +17 -0
- package/serialization/types/MetadataFilterRuleRequest.js +40 -0
- package/serialization/types/ModelVersionExecConfig.d.ts +1 -1
- package/serialization/types/ModelVersionExecConfig.js +1 -1
- package/serialization/types/PromptTemplateBlockProperties.d.ts +1 -0
- package/serialization/types/PromptTemplateBlockProperties.js +1 -0
- package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -0
- package/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -0
- package/serialization/types/RegisterPromptPromptInfoRequest.d.ts +1 -1
- package/serialization/types/RegisterPromptPromptInfoRequest.js +1 -1
- package/serialization/types/RegisteredPromptInputVariableRequest.d.ts +14 -0
- package/serialization/types/RegisteredPromptInputVariableRequest.js +35 -0
- package/serialization/types/SearchFiltersRequest.d.ts +1 -0
- package/serialization/types/SearchFiltersRequest.js +1 -0
- package/serialization/types/SetDocumentMetadataErrorResponse.d.ts +12 -0
- package/serialization/types/{PromptTemplateInputVariableRequest.js → SetDocumentMetadataErrorResponse.js} +3 -3
- package/serialization/types/SetDocumentMetadataResponse.d.ts +12 -0
- package/serialization/types/SetDocumentMetadataResponse.js +33 -0
- package/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
- package/serialization/types/WorkflowExecutionEventErrorCode.js +1 -1
- package/serialization/types/index.d.ts +8 -2
- package/serialization/types/index.js +8 -2
- package/api/types/PromptTemplateInputVariable.d.ts +0 -7
- package/api/types/PromptTemplateInputVariableRequest.d.ts +0 -7
- package/dist/api/types/PromptTemplateInputVariable.d.ts +0 -7
- package/dist/api/types/PromptTemplateInputVariableRequest.d.ts +0 -7
- package/dist/serialization/types/PromptTemplateInputVariable.d.ts +0 -12
- package/dist/serialization/types/PromptTemplateInputVariableRequest.d.ts +0 -12
- package/serialization/types/PromptTemplateInputVariable.d.ts +0 -12
- package/serialization/types/PromptTemplateInputVariableRequest.d.ts +0 -12
- /package/api/{types/PromptTemplateInputVariable.js → resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js} +0 -0
- /package/api/types/{PromptTemplateInputVariableRequest.js → InputVariable.js} +0 -0
- /package/{dist/api/types/PromptTemplateInputVariable.js → api/types/MetadataFilterConfigRequest.js} +0 -0
- /package/{dist/api/types/PromptTemplateInputVariableRequest.js → api/types/MetadataFilterRuleRequest.js} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface MetadataFilterRuleRequest {
|
|
6
|
+
combinator?: Vellum.MetadataFilterRuleCombinator;
|
|
7
|
+
negated?: boolean;
|
|
8
|
+
rules?: Vellum.MetadataFilterRuleRequest[];
|
|
9
|
+
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
10
|
+
field?: string;
|
|
11
|
+
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
12
|
+
operator?: string;
|
|
13
|
+
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
14
|
+
value?: string;
|
|
15
|
+
}
|
|
@@ -5,8 +5,8 @@ import * as Vellum from "..";
|
|
|
5
5
|
export interface ModelVersionExecConfig {
|
|
6
6
|
/** The generation parameters that are passed to the LLM provider at runtime. */
|
|
7
7
|
parameters: Vellum.ModelVersionExecConfigParameters;
|
|
8
|
-
/**
|
|
9
|
-
inputVariables: Vellum.
|
|
8
|
+
/** Input variables specified in the prompt template. */
|
|
9
|
+
inputVariables: Vellum.InputVariable[];
|
|
10
10
|
/** The template used to generate prompts for this model version. */
|
|
11
11
|
promptTemplate?: string;
|
|
12
12
|
promptBlockData?: Vellum.PromptTemplateBlockData;
|
|
@@ -12,5 +12,6 @@ export interface PromptTemplateBlockPropertiesRequest {
|
|
|
12
12
|
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
13
13
|
functionDescription?: string;
|
|
14
14
|
functionParameters?: Record<string, unknown>;
|
|
15
|
+
functionForced?: boolean;
|
|
15
16
|
blocks?: Vellum.PromptTemplateBlockRequest[];
|
|
16
17
|
}
|
|
@@ -5,6 +5,6 @@ import * as Vellum from "..";
|
|
|
5
5
|
export interface RegisterPromptPromptInfoRequest {
|
|
6
6
|
promptSyntaxVersion?: number;
|
|
7
7
|
promptBlockData: Vellum.PromptTemplateBlockDataRequest;
|
|
8
|
-
/**
|
|
9
|
-
inputVariables: Vellum.
|
|
8
|
+
/** The input variables specified in the prompt template. */
|
|
9
|
+
inputVariables: Vellum.RegisteredPromptInputVariableRequest[];
|
|
10
10
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface RegisteredPromptInputVariableRequest {
|
|
6
|
+
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
7
|
+
key: string;
|
|
8
|
+
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
9
|
+
id?: string;
|
|
10
|
+
type?: Vellum.InputVariableType;
|
|
11
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
4
5
|
export interface SearchFiltersRequest {
|
|
5
6
|
/** The document external IDs to filter by */
|
|
6
7
|
externalIds?: string[];
|
|
8
|
+
/** The metadata filters to apply to the search */
|
|
9
|
+
metadata?: Vellum.MetadataFilterConfigRequest;
|
|
7
10
|
}
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* * `WORKFLOW_INITIALIZATION` - WORKFLOW_INITIALIZATION
|
|
6
6
|
* * `NODE_EXECUTION` - NODE_EXECUTION
|
|
7
|
+
* * `NODE_EXECUTION_COUNT_LIMIT_REACHED` - NODE_EXECUTION_COUNT_LIMIT_REACHED
|
|
7
8
|
*/
|
|
8
|
-
export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION";
|
|
9
|
+
export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED";
|
|
9
10
|
export declare const WorkflowExecutionEventErrorCode: {
|
|
10
11
|
readonly WorkflowInitialization: "WORKFLOW_INITIALIZATION";
|
|
11
12
|
readonly NodeExecution: "NODE_EXECUTION";
|
|
13
|
+
readonly NodeExecutionCountLimitReached: "NODE_EXECUTION_COUNT_LIMIT_REACHED";
|
|
12
14
|
};
|
|
@@ -30,7 +30,12 @@ export * from "./GenerateStreamResponse";
|
|
|
30
30
|
export * from "./GenerateStreamResult";
|
|
31
31
|
export * from "./GenerateStreamResultData";
|
|
32
32
|
export * from "./IndexingStateEnum";
|
|
33
|
+
export * from "./InputVariable";
|
|
34
|
+
export * from "./InputVariableType";
|
|
33
35
|
export * from "./LogprobsEnum";
|
|
36
|
+
export * from "./MetadataFilterConfigRequest";
|
|
37
|
+
export * from "./MetadataFilterRuleCombinator";
|
|
38
|
+
export * from "./MetadataFilterRuleRequest";
|
|
34
39
|
export * from "./ModelTypeEnum";
|
|
35
40
|
export * from "./ModelVersionBuildConfig";
|
|
36
41
|
export * from "./ModelVersionCompilePromptResponse";
|
|
@@ -53,8 +58,6 @@ export * from "./PromptTemplateBlockDataRequest";
|
|
|
53
58
|
export * from "./PromptTemplateBlockProperties";
|
|
54
59
|
export * from "./PromptTemplateBlockPropertiesRequest";
|
|
55
60
|
export * from "./PromptTemplateBlockRequest";
|
|
56
|
-
export * from "./PromptTemplateInputVariable";
|
|
57
|
-
export * from "./PromptTemplateInputVariableRequest";
|
|
58
61
|
export * from "./ProviderEnum";
|
|
59
62
|
export * from "./RegisterPromptErrorResponse";
|
|
60
63
|
export * from "./RegisterPromptModelParametersRequest";
|
|
@@ -62,6 +65,7 @@ export * from "./RegisterPromptPrompt";
|
|
|
62
65
|
export * from "./RegisterPromptPromptInfoRequest";
|
|
63
66
|
export * from "./RegisterPromptResponse";
|
|
64
67
|
export * from "./RegisteredPromptDeployment";
|
|
68
|
+
export * from "./RegisteredPromptInputVariableRequest";
|
|
65
69
|
export * from "./RegisteredPromptModelVersion";
|
|
66
70
|
export * from "./RegisteredPromptSandbox";
|
|
67
71
|
export * from "./RegisteredPromptSandboxSnapshot";
|
|
@@ -82,6 +86,8 @@ export * from "./SearchResponse";
|
|
|
82
86
|
export * from "./SearchResult";
|
|
83
87
|
export * from "./SearchResultMergingRequest";
|
|
84
88
|
export * from "./SearchWeightsRequest";
|
|
89
|
+
export * from "./SetDocumentMetadataErrorResponse";
|
|
90
|
+
export * from "./SetDocumentMetadataResponse";
|
|
85
91
|
export * from "./SlimDocument";
|
|
86
92
|
export * from "./SlimDocumentStatusEnum";
|
|
87
93
|
export * from "./SubmitCompletionActualRequest";
|
package/dist/api/types/index.js
CHANGED
|
@@ -46,7 +46,12 @@ __exportStar(require("./GenerateStreamResponse"), exports);
|
|
|
46
46
|
__exportStar(require("./GenerateStreamResult"), exports);
|
|
47
47
|
__exportStar(require("./GenerateStreamResultData"), exports);
|
|
48
48
|
__exportStar(require("./IndexingStateEnum"), exports);
|
|
49
|
+
__exportStar(require("./InputVariable"), exports);
|
|
50
|
+
__exportStar(require("./InputVariableType"), exports);
|
|
49
51
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
52
|
+
__exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
53
|
+
__exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
54
|
+
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|
|
50
55
|
__exportStar(require("./ModelTypeEnum"), exports);
|
|
51
56
|
__exportStar(require("./ModelVersionBuildConfig"), exports);
|
|
52
57
|
__exportStar(require("./ModelVersionCompilePromptResponse"), exports);
|
|
@@ -69,8 +74,6 @@ __exportStar(require("./PromptTemplateBlockDataRequest"), exports);
|
|
|
69
74
|
__exportStar(require("./PromptTemplateBlockProperties"), exports);
|
|
70
75
|
__exportStar(require("./PromptTemplateBlockPropertiesRequest"), exports);
|
|
71
76
|
__exportStar(require("./PromptTemplateBlockRequest"), exports);
|
|
72
|
-
__exportStar(require("./PromptTemplateInputVariable"), exports);
|
|
73
|
-
__exportStar(require("./PromptTemplateInputVariableRequest"), exports);
|
|
74
77
|
__exportStar(require("./ProviderEnum"), exports);
|
|
75
78
|
__exportStar(require("./RegisterPromptErrorResponse"), exports);
|
|
76
79
|
__exportStar(require("./RegisterPromptModelParametersRequest"), exports);
|
|
@@ -78,6 +81,7 @@ __exportStar(require("./RegisterPromptPrompt"), exports);
|
|
|
78
81
|
__exportStar(require("./RegisterPromptPromptInfoRequest"), exports);
|
|
79
82
|
__exportStar(require("./RegisterPromptResponse"), exports);
|
|
80
83
|
__exportStar(require("./RegisteredPromptDeployment"), exports);
|
|
84
|
+
__exportStar(require("./RegisteredPromptInputVariableRequest"), exports);
|
|
81
85
|
__exportStar(require("./RegisteredPromptModelVersion"), exports);
|
|
82
86
|
__exportStar(require("./RegisteredPromptSandbox"), exports);
|
|
83
87
|
__exportStar(require("./RegisteredPromptSandboxSnapshot"), exports);
|
|
@@ -98,6 +102,8 @@ __exportStar(require("./SearchResponse"), exports);
|
|
|
98
102
|
__exportStar(require("./SearchResult"), exports);
|
|
99
103
|
__exportStar(require("./SearchResultMergingRequest"), exports);
|
|
100
104
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
105
|
+
__exportStar(require("./SetDocumentMetadataErrorResponse"), exports);
|
|
106
|
+
__exportStar(require("./SetDocumentMetadataResponse"), exports);
|
|
101
107
|
__exportStar(require("./SlimDocument"), exports);
|
|
102
108
|
__exportStar(require("./SlimDocumentStatusEnum"), exports);
|
|
103
109
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -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 SetDocumentMetadataRequestBodyRequest: core.serialization.Schema<serializers.SetDocumentMetadataRequestBodyRequest.Raw, Vellum.SetDocumentMetadataRequestBodyRequest>;
|
|
8
|
+
export declare namespace SetDocumentMetadataRequestBodyRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
document_id?: string | null;
|
|
11
|
+
external_id?: string | null;
|
|
12
|
+
metadata: Record<string, unknown>;
|
|
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.SetDocumentMetadataRequestBodyRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
exports.SetDocumentMetadataRequestBodyRequest = core.serialization.object({
|
|
32
|
+
documentId: core.serialization.property("document_id", core.serialization.string().optional()),
|
|
33
|
+
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
34
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
35
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SetDocumentMetadataRequestBodyRequest } from "./SetDocumentMetadataRequestBodyRequest";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SetDocumentMetadataRequestBodyRequest = void 0;
|
|
4
|
+
var SetDocumentMetadataRequestBodyRequest_1 = require("./SetDocumentMetadataRequestBodyRequest");
|
|
5
|
+
Object.defineProperty(exports, "SetDocumentMetadataRequestBodyRequest", { enumerable: true, get: function () { return SetDocumentMetadataRequestBodyRequest_1.SetDocumentMetadataRequestBodyRequest; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * as documentIndexes from "./documentIndexes";
|
|
2
2
|
export * from "./documentIndexes/client/requests";
|
|
3
|
+
export * as documents from "./documents";
|
|
4
|
+
export * from "./documents/client/requests";
|
|
3
5
|
export * as modelVersions from "./modelVersions";
|
|
4
6
|
export * from "./modelVersions/client/requests";
|
|
5
7
|
export * as registeredPrompts from "./registeredPrompts";
|
|
@@ -26,9 +26,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.documentIndexes = void 0;
|
|
29
|
+
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.documents = exports.documentIndexes = void 0;
|
|
30
30
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
31
31
|
__exportStar(require("./documentIndexes/client/requests"), exports);
|
|
32
|
+
exports.documents = __importStar(require("./documents"));
|
|
33
|
+
__exportStar(require("./documents/client/requests"), exports);
|
|
32
34
|
exports.modelVersions = __importStar(require("./modelVersions"));
|
|
33
35
|
__exportStar(require("./modelVersions/client/requests"), exports);
|
|
34
36
|
exports.registeredPrompts = __importStar(require("./registeredPrompts"));
|
|
@@ -38,4 +38,5 @@ exports.DeploymentRead = core.serialization.object({
|
|
|
38
38
|
modelType: core.serialization.property("model_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelTypeEnum)),
|
|
39
39
|
activeModelVersionIds: core.serialization.property("active_model_version_ids", core.serialization.list(core.serialization.string())),
|
|
40
40
|
lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.string()),
|
|
41
|
+
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).InputVariable))),
|
|
41
42
|
});
|
|
@@ -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 InputVariable: core.serialization.ObjectSchema<serializers.InputVariable.Raw, Vellum.InputVariable>;
|
|
8
|
+
export declare namespace InputVariable {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
key: string;
|
|
12
|
+
type: serializers.InputVariableType.Raw;
|
|
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.InputVariable = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.InputVariable = core.serialization.object({
|
|
32
|
+
id: core.serialization.string(),
|
|
33
|
+
key: core.serialization.string(),
|
|
34
|
+
type: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).InputVariableType),
|
|
35
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const InputVariableType: core.serialization.Schema<serializers.InputVariableType.Raw, Vellum.InputVariableType>;
|
|
8
|
+
export declare namespace InputVariableType {
|
|
9
|
+
type Raw = "STRING" | "JSON" | "CHAT_HISTORY";
|
|
10
|
+
}
|
|
@@ -26,8 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.InputVariableType = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
key: core.serialization.string(),
|
|
33
|
-
});
|
|
31
|
+
exports.InputVariableType = core.serialization.enum_(["STRING", "JSON", "CHAT_HISTORY"]);
|
|
@@ -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 MetadataFilterConfigRequest: core.serialization.ObjectSchema<serializers.MetadataFilterConfigRequest.Raw, Vellum.MetadataFilterConfigRequest>;
|
|
8
|
+
export declare namespace MetadataFilterConfigRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
combinator?: serializers.MetadataFilterRuleCombinator.Raw | null;
|
|
11
|
+
negated?: boolean | null;
|
|
12
|
+
rules?: serializers.MetadataFilterRuleRequest.Raw[] | null;
|
|
13
|
+
field?: string | null;
|
|
14
|
+
operator?: string | null;
|
|
15
|
+
value?: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -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.MetadataFilterConfigRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.MetadataFilterConfigRequest = core.serialization.object({
|
|
32
|
+
combinator: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).MetadataFilterRuleCombinator).optional(),
|
|
33
|
+
negated: core.serialization.boolean().optional(),
|
|
34
|
+
rules: core.serialization
|
|
35
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).MetadataFilterRuleRequest))
|
|
36
|
+
.optional(),
|
|
37
|
+
field: core.serialization.string().optional(),
|
|
38
|
+
operator: core.serialization.string().optional(),
|
|
39
|
+
value: core.serialization.string().optional(),
|
|
40
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const MetadataFilterRuleCombinator: core.serialization.Schema<serializers.MetadataFilterRuleCombinator.Raw, Vellum.MetadataFilterRuleCombinator>;
|
|
8
|
+
export declare namespace MetadataFilterRuleCombinator {
|
|
9
|
+
type Raw = "and" | "or";
|
|
10
|
+
}
|
|
@@ -26,8 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.MetadataFilterRuleCombinator = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
key: core.serialization.string(),
|
|
33
|
-
});
|
|
31
|
+
exports.MetadataFilterRuleCombinator = core.serialization.enum_(["and", "or"]);
|
|
@@ -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 MetadataFilterRuleRequest: core.serialization.ObjectSchema<serializers.MetadataFilterRuleRequest.Raw, Vellum.MetadataFilterRuleRequest>;
|
|
8
|
+
export declare namespace MetadataFilterRuleRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
combinator?: serializers.MetadataFilterRuleCombinator.Raw | null;
|
|
11
|
+
negated?: boolean | null;
|
|
12
|
+
rules?: serializers.MetadataFilterRuleRequest.Raw[] | null;
|
|
13
|
+
field?: string | null;
|
|
14
|
+
operator?: string | null;
|
|
15
|
+
value?: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -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.MetadataFilterRuleRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.MetadataFilterRuleRequest = core.serialization.object({
|
|
32
|
+
combinator: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).MetadataFilterRuleCombinator).optional(),
|
|
33
|
+
negated: core.serialization.boolean().optional(),
|
|
34
|
+
rules: core.serialization
|
|
35
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).MetadataFilterRuleRequest))
|
|
36
|
+
.optional(),
|
|
37
|
+
field: core.serialization.string().optional(),
|
|
38
|
+
operator: core.serialization.string().optional(),
|
|
39
|
+
value: core.serialization.string().optional(),
|
|
40
|
+
});
|
|
@@ -8,7 +8,7 @@ export declare const ModelVersionExecConfig: core.serialization.ObjectSchema<ser
|
|
|
8
8
|
export declare namespace ModelVersionExecConfig {
|
|
9
9
|
interface Raw {
|
|
10
10
|
parameters: serializers.ModelVersionExecConfigParameters.Raw;
|
|
11
|
-
input_variables: serializers.
|
|
11
|
+
input_variables: serializers.InputVariable.Raw[];
|
|
12
12
|
prompt_template?: string | null;
|
|
13
13
|
prompt_block_data?: serializers.PromptTemplateBlockData.Raw | null;
|
|
14
14
|
prompt_syntax_version?: number | null;
|
|
@@ -30,7 +30,7 @@ exports.ModelVersionExecConfig = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.ModelVersionExecConfig = core.serialization.object({
|
|
32
32
|
parameters: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelVersionExecConfigParameters),
|
|
33
|
-
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).
|
|
33
|
+
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).InputVariable))),
|
|
34
34
|
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
35
35
|
promptBlockData: core.serialization.property("prompt_block_data", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlockData).optional()),
|
|
36
36
|
promptSyntaxVersion: core.serialization.property("prompt_syntax_version", core.serialization.number().optional()),
|
|
@@ -14,6 +14,7 @@ export declare namespace PromptTemplateBlockProperties {
|
|
|
14
14
|
function_name?: string | null;
|
|
15
15
|
function_description?: string | null;
|
|
16
16
|
function_parameters?: Record<string, unknown> | null;
|
|
17
|
+
function_forced?: boolean | null;
|
|
17
18
|
blocks?: serializers.PromptTemplateBlock.Raw[] | null;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
@@ -36,6 +36,7 @@ exports.PromptTemplateBlockProperties = core.serialization.object({
|
|
|
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()),
|
|
39
|
+
functionForced: core.serialization.property("function_forced", core.serialization.boolean().optional()),
|
|
39
40
|
blocks: core.serialization
|
|
40
41
|
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).PromptTemplateBlock))
|
|
41
42
|
.optional(),
|