vellum-ai 0.0.40 → 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.
- package/Client.d.ts +2 -14
- package/Client.js +2 -14
- package/api/client/requests/GenerateBodyRequest.d.ts +1 -1
- package/api/client/requests/GenerateStreamBodyRequest.d.ts +1 -1
- package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/api/resources/deployments/client/Client.d.ts +0 -4
- package/api/resources/deployments/client/Client.js +0 -4
- package/api/resources/documentIndexes/client/Client.d.ts +4 -2
- package/api/resources/documentIndexes/client/Client.js +39 -2
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +2 -2
- package/api/resources/documents/client/Client.d.ts +0 -10
- package/api/resources/documents/client/Client.js +0 -10
- package/api/resources/documents/client/requests/PatchedDocumentUpdateRequest.d.ts +1 -1
- package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +1 -1
- package/api/resources/modelVersions/client/Client.d.ts +0 -6
- package/api/resources/modelVersions/client/Client.js +0 -6
- package/api/resources/registeredPrompts/client/Client.d.ts +0 -2
- package/api/resources/registeredPrompts/client/Client.js +0 -2
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +3 -3
- package/api/resources/sandboxes/client/Client.d.ts +0 -4
- package/api/resources/sandboxes/client/Client.js +0 -4
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +1 -1
- package/api/resources/testSuites/client/Client.d.ts +1 -4
- package/api/resources/testSuites/client/Client.js +1 -4
- package/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +1 -1
- package/api/types/ApiNodeResult.d.ts +7 -0
- package/api/types/{ContentType.js → ApiNodeResult.js} +0 -5
- package/api/types/ApiNodeResultData.d.ts +11 -0
- package/{dist/api/types/ContentType.js → api/types/ApiNodeResultData.js} +0 -5
- package/api/types/DeploymentRead.d.ts +4 -4
- package/api/types/DocumentIndexRead.d.ts +3 -3
- package/api/types/DocumentRead.d.ts +2 -2
- package/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/api/types/LogicalOperator.d.ts +98 -0
- package/api/types/LogicalOperator.js +26 -0
- package/api/types/MetadataFilterConfigRequest.d.ts +1 -4
- package/api/types/MetadataFilterRuleRequest.d.ts +1 -4
- package/api/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/api/types/ModelVersionRead.d.ts +3 -3
- package/api/types/NodeInputCompiledNumberValue.d.ts +8 -0
- package/api/types/NodeInputCompiledNumberValue.js +5 -0
- package/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/api/types/PromptTemplateBlockProperties.d.ts +1 -1
- package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -3
- package/api/types/PromptTemplateBlockRequest.d.ts +0 -1
- package/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -2
- package/api/types/ScenarioInputRequest.d.ts +0 -1
- package/api/types/SearchResultDocument.d.ts +1 -1
- package/api/types/SearchResultMergingRequest.d.ts +1 -1
- package/api/types/SearchWeightsRequest.d.ts +3 -3
- package/api/types/SlimDocument.d.ts +2 -2
- package/api/types/SubmitCompletionActualRequest.d.ts +1 -1
- package/api/types/TemplatingNodeNumberResult.d.ts +7 -0
- package/api/types/TemplatingNodeNumberResult.js +5 -0
- package/api/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/api/types/TerminalNodeNumberResult.d.ts +9 -0
- package/api/types/TerminalNodeNumberResult.js +5 -0
- package/api/types/TerminalNodeResultOutput.d.ts +4 -1
- package/api/types/VellumVariableType.d.ts +6 -4
- package/api/types/VellumVariableType.js +1 -0
- package/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
- package/api/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/api/types/WorkflowNodeResultEvent.d.ts +1 -1
- package/api/types/WorkflowRequestChatHistoryInputRequest.d.ts +1 -1
- package/api/types/WorkflowRequestJsonInputRequest.d.ts +1 -1
- package/api/types/WorkflowRequestStringInputRequest.d.ts +1 -1
- package/api/types/WorkflowResultEvent.d.ts +1 -1
- package/api/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/api/types/WorkflowResultEventOutputDataNumber.d.ts +13 -0
- package/api/types/WorkflowResultEventOutputDataNumber.js +5 -0
- package/api/types/index.d.ts +7 -1
- package/api/types/index.js +7 -1
- package/dist/Client.d.ts +2 -14
- package/dist/Client.js +2 -14
- package/dist/api/client/requests/GenerateBodyRequest.d.ts +1 -1
- package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +1 -1
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/dist/api/resources/deployments/client/Client.d.ts +0 -4
- package/dist/api/resources/deployments/client/Client.js +0 -4
- package/dist/api/resources/documentIndexes/client/Client.d.ts +4 -2
- package/dist/api/resources/documentIndexes/client/Client.js +39 -2
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +2 -2
- package/dist/api/resources/documents/client/Client.d.ts +0 -10
- package/dist/api/resources/documents/client/Client.js +0 -10
- package/dist/api/resources/documents/client/requests/PatchedDocumentUpdateRequest.d.ts +1 -1
- package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +1 -1
- package/dist/api/resources/modelVersions/client/Client.d.ts +0 -6
- package/dist/api/resources/modelVersions/client/Client.js +0 -6
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +0 -2
- package/dist/api/resources/registeredPrompts/client/Client.js +0 -2
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +3 -3
- package/dist/api/resources/sandboxes/client/Client.d.ts +0 -4
- package/dist/api/resources/sandboxes/client/Client.js +0 -4
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +1 -1
- package/dist/api/resources/testSuites/client/Client.d.ts +1 -4
- package/dist/api/resources/testSuites/client/Client.js +1 -4
- package/dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +1 -1
- package/dist/api/types/ApiNodeResult.d.ts +7 -0
- package/dist/api/types/ApiNodeResult.js +5 -0
- package/dist/api/types/ApiNodeResultData.d.ts +11 -0
- package/dist/api/types/ApiNodeResultData.js +5 -0
- package/dist/api/types/DeploymentRead.d.ts +4 -4
- package/dist/api/types/DocumentIndexRead.d.ts +3 -3
- package/dist/api/types/DocumentRead.d.ts +2 -2
- package/dist/api/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/dist/api/types/LogicalOperator.d.ts +98 -0
- package/dist/api/types/LogicalOperator.js +26 -0
- package/dist/api/types/MetadataFilterConfigRequest.d.ts +1 -4
- package/dist/api/types/MetadataFilterRuleRequest.d.ts +1 -4
- package/dist/api/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/dist/api/types/ModelVersionRead.d.ts +3 -3
- package/dist/api/types/NodeInputCompiledNumberValue.d.ts +8 -0
- package/dist/api/types/NodeInputCompiledNumberValue.js +5 -0
- package/dist/api/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/dist/api/types/PromptTemplateBlockProperties.d.ts +1 -1
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -3
- package/dist/api/types/PromptTemplateBlockRequest.d.ts +0 -1
- package/dist/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -2
- package/dist/api/types/ScenarioInputRequest.d.ts +0 -1
- package/dist/api/types/SearchResultDocument.d.ts +1 -1
- package/dist/api/types/SearchResultMergingRequest.d.ts +1 -1
- package/dist/api/types/SearchWeightsRequest.d.ts +3 -3
- package/dist/api/types/SlimDocument.d.ts +2 -2
- package/dist/api/types/SubmitCompletionActualRequest.d.ts +1 -1
- package/dist/api/types/TemplatingNodeNumberResult.d.ts +7 -0
- package/dist/api/types/TemplatingNodeNumberResult.js +5 -0
- package/dist/api/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/dist/api/types/TerminalNodeNumberResult.d.ts +9 -0
- package/dist/api/types/TerminalNodeNumberResult.js +5 -0
- package/dist/api/types/TerminalNodeResultOutput.d.ts +4 -1
- package/dist/api/types/VellumVariableType.d.ts +6 -4
- package/dist/api/types/VellumVariableType.js +1 -0
- package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
- package/dist/api/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/api/types/WorkflowNodeResultEvent.d.ts +1 -1
- package/dist/api/types/WorkflowRequestChatHistoryInputRequest.d.ts +1 -1
- package/dist/api/types/WorkflowRequestJsonInputRequest.d.ts +1 -1
- package/dist/api/types/WorkflowRequestStringInputRequest.d.ts +1 -1
- package/dist/api/types/WorkflowResultEvent.d.ts +1 -1
- package/dist/api/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/dist/api/types/WorkflowResultEventOutputDataNumber.d.ts +13 -0
- package/dist/api/types/WorkflowResultEventOutputDataNumber.js +5 -0
- package/dist/api/types/index.d.ts +7 -1
- package/dist/api/types/index.js +7 -1
- package/dist/serialization/types/ApiNodeResult.d.ts +12 -0
- package/dist/serialization/types/ApiNodeResult.js +33 -0
- package/dist/serialization/types/ApiNodeResultData.d.ts +17 -0
- package/dist/serialization/types/ApiNodeResultData.js +38 -0
- package/dist/serialization/types/DeploymentRead.js +2 -2
- package/dist/serialization/types/DocumentIndexRead.js +1 -1
- package/dist/serialization/types/DocumentRead.js +1 -1
- package/dist/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/dist/serialization/types/EnrichedNormalizedCompletion.js +1 -1
- package/dist/serialization/types/LogicalOperator.d.ts +10 -0
- package/dist/serialization/types/LogicalOperator.js +50 -0
- package/dist/serialization/types/MetadataFilterConfigRequest.d.ts +1 -1
- package/dist/serialization/types/MetadataFilterConfigRequest.js +1 -1
- package/dist/serialization/types/MetadataFilterRuleRequest.d.ts +1 -1
- package/dist/serialization/types/MetadataFilterRuleRequest.js +1 -1
- package/dist/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/dist/serialization/types/ModelVersionExecConfigParameters.js +2 -2
- package/dist/serialization/types/ModelVersionRead.js +1 -1
- package/dist/serialization/types/NodeInputCompiledNumberValue.d.ts +14 -0
- package/dist/serialization/types/NodeInputCompiledNumberValue.js +35 -0
- package/dist/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/dist/serialization/types/NodeInputVariableCompiledValue.js +1 -0
- package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +1 -1
- package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -1
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -1
- package/dist/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -1
- package/dist/serialization/types/SearchResultMergingRequest.d.ts +1 -1
- package/dist/serialization/types/SearchResultMergingRequest.js +1 -1
- package/dist/serialization/types/SearchWeightsRequest.d.ts +2 -2
- package/dist/serialization/types/SearchWeightsRequest.js +2 -2
- package/dist/serialization/types/SlimDocument.js +1 -1
- package/dist/serialization/types/SubmitCompletionActualRequest.js +1 -1
- package/dist/serialization/types/TemplatingNodeNumberResult.d.ts +13 -0
- package/dist/serialization/types/{ContentType.js → TemplatingNodeNumberResult.js} +5 -2
- package/dist/serialization/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/dist/serialization/types/TemplatingNodeResultOutput.js +1 -0
- package/dist/serialization/types/TerminalNodeNumberResult.d.ts +14 -0
- package/dist/serialization/types/TerminalNodeNumberResult.js +35 -0
- package/dist/serialization/types/TerminalNodeResultOutput.d.ts +4 -1
- package/dist/serialization/types/TerminalNodeResultOutput.js +1 -0
- package/dist/serialization/types/VellumVariableType.d.ts +1 -1
- package/dist/serialization/types/VellumVariableType.js +1 -1
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/dist/serialization/types/WorkflowNodeResultData.d.ts +4 -1
- package/dist/serialization/types/WorkflowNodeResultData.js +1 -0
- package/dist/serialization/types/WorkflowNodeResultEvent.js +1 -1
- package/dist/serialization/types/WorkflowResultEvent.js +1 -1
- package/dist/serialization/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/dist/serialization/types/WorkflowResultEventOutputData.js +1 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataNumber.d.ts +17 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataNumber.js +38 -0
- package/dist/serialization/types/index.d.ts +7 -1
- package/dist/serialization/types/index.js +7 -1
- package/package.json +1 -1
- package/serialization/types/ApiNodeResult.d.ts +12 -0
- package/serialization/types/ApiNodeResult.js +33 -0
- package/serialization/types/ApiNodeResultData.d.ts +17 -0
- package/serialization/types/ApiNodeResultData.js +38 -0
- package/serialization/types/DeploymentRead.js +2 -2
- package/serialization/types/DocumentIndexRead.js +1 -1
- package/serialization/types/DocumentRead.js +1 -1
- package/serialization/types/EnrichedNormalizedCompletion.d.ts +1 -1
- package/serialization/types/EnrichedNormalizedCompletion.js +1 -1
- package/serialization/types/LogicalOperator.d.ts +10 -0
- package/serialization/types/LogicalOperator.js +50 -0
- package/serialization/types/MetadataFilterConfigRequest.d.ts +1 -1
- package/serialization/types/MetadataFilterConfigRequest.js +1 -1
- package/serialization/types/MetadataFilterRuleRequest.d.ts +1 -1
- package/serialization/types/MetadataFilterRuleRequest.js +1 -1
- package/serialization/types/ModelVersionExecConfigParameters.d.ts +2 -2
- package/serialization/types/ModelVersionExecConfigParameters.js +2 -2
- package/serialization/types/ModelVersionRead.js +1 -1
- package/serialization/types/NodeInputCompiledNumberValue.d.ts +14 -0
- package/serialization/types/NodeInputCompiledNumberValue.js +35 -0
- package/serialization/types/NodeInputVariableCompiledValue.d.ts +4 -1
- package/serialization/types/NodeInputVariableCompiledValue.js +1 -0
- package/serialization/types/PromptTemplateBlockProperties.d.ts +1 -1
- package/serialization/types/PromptTemplateBlockProperties.js +1 -1
- package/serialization/types/PromptTemplateBlockPropertiesRequest.d.ts +1 -1
- package/serialization/types/PromptTemplateBlockPropertiesRequest.js +1 -1
- package/serialization/types/SearchResultMergingRequest.d.ts +1 -1
- package/serialization/types/SearchResultMergingRequest.js +1 -1
- package/serialization/types/SearchWeightsRequest.d.ts +2 -2
- package/serialization/types/SearchWeightsRequest.js +2 -2
- package/serialization/types/SlimDocument.js +1 -1
- package/serialization/types/SubmitCompletionActualRequest.js +1 -1
- package/serialization/types/TemplatingNodeNumberResult.d.ts +13 -0
- package/serialization/types/{ContentType.js → TemplatingNodeNumberResult.js} +5 -2
- package/serialization/types/TemplatingNodeResultOutput.d.ts +4 -1
- package/serialization/types/TemplatingNodeResultOutput.js +1 -0
- package/serialization/types/TerminalNodeNumberResult.d.ts +14 -0
- package/serialization/types/TerminalNodeNumberResult.js +35 -0
- package/serialization/types/TerminalNodeResultOutput.d.ts +4 -1
- package/serialization/types/TerminalNodeResultOutput.js +1 -0
- package/serialization/types/VellumVariableType.d.ts +1 -1
- package/serialization/types/VellumVariableType.js +1 -1
- package/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
- package/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/serialization/types/WorkflowNodeResultData.d.ts +4 -1
- package/serialization/types/WorkflowNodeResultData.js +1 -0
- package/serialization/types/WorkflowNodeResultEvent.js +1 -1
- package/serialization/types/WorkflowResultEvent.js +1 -1
- package/serialization/types/WorkflowResultEventOutputData.d.ts +4 -1
- package/serialization/types/WorkflowResultEventOutputData.js +1 -0
- package/serialization/types/WorkflowResultEventOutputDataNumber.d.ts +17 -0
- package/serialization/types/WorkflowResultEventOutputDataNumber.js +38 -0
- package/serialization/types/index.d.ts +7 -1
- package/serialization/types/index.js +7 -1
- package/api/types/ContentType.d.ts +0 -12
- package/dist/api/types/ContentType.d.ts +0 -12
- package/dist/serialization/types/ContentType.d.ts +0 -10
- package/serialization/types/ContentType.d.ts +0 -10
package/Client.d.ts
CHANGED
|
@@ -21,8 +21,6 @@ export declare class VellumClient {
|
|
|
21
21
|
protected readonly options: VellumClient.Options;
|
|
22
22
|
constructor(options: VellumClient.Options);
|
|
23
23
|
/**
|
|
24
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
25
|
-
*
|
|
26
24
|
* Executes a deployed Workflow and streams back its results.
|
|
27
25
|
* @throws {Vellum.BadRequestError}
|
|
28
26
|
* @throws {Vellum.NotFoundError}
|
|
@@ -30,8 +28,6 @@ export declare class VellumClient {
|
|
|
30
28
|
*/
|
|
31
29
|
executeWorkflowStream(request: Vellum.ExecuteWorkflowStreamRequest, cb: (data: Vellum.WorkflowStreamEvent) => void, opts?: Pick<core.StreamingFetcher.Args, "onError" | "onFinish" | "abortController" | "timeoutMs">): Promise<void>;
|
|
32
30
|
/**
|
|
33
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
34
|
-
*
|
|
35
31
|
* Generate a completion using a previously defined deployment.
|
|
36
32
|
*
|
|
37
33
|
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
@@ -42,8 +38,6 @@ export declare class VellumClient {
|
|
|
42
38
|
*/
|
|
43
39
|
generate(request: Vellum.GenerateBodyRequest): Promise<Vellum.GenerateResponse>;
|
|
44
40
|
/**
|
|
45
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
46
|
-
*
|
|
47
41
|
* Generate a stream of completions using a previously defined deployment.
|
|
48
42
|
*
|
|
49
43
|
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
@@ -54,8 +48,6 @@ export declare class VellumClient {
|
|
|
54
48
|
*/
|
|
55
49
|
generateStream(request: Vellum.GenerateStreamBodyRequest, cb: (data: Vellum.GenerateStreamResponse) => void, opts?: Pick<core.StreamingFetcher.Args, "onError" | "onFinish" | "abortController" | "timeoutMs">): Promise<void>;
|
|
56
50
|
/**
|
|
57
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
58
|
-
*
|
|
59
51
|
* Perform a search against a document index.
|
|
60
52
|
*
|
|
61
53
|
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
@@ -65,8 +57,6 @@ export declare class VellumClient {
|
|
|
65
57
|
*/
|
|
66
58
|
search(request: Vellum.SearchRequestBodyRequest): Promise<Vellum.SearchResponse>;
|
|
67
59
|
/**
|
|
68
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
69
|
-
*
|
|
70
60
|
* Used to submit feedback regarding the quality of previously generated completions.
|
|
71
61
|
*
|
|
72
62
|
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
@@ -76,11 +66,9 @@ export declare class VellumClient {
|
|
|
76
66
|
*/
|
|
77
67
|
submitCompletionActuals(request: Vellum.SubmitCompletionActualsRequest): Promise<void>;
|
|
78
68
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
* Used to submit feedback regarding the quality of previous workflow execution and its outputs.
|
|
69
|
+
* Used to submit feedback regarding the quality of previous workflow execution and its outputs.
|
|
82
70
|
*
|
|
83
|
-
*
|
|
71
|
+
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
84
72
|
*/
|
|
85
73
|
submitWorkflowExecutionActuals(request: Vellum.SubmitWorkflowExecutionActualsRequest): Promise<void>;
|
|
86
74
|
protected _deployments: Deployments | undefined;
|
package/Client.js
CHANGED
|
@@ -49,8 +49,6 @@ class VellumClient {
|
|
|
49
49
|
this.options = options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
53
|
-
*
|
|
54
52
|
* Executes a deployed Workflow and streams back its results.
|
|
55
53
|
* @throws {Vellum.BadRequestError}
|
|
56
54
|
* @throws {Vellum.NotFoundError}
|
|
@@ -86,8 +84,6 @@ class VellumClient {
|
|
|
86
84
|
});
|
|
87
85
|
}
|
|
88
86
|
/**
|
|
89
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
90
|
-
*
|
|
91
87
|
* Generate a completion using a previously defined deployment.
|
|
92
88
|
*
|
|
93
89
|
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
@@ -149,8 +145,6 @@ class VellumClient {
|
|
|
149
145
|
}
|
|
150
146
|
}
|
|
151
147
|
/**
|
|
152
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
153
|
-
*
|
|
154
148
|
* Generate a stream of completions using a previously defined deployment.
|
|
155
149
|
*
|
|
156
150
|
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
@@ -187,8 +181,6 @@ class VellumClient {
|
|
|
187
181
|
});
|
|
188
182
|
}
|
|
189
183
|
/**
|
|
190
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
191
|
-
*
|
|
192
184
|
* Perform a search against a document index.
|
|
193
185
|
*
|
|
194
186
|
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
@@ -243,8 +235,6 @@ class VellumClient {
|
|
|
243
235
|
}
|
|
244
236
|
}
|
|
245
237
|
/**
|
|
246
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
247
|
-
*
|
|
248
238
|
* Used to submit feedback regarding the quality of previously generated completions.
|
|
249
239
|
*
|
|
250
240
|
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
@@ -297,11 +287,9 @@ class VellumClient {
|
|
|
297
287
|
}
|
|
298
288
|
}
|
|
299
289
|
/**
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
* Used to submit feedback regarding the quality of previous workflow execution and its outputs.
|
|
290
|
+
* Used to submit feedback regarding the quality of previous workflow execution and its outputs.
|
|
303
291
|
*
|
|
304
|
-
*
|
|
292
|
+
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
305
293
|
*/
|
|
306
294
|
async submitWorkflowExecutionActuals(request) {
|
|
307
295
|
const _response = await core.fetcher({
|
|
@@ -7,7 +7,7 @@ export interface GenerateBodyRequest {
|
|
|
7
7
|
deploymentId?: string;
|
|
8
8
|
/** The name of the deployment. Must provide either this or deployment_id. */
|
|
9
9
|
deploymentName?: string;
|
|
10
|
-
/** The generation
|
|
10
|
+
/** The generation request to make. Bulk requests are no longer supported, this field must be an array of length 1. */
|
|
11
11
|
requests: Vellum.GenerateRequest[];
|
|
12
12
|
/** Additional configuration that can be used to control what's included in the response. */
|
|
13
13
|
options?: Vellum.GenerateOptionsRequest;
|
|
@@ -7,7 +7,7 @@ export interface GenerateStreamBodyRequest {
|
|
|
7
7
|
deploymentId?: string;
|
|
8
8
|
/** The name of the deployment. Must provide either this or deployment_id. */
|
|
9
9
|
deploymentName?: string;
|
|
10
|
-
/** The generation
|
|
10
|
+
/** The generation request to make. Bulk requests are no longer supported, this field must be an array of length 1. */
|
|
11
11
|
requests: Vellum.GenerateRequest[];
|
|
12
12
|
/** Additional configuration that can be used to control what's included in the response. */
|
|
13
13
|
options?: Vellum.GenerateOptionsRequest;
|
|
@@ -7,7 +7,7 @@ export interface SearchRequestBodyRequest {
|
|
|
7
7
|
indexId?: string;
|
|
8
8
|
/** The name of the index to search against. Must provide either this or index_id. */
|
|
9
9
|
indexName?: string;
|
|
10
|
-
/** The query to search for.
|
|
10
|
+
/** The query to search for. */
|
|
11
11
|
query: string;
|
|
12
12
|
/** Configuration options for the search. */
|
|
13
13
|
options?: Vellum.SearchRequestOptionsRequest;
|
|
@@ -14,11 +14,7 @@ export declare class Deployments {
|
|
|
14
14
|
protected readonly options: Deployments.Options;
|
|
15
15
|
constructor(options: Deployments.Options);
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
19
|
-
*
|
|
20
17
|
* Used to retrieve a deployment given its ID or name.
|
|
21
|
-
*
|
|
22
18
|
*/
|
|
23
19
|
retrieve(id: string): Promise<Vellum.DeploymentRead>;
|
|
24
20
|
}
|
|
@@ -41,11 +41,7 @@ class Deployments {
|
|
|
41
41
|
this.options = options;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
46
|
-
*
|
|
47
44
|
* Used to retrieve a deployment given its ID or name.
|
|
48
|
-
*
|
|
49
45
|
*/
|
|
50
46
|
async retrieve(id) {
|
|
51
47
|
const _response = await core.fetcher({
|
|
@@ -14,9 +14,11 @@ export declare class DocumentIndexes {
|
|
|
14
14
|
protected readonly options: DocumentIndexes.Options;
|
|
15
15
|
constructor(options: DocumentIndexes.Options);
|
|
16
16
|
/**
|
|
17
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
18
|
-
*
|
|
19
17
|
* Creates a new document index.
|
|
20
18
|
*/
|
|
21
19
|
create(request: Vellum.DocumentIndexCreateRequest): Promise<Vellum.DocumentIndexRead>;
|
|
20
|
+
/**
|
|
21
|
+
* Used to retrieve a Document Index given its ID or name.
|
|
22
|
+
*/
|
|
23
|
+
retrieve(id: string): Promise<Vellum.DocumentIndexRead>;
|
|
22
24
|
}
|
|
@@ -41,8 +41,6 @@ class DocumentIndexes {
|
|
|
41
41
|
this.options = options;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
45
|
-
*
|
|
46
44
|
* Creates a new document index.
|
|
47
45
|
*/
|
|
48
46
|
async create(request) {
|
|
@@ -84,5 +82,44 @@ class DocumentIndexes {
|
|
|
84
82
|
});
|
|
85
83
|
}
|
|
86
84
|
}
|
|
85
|
+
/**
|
|
86
|
+
* Used to retrieve a Document Index given its ID or name.
|
|
87
|
+
*/
|
|
88
|
+
async retrieve(id) {
|
|
89
|
+
const _response = await core.fetcher({
|
|
90
|
+
url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).default, `v1/document-indexes/${id}`),
|
|
91
|
+
method: "GET",
|
|
92
|
+
headers: {
|
|
93
|
+
X_API_KEY: await core.Supplier.get(this.options.apiKey),
|
|
94
|
+
},
|
|
95
|
+
contentType: "application/json",
|
|
96
|
+
});
|
|
97
|
+
if (_response.ok) {
|
|
98
|
+
return await serializers.DocumentIndexRead.parseOrThrow(_response.body, {
|
|
99
|
+
unrecognizedObjectKeys: "passthrough",
|
|
100
|
+
allowUnrecognizedUnionMembers: true,
|
|
101
|
+
allowUnrecognizedEnumValues: true,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
if (_response.error.reason === "status-code") {
|
|
105
|
+
throw new errors.VellumError({
|
|
106
|
+
statusCode: _response.error.statusCode,
|
|
107
|
+
body: _response.error.body,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
switch (_response.error.reason) {
|
|
111
|
+
case "non-json":
|
|
112
|
+
throw new errors.VellumError({
|
|
113
|
+
statusCode: _response.error.statusCode,
|
|
114
|
+
body: _response.error.rawBody,
|
|
115
|
+
});
|
|
116
|
+
case "timeout":
|
|
117
|
+
throw new errors.VellumTimeoutError();
|
|
118
|
+
case "unknown":
|
|
119
|
+
throw new errors.VellumError({
|
|
120
|
+
message: _response.error.errorMessage,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
87
124
|
}
|
|
88
125
|
exports.DocumentIndexes = DocumentIndexes;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../../../..";
|
|
5
5
|
export interface DocumentIndexCreateRequest {
|
|
6
|
-
/** A human-readable label for the document index
|
|
6
|
+
/** A human-readable label for the document index */
|
|
7
7
|
label: string;
|
|
8
|
-
/** A name that uniquely identifies this index within its workspace
|
|
8
|
+
/** A name that uniquely identifies this index within its workspace */
|
|
9
9
|
name: string;
|
|
10
10
|
/**
|
|
11
11
|
* The current status of the document index
|
|
@@ -16,25 +16,15 @@ export declare class Documents {
|
|
|
16
16
|
protected readonly options: Documents.Options;
|
|
17
17
|
constructor(options: Documents.Options);
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
21
|
-
*
|
|
22
19
|
* Used to list documents. Optionally filter on supported fields.
|
|
23
|
-
*
|
|
24
20
|
*/
|
|
25
21
|
list(request?: Vellum.DocumentsListRequest): Promise<Vellum.PaginatedSlimDocumentList>;
|
|
26
22
|
/**
|
|
27
|
-
*
|
|
28
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
29
|
-
*
|
|
30
23
|
* Update a Document, keying off of its Vellum-generated ID. Particularly useful for updating its metadata.
|
|
31
|
-
*
|
|
32
24
|
*/
|
|
33
25
|
partialUpdate(id: string, request?: Vellum.PatchedDocumentUpdateRequest): Promise<Vellum.DocumentRead>;
|
|
34
26
|
destroy(id: string): Promise<void>;
|
|
35
27
|
/**
|
|
36
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
37
|
-
*
|
|
38
28
|
* Upload a document to be indexed and used for search.
|
|
39
29
|
*
|
|
40
30
|
* **Note:** Uses a base url of `https://documents.vellum.ai`.
|
|
@@ -44,11 +44,7 @@ class Documents {
|
|
|
44
44
|
this.options = options;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
49
|
-
*
|
|
50
47
|
* Used to list documents. Optionally filter on supported fields.
|
|
51
|
-
*
|
|
52
48
|
*/
|
|
53
49
|
async list(request = {}) {
|
|
54
50
|
const { documentIndexId, limit, offset, ordering } = request;
|
|
@@ -102,11 +98,7 @@ class Documents {
|
|
|
102
98
|
}
|
|
103
99
|
}
|
|
104
100
|
/**
|
|
105
|
-
*
|
|
106
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
107
|
-
*
|
|
108
101
|
* Update a Document, keying off of its Vellum-generated ID. Particularly useful for updating its metadata.
|
|
109
|
-
*
|
|
110
102
|
*/
|
|
111
103
|
async partialUpdate(id, request = {}) {
|
|
112
104
|
const _response = await core.fetcher({
|
|
@@ -180,8 +172,6 @@ class Documents {
|
|
|
180
172
|
}
|
|
181
173
|
}
|
|
182
174
|
/**
|
|
183
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
184
|
-
*
|
|
185
175
|
* Upload a document to be indexed and used for search.
|
|
186
176
|
*
|
|
187
177
|
* **Note:** Uses a base url of `https://documents.vellum.ai`.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../../../..";
|
|
5
5
|
export interface PatchedDocumentUpdateRequest {
|
|
6
|
-
/** A human-readable label for the document. Defaults to the originally uploaded file's file name.
|
|
6
|
+
/** A human-readable label for the document. Defaults to the originally uploaded file's file name. */
|
|
7
7
|
label?: string;
|
|
8
8
|
/**
|
|
9
9
|
* The current status of the document
|
|
@@ -6,7 +6,7 @@ export interface UploadDocumentBodyRequest {
|
|
|
6
6
|
addToIndexNames?: string[];
|
|
7
7
|
/** Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed. */
|
|
8
8
|
externalId?: string;
|
|
9
|
-
/** A human-friendly name for this document. Typically the filename.
|
|
9
|
+
/** A human-friendly name for this document. Typically the filename. */
|
|
10
10
|
label: string;
|
|
11
11
|
/** Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches. */
|
|
12
12
|
keywords?: string[];
|
|
@@ -14,16 +14,10 @@ export declare class ModelVersions {
|
|
|
14
14
|
protected readonly options: ModelVersions.Options;
|
|
15
15
|
constructor(options: ModelVersions.Options);
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
19
|
-
*
|
|
20
17
|
* Used to retrieve a model version given its ID.
|
|
21
|
-
*
|
|
22
18
|
*/
|
|
23
19
|
retrieve(id: string): Promise<Vellum.ModelVersionRead>;
|
|
24
20
|
/**
|
|
25
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
26
|
-
*
|
|
27
21
|
* Compiles the prompt backing the model version using the provided input values.
|
|
28
22
|
*/
|
|
29
23
|
modelVersionCompilePrompt(id: string, request: Vellum.ModelVersionCompilePromptRequestRequest): Promise<Vellum.ModelVersionCompilePromptResponse>;
|
|
@@ -41,11 +41,7 @@ class ModelVersions {
|
|
|
41
41
|
this.options = options;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
46
|
-
*
|
|
47
44
|
* Used to retrieve a model version given its ID.
|
|
48
|
-
*
|
|
49
45
|
*/
|
|
50
46
|
async retrieve(id) {
|
|
51
47
|
const _response = await core.fetcher({
|
|
@@ -84,8 +80,6 @@ class ModelVersions {
|
|
|
84
80
|
}
|
|
85
81
|
}
|
|
86
82
|
/**
|
|
87
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
88
|
-
*
|
|
89
83
|
* Compiles the prompt backing the model version using the provided input values.
|
|
90
84
|
*/
|
|
91
85
|
async modelVersionCompilePrompt(id, request) {
|
|
@@ -14,8 +14,6 @@ export declare class RegisteredPrompts {
|
|
|
14
14
|
protected readonly options: RegisteredPrompts.Options;
|
|
15
15
|
constructor(options: RegisteredPrompts.Options);
|
|
16
16
|
/**
|
|
17
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
18
|
-
*
|
|
19
17
|
* Registers a prompt within Vellum and creates associated Vellum entities. Intended to be used by integration
|
|
20
18
|
* partners, not directly by Vellum users.
|
|
21
19
|
*
|
|
@@ -42,8 +42,6 @@ class RegisteredPrompts {
|
|
|
42
42
|
this.options = options;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
46
|
-
*
|
|
47
45
|
* Registers a prompt within Vellum and creates associated Vellum entities. Intended to be used by integration
|
|
48
46
|
* partners, not directly by Vellum users.
|
|
49
47
|
*
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../../../..";
|
|
5
5
|
export interface RegisterPromptRequestRequest {
|
|
6
|
-
/** A human-friendly label for corresponding entities created in Vellum.
|
|
6
|
+
/** A human-friendly label for corresponding entities created in Vellum. */
|
|
7
7
|
label: string;
|
|
8
|
-
/** A uniquely-identifying name for corresponding entities created in Vellum.
|
|
8
|
+
/** A uniquely-identifying name for corresponding entities created in Vellum. */
|
|
9
9
|
name: string;
|
|
10
10
|
/** Information about how to execute the prompt template. */
|
|
11
11
|
prompt: Vellum.RegisterPromptPromptInfoRequest;
|
|
@@ -22,7 +22,7 @@ export interface RegisterPromptRequestRequest {
|
|
|
22
22
|
* * `PYQ` - Pyq
|
|
23
23
|
*/
|
|
24
24
|
provider: Vellum.ProviderEnum;
|
|
25
|
-
/** The initial model to use for this prompt
|
|
25
|
+
/** The initial model to use for this prompt */
|
|
26
26
|
model: string;
|
|
27
27
|
/** The initial model parameters to use for this prompt */
|
|
28
28
|
parameters: Vellum.RegisterPromptModelParametersRequest;
|
|
@@ -14,8 +14,6 @@ export declare class Sandboxes {
|
|
|
14
14
|
protected readonly options: Sandboxes.Options;
|
|
15
15
|
constructor(options: Sandboxes.Options);
|
|
16
16
|
/**
|
|
17
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
18
|
-
*
|
|
19
17
|
* Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id.
|
|
20
18
|
*
|
|
21
19
|
* If an id is provided and has a match, the scenario will be updated. If no id is provided or no match
|
|
@@ -26,8 +24,6 @@ export declare class Sandboxes {
|
|
|
26
24
|
*/
|
|
27
25
|
upsertSandboxScenario(id: string, request: Vellum.UpsertSandboxScenarioRequestRequest): Promise<Vellum.SandboxScenario>;
|
|
28
26
|
/**
|
|
29
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
30
|
-
*
|
|
31
27
|
* Deletes an existing scenario from a sandbox, keying off of the provided scenario id.
|
|
32
28
|
*/
|
|
33
29
|
deleteSandboxScenario(id: string, scenarioId: string): Promise<void>;
|
|
@@ -41,8 +41,6 @@ class Sandboxes {
|
|
|
41
41
|
this.options = options;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
45
|
-
*
|
|
46
44
|
* Upserts a new scenario for a sandbox, keying off of the optionally provided scenario id.
|
|
47
45
|
*
|
|
48
46
|
* If an id is provided and has a match, the scenario will be updated. If no id is provided or no match
|
|
@@ -91,8 +89,6 @@ class Sandboxes {
|
|
|
91
89
|
}
|
|
92
90
|
}
|
|
93
91
|
/**
|
|
94
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
95
|
-
*
|
|
96
92
|
* Deletes an existing scenario from a sandbox, keying off of the provided scenario id.
|
|
97
93
|
*/
|
|
98
94
|
async deleteSandboxScenario(id, scenarioId) {
|
|
@@ -6,7 +6,7 @@ export interface UpsertSandboxScenarioRequestRequest {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
/** The inputs for the scenario */
|
|
8
8
|
inputs: Vellum.ScenarioInputRequest[];
|
|
9
|
-
/** The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended.
|
|
9
|
+
/** The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended. */
|
|
10
10
|
scenarioId?: string;
|
|
11
11
|
metricInputParams?: Vellum.SandboxMetricInputParamsRequest;
|
|
12
12
|
}
|
|
@@ -14,8 +14,6 @@ export declare class TestSuites {
|
|
|
14
14
|
protected readonly options: TestSuites.Options;
|
|
15
15
|
constructor(options: TestSuites.Options);
|
|
16
16
|
/**
|
|
17
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
18
|
-
*
|
|
19
17
|
* Upserts a new test case for a test suite, keying off of the optionally provided test case id.
|
|
20
18
|
*
|
|
21
19
|
* If an id is provided and has a match, the test case will be updated. If no id is provided or no match
|
|
@@ -26,9 +24,8 @@ export declare class TestSuites {
|
|
|
26
24
|
*/
|
|
27
25
|
upsertTestSuiteTestCase(id: string, request: Vellum.TestSuiteTestCaseRequest): Promise<Vellum.TestSuiteTestCase>;
|
|
28
26
|
/**
|
|
29
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
30
|
-
*
|
|
31
27
|
* Deletes an existing test case for a test suite, keying off of the test case id.
|
|
28
|
+
*
|
|
32
29
|
*/
|
|
33
30
|
deleteTestSuiteTestCase(id: string, testCaseId: string): Promise<void>;
|
|
34
31
|
}
|
|
@@ -41,8 +41,6 @@ class TestSuites {
|
|
|
41
41
|
this.options = options;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
45
|
-
*
|
|
46
44
|
* Upserts a new test case for a test suite, keying off of the optionally provided test case id.
|
|
47
45
|
*
|
|
48
46
|
* If an id is provided and has a match, the test case will be updated. If no id is provided or no match
|
|
@@ -89,9 +87,8 @@ class TestSuites {
|
|
|
89
87
|
}
|
|
90
88
|
}
|
|
91
89
|
/**
|
|
92
|
-
* <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
|
|
93
|
-
*
|
|
94
90
|
* Deletes an existing test case for a test suite, keying off of the test case id.
|
|
91
|
+
*
|
|
95
92
|
*/
|
|
96
93
|
async deleteTestSuiteTestCase(id, testCaseId) {
|
|
97
94
|
const _response = await core.fetcher({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../../../..";
|
|
5
5
|
export interface TestSuiteTestCaseRequest {
|
|
6
|
-
/** The id of the test case to update. If none is provided, an id will be generated and a new test case will be appended.
|
|
6
|
+
/** The id of the test case to update. If none is provided, an id will be generated and a new test case will be appended. */
|
|
7
7
|
testCaseId?: string;
|
|
8
8
|
/** A human-friendly label for the test case. */
|
|
9
9
|
label?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ApiNodeResultData {
|
|
5
|
+
textOutputId: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
jsonOutputId: string;
|
|
8
|
+
json?: Record<string, unknown>;
|
|
9
|
+
statusCodeOutputId: string;
|
|
10
|
+
statusCode: number;
|
|
11
|
+
}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import * as Vellum from "..";
|
|
5
5
|
export interface DeploymentRead {
|
|
6
6
|
id: string;
|
|
7
|
-
created:
|
|
8
|
-
/** A human-readable label for the deployment
|
|
7
|
+
created: Date;
|
|
8
|
+
/** A human-readable label for the deployment */
|
|
9
9
|
label: string;
|
|
10
|
-
/** A name that uniquely identifies this deployment within its workspace
|
|
10
|
+
/** A name that uniquely identifies this deployment within its workspace */
|
|
11
11
|
name: string;
|
|
12
12
|
/**
|
|
13
13
|
* The current status of the deployment
|
|
@@ -27,6 +27,6 @@ export interface DeploymentRead {
|
|
|
27
27
|
environment?: Vellum.EnvironmentEnum;
|
|
28
28
|
modelType: Vellum.ModelTypeDeprecated;
|
|
29
29
|
activeModelVersionIds: string[];
|
|
30
|
-
lastDeployedOn:
|
|
30
|
+
lastDeployedOn: Date;
|
|
31
31
|
inputVariables: Vellum.VellumVariable[];
|
|
32
32
|
}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import * as Vellum from "..";
|
|
5
5
|
export interface DocumentIndexRead {
|
|
6
6
|
id: string;
|
|
7
|
-
created:
|
|
8
|
-
/** A human-readable label for the document index
|
|
7
|
+
created: Date;
|
|
8
|
+
/** A human-readable label for the document index */
|
|
9
9
|
label: string;
|
|
10
|
-
/** A name that uniquely identifies this index within its workspace
|
|
10
|
+
/** A name that uniquely identifies this index within its workspace */
|
|
11
11
|
name: string;
|
|
12
12
|
/**
|
|
13
13
|
* The current status of the document index
|
|
@@ -6,8 +6,8 @@ export interface DocumentRead {
|
|
|
6
6
|
id: string;
|
|
7
7
|
/** The unique id of this document as it exists in the user's system. */
|
|
8
8
|
externalId?: string;
|
|
9
|
-
lastUploadedAt:
|
|
10
|
-
/** A human-readable label for the document. Defaults to the originally uploaded file's file name.
|
|
9
|
+
lastUploadedAt: Date;
|
|
10
|
+
/** A human-readable label for the document. Defaults to the originally uploaded file's file name. */
|
|
11
11
|
label: string;
|
|
12
12
|
/**
|
|
13
13
|
* The current processing state of the document
|