vellum-ai 0.7.0 → 0.7.2
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 +6 -3
- package/Client.js +15 -12
- package/api/client/requests/ExecutePromptRequest.d.ts +3 -3
- package/api/client/requests/ExecutePromptStreamRequest.d.ts +3 -3
- package/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -0
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -0
- package/api/resources/deployments/client/Client.js +5 -5
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/folderEntities/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +4 -4
- package/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/api/types/ArrayVellumValueItemRequest.d.ts +25 -0
- package/api/types/ArrayVellumValueItemRequest.js +5 -0
- package/api/types/ErrorVellumValueRequest.d.ts +10 -0
- package/api/types/ErrorVellumValueRequest.js +5 -0
- package/api/types/FunctionCallVellumValueRequest.d.ts +10 -0
- package/api/types/FunctionCallVellumValueRequest.js +5 -0
- package/api/types/ImageVellumValueRequest.d.ts +10 -0
- package/api/types/ImageVellumValueRequest.js +5 -0
- package/api/types/JsonVellumValueRequest.d.ts +9 -0
- package/api/types/JsonVellumValueRequest.js +5 -0
- package/api/types/NamedTestCaseArrayVariableValue.d.ts +11 -0
- package/api/types/NamedTestCaseArrayVariableValue.js +5 -0
- package/api/types/NamedTestCaseArrayVariableValueRequest.d.ts +11 -0
- package/api/types/NamedTestCaseArrayVariableValueRequest.js +5 -0
- package/api/types/NamedTestCaseVariableValue.d.ts +4 -1
- package/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
- package/api/types/NumberVellumValueRequest.d.ts +9 -0
- package/api/types/NumberVellumValueRequest.js +5 -0
- package/api/types/PromptDeploymentExpandMetaRequestRequest.d.ts +5 -5
- package/api/types/PromptExecutionMeta.d.ts +1 -1
- package/api/types/PromptNodeExecutionMeta.d.ts +10 -0
- package/api/types/PromptNodeExecutionMeta.js +5 -0
- package/api/types/PromptNodeResultData.d.ts +2 -0
- package/api/types/StringVellumValueRequest.d.ts +9 -0
- package/api/types/StringVellumValueRequest.js +5 -0
- package/api/types/TestCaseArrayVariableValue.d.ts +12 -0
- package/api/types/TestCaseArrayVariableValue.js +5 -0
- package/api/types/TestCaseVariableValue.d.ts +4 -1
- package/api/types/WorkflowExpandMetaRequest.d.ts +7 -0
- package/api/types/WorkflowExpandMetaRequest.js +5 -0
- package/api/types/index.d.ts +12 -0
- package/api/types/index.js +12 -0
- package/dist/Client.d.ts +6 -3
- package/dist/Client.js +15 -12
- package/dist/api/client/requests/ExecutePromptRequest.d.ts +3 -3
- package/dist/api/client/requests/ExecutePromptStreamRequest.d.ts +3 -3
- package/dist/api/client/requests/ExecuteWorkflowRequest.d.ts +5 -0
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +5 -0
- package/dist/api/resources/deployments/client/Client.js +5 -5
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/folderEntities/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
- package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
- package/dist/api/types/ArrayVellumValueItemRequest.d.ts +25 -0
- package/dist/api/types/ArrayVellumValueItemRequest.js +5 -0
- package/dist/api/types/ErrorVellumValueRequest.d.ts +10 -0
- package/dist/api/types/ErrorVellumValueRequest.js +5 -0
- package/dist/api/types/FunctionCallVellumValueRequest.d.ts +10 -0
- package/dist/api/types/FunctionCallVellumValueRequest.js +5 -0
- package/dist/api/types/ImageVellumValueRequest.d.ts +10 -0
- package/dist/api/types/ImageVellumValueRequest.js +5 -0
- package/dist/api/types/JsonVellumValueRequest.d.ts +9 -0
- package/dist/api/types/JsonVellumValueRequest.js +5 -0
- package/dist/api/types/NamedTestCaseArrayVariableValue.d.ts +11 -0
- package/dist/api/types/NamedTestCaseArrayVariableValue.js +5 -0
- package/dist/api/types/NamedTestCaseArrayVariableValueRequest.d.ts +11 -0
- package/dist/api/types/NamedTestCaseArrayVariableValueRequest.js +5 -0
- package/dist/api/types/NamedTestCaseVariableValue.d.ts +4 -1
- package/dist/api/types/NamedTestCaseVariableValueRequest.d.ts +4 -1
- package/dist/api/types/NumberVellumValueRequest.d.ts +9 -0
- package/dist/api/types/NumberVellumValueRequest.js +5 -0
- package/dist/api/types/PromptDeploymentExpandMetaRequestRequest.d.ts +5 -5
- package/dist/api/types/PromptExecutionMeta.d.ts +1 -1
- package/dist/api/types/PromptNodeExecutionMeta.d.ts +10 -0
- package/dist/api/types/PromptNodeExecutionMeta.js +5 -0
- package/dist/api/types/PromptNodeResultData.d.ts +2 -0
- package/dist/api/types/StringVellumValueRequest.d.ts +9 -0
- package/dist/api/types/StringVellumValueRequest.js +5 -0
- package/dist/api/types/TestCaseArrayVariableValue.d.ts +12 -0
- package/dist/api/types/TestCaseArrayVariableValue.js +5 -0
- package/dist/api/types/TestCaseVariableValue.d.ts +4 -1
- package/dist/api/types/WorkflowExpandMetaRequest.d.ts +7 -0
- package/dist/api/types/WorkflowExpandMetaRequest.js +5 -0
- package/dist/api/types/index.d.ts +12 -0
- package/dist/api/types/index.js +12 -0
- package/dist/serialization/client/requests/ExecuteWorkflowRequest.d.ts +2 -0
- package/dist/serialization/client/requests/ExecuteWorkflowRequest.js +2 -0
- package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.d.ts +2 -0
- package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.js +2 -0
- package/dist/serialization/types/ArrayVellumValueItemRequest.d.ts +34 -0
- package/dist/serialization/types/ArrayVellumValueItemRequest.js +49 -0
- package/dist/serialization/types/ErrorVellumValueRequest.d.ts +13 -0
- package/dist/serialization/types/ErrorVellumValueRequest.js +34 -0
- package/dist/serialization/types/FunctionCallVellumValueRequest.d.ts +13 -0
- package/dist/serialization/types/FunctionCallVellumValueRequest.js +34 -0
- package/dist/serialization/types/ImageVellumValueRequest.d.ts +13 -0
- package/dist/serialization/types/ImageVellumValueRequest.js +34 -0
- package/dist/serialization/types/JsonVellumValueRequest.d.ts +12 -0
- package/dist/serialization/types/JsonVellumValueRequest.js +33 -0
- package/dist/serialization/types/NamedTestCaseArrayVariableValue.d.ts +14 -0
- package/dist/serialization/types/NamedTestCaseArrayVariableValue.js +35 -0
- package/dist/serialization/types/NamedTestCaseArrayVariableValueRequest.d.ts +14 -0
- package/dist/serialization/types/NamedTestCaseArrayVariableValueRequest.js +35 -0
- package/dist/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
- package/dist/serialization/types/NamedTestCaseVariableValue.js +2 -0
- package/dist/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
- package/dist/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
- package/dist/serialization/types/NumberVellumValueRequest.d.ts +12 -0
- package/dist/serialization/types/NumberVellumValueRequest.js +33 -0
- package/dist/serialization/types/PromptDeploymentExpandMetaRequestRequest.d.ts +2 -2
- package/dist/serialization/types/PromptDeploymentExpandMetaRequestRequest.js +2 -2
- package/dist/serialization/types/PromptExecutionMeta.d.ts +2 -2
- package/dist/serialization/types/PromptExecutionMeta.js +2 -2
- package/dist/serialization/types/PromptNodeExecutionMeta.d.ts +13 -0
- package/dist/serialization/types/PromptNodeExecutionMeta.js +34 -0
- package/dist/serialization/types/PromptNodeResultData.d.ts +2 -0
- package/dist/serialization/types/PromptNodeResultData.js +2 -0
- package/dist/serialization/types/StringVellumValueRequest.d.ts +12 -0
- package/dist/serialization/types/StringVellumValueRequest.js +33 -0
- package/dist/serialization/types/TestCaseArrayVariableValue.d.ts +15 -0
- package/dist/serialization/types/TestCaseArrayVariableValue.js +36 -0
- package/dist/serialization/types/TestCaseVariableValue.d.ts +5 -1
- package/dist/serialization/types/TestCaseVariableValue.js +2 -0
- package/dist/serialization/types/WorkflowExpandMetaRequest.d.ts +12 -0
- package/dist/serialization/types/WorkflowExpandMetaRequest.js +33 -0
- package/dist/serialization/types/index.d.ts +12 -0
- package/dist/serialization/types/index.js +12 -0
- package/package.json +1 -1
- package/serialization/client/requests/ExecuteWorkflowRequest.d.ts +2 -0
- package/serialization/client/requests/ExecuteWorkflowRequest.js +2 -0
- package/serialization/client/requests/ExecuteWorkflowStreamRequest.d.ts +2 -0
- package/serialization/client/requests/ExecuteWorkflowStreamRequest.js +2 -0
- package/serialization/types/ArrayVellumValueItemRequest.d.ts +34 -0
- package/serialization/types/ArrayVellumValueItemRequest.js +49 -0
- package/serialization/types/ErrorVellumValueRequest.d.ts +13 -0
- package/serialization/types/ErrorVellumValueRequest.js +34 -0
- package/serialization/types/FunctionCallVellumValueRequest.d.ts +13 -0
- package/serialization/types/FunctionCallVellumValueRequest.js +34 -0
- package/serialization/types/ImageVellumValueRequest.d.ts +13 -0
- package/serialization/types/ImageVellumValueRequest.js +34 -0
- package/serialization/types/JsonVellumValueRequest.d.ts +12 -0
- package/serialization/types/JsonVellumValueRequest.js +33 -0
- package/serialization/types/NamedTestCaseArrayVariableValue.d.ts +14 -0
- package/serialization/types/NamedTestCaseArrayVariableValue.js +35 -0
- package/serialization/types/NamedTestCaseArrayVariableValueRequest.d.ts +14 -0
- package/serialization/types/NamedTestCaseArrayVariableValueRequest.js +35 -0
- package/serialization/types/NamedTestCaseVariableValue.d.ts +5 -1
- package/serialization/types/NamedTestCaseVariableValue.js +2 -0
- package/serialization/types/NamedTestCaseVariableValueRequest.d.ts +5 -1
- package/serialization/types/NamedTestCaseVariableValueRequest.js +2 -0
- package/serialization/types/NumberVellumValueRequest.d.ts +12 -0
- package/serialization/types/NumberVellumValueRequest.js +33 -0
- package/serialization/types/PromptDeploymentExpandMetaRequestRequest.d.ts +2 -2
- package/serialization/types/PromptDeploymentExpandMetaRequestRequest.js +2 -2
- package/serialization/types/PromptExecutionMeta.d.ts +2 -2
- package/serialization/types/PromptExecutionMeta.js +2 -2
- package/serialization/types/PromptNodeExecutionMeta.d.ts +13 -0
- package/serialization/types/PromptNodeExecutionMeta.js +34 -0
- package/serialization/types/PromptNodeResultData.d.ts +2 -0
- package/serialization/types/PromptNodeResultData.js +2 -0
- package/serialization/types/StringVellumValueRequest.d.ts +12 -0
- package/serialization/types/StringVellumValueRequest.js +33 -0
- package/serialization/types/TestCaseArrayVariableValue.d.ts +15 -0
- package/serialization/types/TestCaseArrayVariableValue.js +36 -0
- package/serialization/types/TestCaseVariableValue.d.ts +5 -1
- package/serialization/types/TestCaseVariableValue.js +2 -0
- package/serialization/types/WorkflowExpandMetaRequest.d.ts +12 -0
- package/serialization/types/WorkflowExpandMetaRequest.js +33 -0
- package/serialization/types/index.d.ts +12 -0
- package/serialization/types/index.js +12 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A base Vellum primitive value representing an image.
|
|
7
|
+
*/
|
|
8
|
+
export interface ImageVellumValueRequest {
|
|
9
|
+
value?: Vellum.VellumImageRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Named Test Case value that is of type ARRAY
|
|
7
|
+
*/
|
|
8
|
+
export interface NamedTestCaseArrayVariableValue {
|
|
9
|
+
value?: Vellum.ArrayVellumValueItem[];
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Named Test Case value that is of type ARRAY
|
|
7
|
+
*/
|
|
8
|
+
export interface NamedTestCaseArrayVariableValueRequest {
|
|
9
|
+
value?: Vellum.ArrayVellumValueItemRequest[];
|
|
10
|
+
name: string;
|
|
11
|
+
}
|
|
@@ -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 "../index";
|
|
5
|
-
export declare type NamedTestCaseVariableValue = Vellum.NamedTestCaseVariableValue.String | Vellum.NamedTestCaseVariableValue.Number | Vellum.NamedTestCaseVariableValue.Json | Vellum.NamedTestCaseVariableValue.ChatHistory | Vellum.NamedTestCaseVariableValue.SearchResults | Vellum.NamedTestCaseVariableValue.Error_ | Vellum.NamedTestCaseVariableValue.FunctionCall;
|
|
5
|
+
export declare type NamedTestCaseVariableValue = Vellum.NamedTestCaseVariableValue.String | Vellum.NamedTestCaseVariableValue.Number | Vellum.NamedTestCaseVariableValue.Json | Vellum.NamedTestCaseVariableValue.ChatHistory | Vellum.NamedTestCaseVariableValue.SearchResults | Vellum.NamedTestCaseVariableValue.Error_ | Vellum.NamedTestCaseVariableValue.FunctionCall | Vellum.NamedTestCaseVariableValue.Array;
|
|
6
6
|
export declare namespace NamedTestCaseVariableValue {
|
|
7
7
|
interface String extends Vellum.NamedTestCaseStringVariableValue {
|
|
8
8
|
type: "STRING";
|
|
@@ -25,4 +25,7 @@ export declare namespace NamedTestCaseVariableValue {
|
|
|
25
25
|
interface FunctionCall extends Vellum.NamedTestCaseFunctionCallVariableValue {
|
|
26
26
|
type: "FUNCTION_CALL";
|
|
27
27
|
}
|
|
28
|
+
interface Array extends Vellum.NamedTestCaseArrayVariableValue {
|
|
29
|
+
type: "ARRAY";
|
|
30
|
+
}
|
|
28
31
|
}
|
|
@@ -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 "../index";
|
|
5
|
-
export declare type NamedTestCaseVariableValueRequest = Vellum.NamedTestCaseVariableValueRequest.String | Vellum.NamedTestCaseVariableValueRequest.Number | Vellum.NamedTestCaseVariableValueRequest.Json | Vellum.NamedTestCaseVariableValueRequest.ChatHistory | Vellum.NamedTestCaseVariableValueRequest.SearchResults | Vellum.NamedTestCaseVariableValueRequest.Error_ | Vellum.NamedTestCaseVariableValueRequest.FunctionCall;
|
|
5
|
+
export declare type NamedTestCaseVariableValueRequest = Vellum.NamedTestCaseVariableValueRequest.String | Vellum.NamedTestCaseVariableValueRequest.Number | Vellum.NamedTestCaseVariableValueRequest.Json | Vellum.NamedTestCaseVariableValueRequest.ChatHistory | Vellum.NamedTestCaseVariableValueRequest.SearchResults | Vellum.NamedTestCaseVariableValueRequest.Error_ | Vellum.NamedTestCaseVariableValueRequest.FunctionCall | Vellum.NamedTestCaseVariableValueRequest.Array;
|
|
6
6
|
export declare namespace NamedTestCaseVariableValueRequest {
|
|
7
7
|
interface String extends Vellum.NamedTestCaseStringVariableValueRequest {
|
|
8
8
|
type: "STRING";
|
|
@@ -25,4 +25,7 @@ export declare namespace NamedTestCaseVariableValueRequest {
|
|
|
25
25
|
interface FunctionCall extends Vellum.NamedTestCaseFunctionCallVariableValueRequest {
|
|
26
26
|
type: "FUNCTION_CALL";
|
|
27
27
|
}
|
|
28
|
+
interface Array extends Vellum.NamedTestCaseArrayVariableValueRequest {
|
|
29
|
+
type: "ARRAY";
|
|
30
|
+
}
|
|
28
31
|
}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface PromptDeploymentExpandMetaRequestRequest {
|
|
5
|
-
/** If enabled, the response will include the model identifier representing the ML Model invoked by the Prompt
|
|
5
|
+
/** If enabled, the response will include the model identifier representing the ML Model invoked by the Prompt. */
|
|
6
6
|
modelName?: boolean;
|
|
7
|
+
/** If enabled, the response will include model host usage tracking. This may increase latency for some model hosts. */
|
|
8
|
+
usage?: boolean;
|
|
9
|
+
/** If enabled, the response will include the reason provided by the model for why the execution finished. */
|
|
10
|
+
finishReason?: boolean;
|
|
7
11
|
/** If enabled, the response will include the time in nanoseconds it took to execute the Prompt Deployment. */
|
|
8
12
|
latency?: boolean;
|
|
9
13
|
/** If enabled, the response will include the release tag of the Prompt Deployment. */
|
|
10
14
|
deploymentReleaseTag?: boolean;
|
|
11
15
|
/** If enabled, the response will include the ID of the Prompt Version backing the deployment. */
|
|
12
16
|
promptVersionId?: boolean;
|
|
13
|
-
/** If enabled, the response will include the reason provided by the model for why the execution finished. */
|
|
14
|
-
finishReason?: boolean;
|
|
15
|
-
/** If enabled, the response will include model host usage tracking. This may increase latency for some model hosts. */
|
|
16
|
-
usage?: boolean;
|
|
17
17
|
}
|
|
@@ -6,10 +6,10 @@ import * as Vellum from "../index";
|
|
|
6
6
|
* The subset of the metadata tracked by Vellum during prompt execution that the request opted into with `expand_meta`.
|
|
7
7
|
*/
|
|
8
8
|
export interface PromptExecutionMeta {
|
|
9
|
-
usage?: Vellum.MlModelUsage;
|
|
10
9
|
modelName?: string;
|
|
11
10
|
latency?: number;
|
|
12
11
|
deploymentReleaseTag?: string;
|
|
13
12
|
promptVersionId?: string;
|
|
14
13
|
finishReason?: Vellum.FinishReasonEnum;
|
|
14
|
+
usage?: Vellum.MlModelUsage;
|
|
15
15
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* The subset of the metadata tracked by Vellum during prompt execution that the request opted into with `expand_meta`.
|
|
7
|
+
*/
|
|
8
|
+
export interface PromptNodeExecutionMeta {
|
|
9
|
+
usage?: Vellum.MlModelUsage;
|
|
10
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
4
5
|
export interface PromptNodeResultData {
|
|
6
|
+
executionMeta?: Vellum.PromptNodeExecutionMeta;
|
|
5
7
|
outputId: string;
|
|
6
8
|
arrayOutputId?: string;
|
|
7
9
|
executionId?: string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* An Array value for a variable in a Test Case.
|
|
7
|
+
*/
|
|
8
|
+
export interface TestCaseArrayVariableValue {
|
|
9
|
+
variableId: string;
|
|
10
|
+
name: string;
|
|
11
|
+
value?: Vellum.ArrayVellumValueItem[];
|
|
12
|
+
}
|
|
@@ -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 "../index";
|
|
5
|
-
export declare type TestCaseVariableValue = Vellum.TestCaseVariableValue.String | Vellum.TestCaseVariableValue.Number | Vellum.TestCaseVariableValue.Json | Vellum.TestCaseVariableValue.ChatHistory | Vellum.TestCaseVariableValue.SearchResults | Vellum.TestCaseVariableValue.Error_ | Vellum.TestCaseVariableValue.FunctionCall;
|
|
5
|
+
export declare type TestCaseVariableValue = Vellum.TestCaseVariableValue.String | Vellum.TestCaseVariableValue.Number | Vellum.TestCaseVariableValue.Json | Vellum.TestCaseVariableValue.ChatHistory | Vellum.TestCaseVariableValue.SearchResults | Vellum.TestCaseVariableValue.Error_ | Vellum.TestCaseVariableValue.FunctionCall | Vellum.TestCaseVariableValue.Array;
|
|
6
6
|
export declare namespace TestCaseVariableValue {
|
|
7
7
|
interface String extends Vellum.TestCaseStringVariableValue {
|
|
8
8
|
type: "STRING";
|
|
@@ -25,4 +25,7 @@ export declare namespace TestCaseVariableValue {
|
|
|
25
25
|
interface FunctionCall extends Vellum.TestCaseFunctionCallVariableValue {
|
|
26
26
|
type: "FUNCTION_CALL";
|
|
27
27
|
}
|
|
28
|
+
interface Array extends Vellum.TestCaseArrayVariableValue {
|
|
29
|
+
type: "ARRAY";
|
|
30
|
+
}
|
|
28
31
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface WorkflowExpandMetaRequest {
|
|
5
|
+
/** If enabled, the Prompt Node FULFILLED events will include model host usage tracking. This may increase latency for some model hosts. */
|
|
6
|
+
usage?: boolean;
|
|
7
|
+
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./ArrayChatMessageContentRequest";
|
|
|
8
8
|
export * from "./ArrayEnum";
|
|
9
9
|
export * from "./ArrayVariableValueItem";
|
|
10
10
|
export * from "./ArrayVellumValueItem";
|
|
11
|
+
export * from "./ArrayVellumValueItemRequest";
|
|
11
12
|
export * from "./BasicVectorizerIntfloatMultilingualE5Large";
|
|
12
13
|
export * from "./BasicVectorizerIntfloatMultilingualE5LargeRequest";
|
|
13
14
|
export * from "./BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1";
|
|
@@ -58,6 +59,7 @@ export * from "./EnvironmentEnum";
|
|
|
58
59
|
export * from "./ErrorEnum";
|
|
59
60
|
export * from "./ErrorVariableValue";
|
|
60
61
|
export * from "./ErrorVellumValue";
|
|
62
|
+
export * from "./ErrorVellumValueRequest";
|
|
61
63
|
export * from "./ExecutePromptApiErrorResponse";
|
|
62
64
|
export * from "./ExecutePromptEvent";
|
|
63
65
|
export * from "./ExecutePromptResponse";
|
|
@@ -92,6 +94,7 @@ export * from "./FunctionCallEnum";
|
|
|
92
94
|
export * from "./FunctionCallRequest";
|
|
93
95
|
export * from "./FunctionCallVariableValue";
|
|
94
96
|
export * from "./FunctionCallVellumValue";
|
|
97
|
+
export * from "./FunctionCallVellumValueRequest";
|
|
95
98
|
export * from "./GenerateErrorResponse";
|
|
96
99
|
export * from "./GenerateOptionsRequest";
|
|
97
100
|
export * from "./GenerateRequest";
|
|
@@ -109,6 +112,7 @@ export * from "./ImageChatMessageContentRequest";
|
|
|
109
112
|
export * from "./ImageEnum";
|
|
110
113
|
export * from "./ImageVariableValue";
|
|
111
114
|
export * from "./ImageVellumValue";
|
|
115
|
+
export * from "./ImageVellumValueRequest";
|
|
112
116
|
export * from "./IndexingConfigVectorizer";
|
|
113
117
|
export * from "./IndexingConfigVectorizerRequest";
|
|
114
118
|
export * from "./IndexingStateEnum";
|
|
@@ -123,6 +127,7 @@ export * from "./JsonInputRequest";
|
|
|
123
127
|
export * from "./JsonEnum";
|
|
124
128
|
export * from "./JsonVariableValue";
|
|
125
129
|
export * from "./JsonVellumValue";
|
|
130
|
+
export * from "./JsonVellumValueRequest";
|
|
126
131
|
export * from "./LogicalOperator";
|
|
127
132
|
export * from "./LogprobsEnum";
|
|
128
133
|
export * from "./MlModelUsage";
|
|
@@ -140,6 +145,8 @@ export * from "./MetricNodeResult";
|
|
|
140
145
|
export * from "./NamedScenarioInputChatHistoryVariableValueRequest";
|
|
141
146
|
export * from "./NamedScenarioInputRequest";
|
|
142
147
|
export * from "./NamedScenarioInputStringVariableValueRequest";
|
|
148
|
+
export * from "./NamedTestCaseArrayVariableValue";
|
|
149
|
+
export * from "./NamedTestCaseArrayVariableValueRequest";
|
|
143
150
|
export * from "./NamedTestCaseChatHistoryVariableValue";
|
|
144
151
|
export * from "./NamedTestCaseChatHistoryVariableValueRequest";
|
|
145
152
|
export * from "./NamedTestCaseErrorVariableValue";
|
|
@@ -179,6 +186,7 @@ export * from "./NormalizedTokenLogProbs";
|
|
|
179
186
|
export * from "./NumberEnum";
|
|
180
187
|
export * from "./NumberVariableValue";
|
|
181
188
|
export * from "./NumberVellumValue";
|
|
189
|
+
export * from "./NumberVellumValueRequest";
|
|
182
190
|
export * from "./OpenAiVectorizerConfig";
|
|
183
191
|
export * from "./OpenAiVectorizerConfigRequest";
|
|
184
192
|
export * from "./OpenAiVectorizerTextEmbedding3Large";
|
|
@@ -201,6 +209,7 @@ export * from "./ProcessingStateEnum";
|
|
|
201
209
|
export * from "./PromptDeploymentExpandMetaRequestRequest";
|
|
202
210
|
export * from "./PromptDeploymentInputRequest";
|
|
203
211
|
export * from "./PromptExecutionMeta";
|
|
212
|
+
export * from "./PromptNodeExecutionMeta";
|
|
204
213
|
export * from "./PromptNodeResult";
|
|
205
214
|
export * from "./PromptNodeResultData";
|
|
206
215
|
export * from "./PromptOutput";
|
|
@@ -257,6 +266,7 @@ export * from "./StringEnum";
|
|
|
257
266
|
export * from "./StringInputRequest";
|
|
258
267
|
export * from "./StringVariableValue";
|
|
259
268
|
export * from "./StringVellumValue";
|
|
269
|
+
export * from "./StringVellumValueRequest";
|
|
260
270
|
export * from "./SubmitCompletionActualRequest";
|
|
261
271
|
export * from "./SubmitCompletionActualsErrorResponse";
|
|
262
272
|
export * from "./SubmitWorkflowExecutionActualRequest";
|
|
@@ -285,6 +295,7 @@ export * from "./TerminalNodeResultData";
|
|
|
285
295
|
export * from "./TerminalNodeResultOutput";
|
|
286
296
|
export * from "./TerminalNodeSearchResultsResult";
|
|
287
297
|
export * from "./TerminalNodeStringResult";
|
|
298
|
+
export * from "./TestCaseArrayVariableValue";
|
|
288
299
|
export * from "./TestCaseChatHistoryVariableValue";
|
|
289
300
|
export * from "./TestCaseErrorVariableValue";
|
|
290
301
|
export * from "./TestCaseFunctionCallVariableValue";
|
|
@@ -371,6 +382,7 @@ export * from "./WorkflowExecutionEventErrorCode";
|
|
|
371
382
|
export * from "./WorkflowExecutionEventType";
|
|
372
383
|
export * from "./WorkflowExecutionNodeResultEvent";
|
|
373
384
|
export * from "./WorkflowExecutionWorkflowResultEvent";
|
|
385
|
+
export * from "./WorkflowExpandMetaRequest";
|
|
374
386
|
export * from "./WorkflowNodeResultData";
|
|
375
387
|
export * from "./WorkflowNodeResultEvent";
|
|
376
388
|
export * from "./WorkflowNodeResultEventState";
|
package/api/types/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./ArrayChatMessageContentRequest"), exports);
|
|
|
24
24
|
__exportStar(require("./ArrayEnum"), exports);
|
|
25
25
|
__exportStar(require("./ArrayVariableValueItem"), exports);
|
|
26
26
|
__exportStar(require("./ArrayVellumValueItem"), exports);
|
|
27
|
+
__exportStar(require("./ArrayVellumValueItemRequest"), exports);
|
|
27
28
|
__exportStar(require("./BasicVectorizerIntfloatMultilingualE5Large"), exports);
|
|
28
29
|
__exportStar(require("./BasicVectorizerIntfloatMultilingualE5LargeRequest"), exports);
|
|
29
30
|
__exportStar(require("./BasicVectorizerSentenceTransformersMultiQaMpnetBaseCosV1"), exports);
|
|
@@ -74,6 +75,7 @@ __exportStar(require("./EnvironmentEnum"), exports);
|
|
|
74
75
|
__exportStar(require("./ErrorEnum"), exports);
|
|
75
76
|
__exportStar(require("./ErrorVariableValue"), exports);
|
|
76
77
|
__exportStar(require("./ErrorVellumValue"), exports);
|
|
78
|
+
__exportStar(require("./ErrorVellumValueRequest"), exports);
|
|
77
79
|
__exportStar(require("./ExecutePromptApiErrorResponse"), exports);
|
|
78
80
|
__exportStar(require("./ExecutePromptEvent"), exports);
|
|
79
81
|
__exportStar(require("./ExecutePromptResponse"), exports);
|
|
@@ -108,6 +110,7 @@ __exportStar(require("./FunctionCallEnum"), exports);
|
|
|
108
110
|
__exportStar(require("./FunctionCallRequest"), exports);
|
|
109
111
|
__exportStar(require("./FunctionCallVariableValue"), exports);
|
|
110
112
|
__exportStar(require("./FunctionCallVellumValue"), exports);
|
|
113
|
+
__exportStar(require("./FunctionCallVellumValueRequest"), exports);
|
|
111
114
|
__exportStar(require("./GenerateErrorResponse"), exports);
|
|
112
115
|
__exportStar(require("./GenerateOptionsRequest"), exports);
|
|
113
116
|
__exportStar(require("./GenerateRequest"), exports);
|
|
@@ -125,6 +128,7 @@ __exportStar(require("./ImageChatMessageContentRequest"), exports);
|
|
|
125
128
|
__exportStar(require("./ImageEnum"), exports);
|
|
126
129
|
__exportStar(require("./ImageVariableValue"), exports);
|
|
127
130
|
__exportStar(require("./ImageVellumValue"), exports);
|
|
131
|
+
__exportStar(require("./ImageVellumValueRequest"), exports);
|
|
128
132
|
__exportStar(require("./IndexingConfigVectorizer"), exports);
|
|
129
133
|
__exportStar(require("./IndexingConfigVectorizerRequest"), exports);
|
|
130
134
|
__exportStar(require("./IndexingStateEnum"), exports);
|
|
@@ -139,6 +143,7 @@ __exportStar(require("./JsonInputRequest"), exports);
|
|
|
139
143
|
__exportStar(require("./JsonEnum"), exports);
|
|
140
144
|
__exportStar(require("./JsonVariableValue"), exports);
|
|
141
145
|
__exportStar(require("./JsonVellumValue"), exports);
|
|
146
|
+
__exportStar(require("./JsonVellumValueRequest"), exports);
|
|
142
147
|
__exportStar(require("./LogicalOperator"), exports);
|
|
143
148
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
144
149
|
__exportStar(require("./MlModelUsage"), exports);
|
|
@@ -156,6 +161,8 @@ __exportStar(require("./MetricNodeResult"), exports);
|
|
|
156
161
|
__exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
|
|
157
162
|
__exportStar(require("./NamedScenarioInputRequest"), exports);
|
|
158
163
|
__exportStar(require("./NamedScenarioInputStringVariableValueRequest"), exports);
|
|
164
|
+
__exportStar(require("./NamedTestCaseArrayVariableValue"), exports);
|
|
165
|
+
__exportStar(require("./NamedTestCaseArrayVariableValueRequest"), exports);
|
|
159
166
|
__exportStar(require("./NamedTestCaseChatHistoryVariableValue"), exports);
|
|
160
167
|
__exportStar(require("./NamedTestCaseChatHistoryVariableValueRequest"), exports);
|
|
161
168
|
__exportStar(require("./NamedTestCaseErrorVariableValue"), exports);
|
|
@@ -195,6 +202,7 @@ __exportStar(require("./NormalizedTokenLogProbs"), exports);
|
|
|
195
202
|
__exportStar(require("./NumberEnum"), exports);
|
|
196
203
|
__exportStar(require("./NumberVariableValue"), exports);
|
|
197
204
|
__exportStar(require("./NumberVellumValue"), exports);
|
|
205
|
+
__exportStar(require("./NumberVellumValueRequest"), exports);
|
|
198
206
|
__exportStar(require("./OpenAiVectorizerConfig"), exports);
|
|
199
207
|
__exportStar(require("./OpenAiVectorizerConfigRequest"), exports);
|
|
200
208
|
__exportStar(require("./OpenAiVectorizerTextEmbedding3Large"), exports);
|
|
@@ -217,6 +225,7 @@ __exportStar(require("./ProcessingStateEnum"), exports);
|
|
|
217
225
|
__exportStar(require("./PromptDeploymentExpandMetaRequestRequest"), exports);
|
|
218
226
|
__exportStar(require("./PromptDeploymentInputRequest"), exports);
|
|
219
227
|
__exportStar(require("./PromptExecutionMeta"), exports);
|
|
228
|
+
__exportStar(require("./PromptNodeExecutionMeta"), exports);
|
|
220
229
|
__exportStar(require("./PromptNodeResult"), exports);
|
|
221
230
|
__exportStar(require("./PromptNodeResultData"), exports);
|
|
222
231
|
__exportStar(require("./PromptOutput"), exports);
|
|
@@ -273,6 +282,7 @@ __exportStar(require("./StringEnum"), exports);
|
|
|
273
282
|
__exportStar(require("./StringInputRequest"), exports);
|
|
274
283
|
__exportStar(require("./StringVariableValue"), exports);
|
|
275
284
|
__exportStar(require("./StringVellumValue"), exports);
|
|
285
|
+
__exportStar(require("./StringVellumValueRequest"), exports);
|
|
276
286
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
277
287
|
__exportStar(require("./SubmitCompletionActualsErrorResponse"), exports);
|
|
278
288
|
__exportStar(require("./SubmitWorkflowExecutionActualRequest"), exports);
|
|
@@ -301,6 +311,7 @@ __exportStar(require("./TerminalNodeResultData"), exports);
|
|
|
301
311
|
__exportStar(require("./TerminalNodeResultOutput"), exports);
|
|
302
312
|
__exportStar(require("./TerminalNodeSearchResultsResult"), exports);
|
|
303
313
|
__exportStar(require("./TerminalNodeStringResult"), exports);
|
|
314
|
+
__exportStar(require("./TestCaseArrayVariableValue"), exports);
|
|
304
315
|
__exportStar(require("./TestCaseChatHistoryVariableValue"), exports);
|
|
305
316
|
__exportStar(require("./TestCaseErrorVariableValue"), exports);
|
|
306
317
|
__exportStar(require("./TestCaseFunctionCallVariableValue"), exports);
|
|
@@ -387,6 +398,7 @@ __exportStar(require("./WorkflowExecutionEventErrorCode"), exports);
|
|
|
387
398
|
__exportStar(require("./WorkflowExecutionEventType"), exports);
|
|
388
399
|
__exportStar(require("./WorkflowExecutionNodeResultEvent"), exports);
|
|
389
400
|
__exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
|
|
401
|
+
__exportStar(require("./WorkflowExpandMetaRequest"), exports);
|
|
390
402
|
__exportStar(require("./WorkflowNodeResultData"), exports);
|
|
391
403
|
__exportStar(require("./WorkflowNodeResultEvent"), exports);
|
|
392
404
|
__exportStar(require("./WorkflowNodeResultEventState"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -54,11 +54,11 @@ export declare class VellumClient {
|
|
|
54
54
|
* externalId: "string",
|
|
55
55
|
* expandMeta: {
|
|
56
56
|
* modelName: true,
|
|
57
|
+
* usage: true,
|
|
58
|
+
* finishReason: true,
|
|
57
59
|
* latency: true,
|
|
58
60
|
* deploymentReleaseTag: true,
|
|
59
|
-
* promptVersionId: true
|
|
60
|
-
* finishReason: true,
|
|
61
|
-
* usage: true
|
|
61
|
+
* promptVersionId: true
|
|
62
62
|
* },
|
|
63
63
|
* rawOverrides: {
|
|
64
64
|
* body: {
|
|
@@ -103,6 +103,9 @@ export declare class VellumClient {
|
|
|
103
103
|
* name: "string",
|
|
104
104
|
* value: "string"
|
|
105
105
|
* }],
|
|
106
|
+
* expandMeta: {
|
|
107
|
+
* usage: true
|
|
108
|
+
* },
|
|
106
109
|
* workflowDeploymentId: "string",
|
|
107
110
|
* workflowDeploymentName: "string",
|
|
108
111
|
* releaseTag: "string",
|
package/dist/Client.js
CHANGED
|
@@ -82,11 +82,11 @@ class VellumClient {
|
|
|
82
82
|
* externalId: "string",
|
|
83
83
|
* expandMeta: {
|
|
84
84
|
* modelName: true,
|
|
85
|
+
* usage: true,
|
|
86
|
+
* finishReason: true,
|
|
85
87
|
* latency: true,
|
|
86
88
|
* deploymentReleaseTag: true,
|
|
87
|
-
* promptVersionId: true
|
|
88
|
-
* finishReason: true,
|
|
89
|
-
* usage: true
|
|
89
|
+
* promptVersionId: true
|
|
90
90
|
* },
|
|
91
91
|
* rawOverrides: {
|
|
92
92
|
* body: {
|
|
@@ -116,7 +116,7 @@ class VellumClient {
|
|
|
116
116
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
117
117
|
.predict, "v1/execute-prompt"),
|
|
118
118
|
method: "POST",
|
|
119
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.
|
|
119
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
120
120
|
contentType: "application/json",
|
|
121
121
|
requestType: "json",
|
|
122
122
|
body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -174,7 +174,7 @@ class VellumClient {
|
|
|
174
174
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
175
175
|
.predict, "v1/execute-prompt-stream"),
|
|
176
176
|
method: "POST",
|
|
177
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.
|
|
177
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
178
178
|
contentType: "application/json",
|
|
179
179
|
requestType: "json",
|
|
180
180
|
body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -250,6 +250,9 @@ class VellumClient {
|
|
|
250
250
|
* name: "string",
|
|
251
251
|
* value: "string"
|
|
252
252
|
* }],
|
|
253
|
+
* expandMeta: {
|
|
254
|
+
* usage: true
|
|
255
|
+
* },
|
|
253
256
|
* workflowDeploymentId: "string",
|
|
254
257
|
* workflowDeploymentName: "string",
|
|
255
258
|
* releaseTag: "string",
|
|
@@ -263,7 +266,7 @@ class VellumClient {
|
|
|
263
266
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
264
267
|
.predict, "v1/execute-workflow"),
|
|
265
268
|
method: "POST",
|
|
266
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.
|
|
269
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
267
270
|
contentType: "application/json",
|
|
268
271
|
requestType: "json",
|
|
269
272
|
body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -319,7 +322,7 @@ class VellumClient {
|
|
|
319
322
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
320
323
|
.predict, "v1/execute-workflow-stream"),
|
|
321
324
|
method: "POST",
|
|
322
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.
|
|
325
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
323
326
|
contentType: "application/json",
|
|
324
327
|
requestType: "json",
|
|
325
328
|
body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -404,7 +407,7 @@ class VellumClient {
|
|
|
404
407
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
405
408
|
.predict, "v1/generate"),
|
|
406
409
|
method: "POST",
|
|
407
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.
|
|
410
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
408
411
|
contentType: "application/json",
|
|
409
412
|
requestType: "json",
|
|
410
413
|
body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -465,7 +468,7 @@ class VellumClient {
|
|
|
465
468
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
466
469
|
.predict, "v1/generate-stream"),
|
|
467
470
|
method: "POST",
|
|
468
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.
|
|
471
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
469
472
|
contentType: "application/json",
|
|
470
473
|
requestType: "json",
|
|
471
474
|
body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -546,7 +549,7 @@ class VellumClient {
|
|
|
546
549
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
547
550
|
.predict, "v1/search"),
|
|
548
551
|
method: "POST",
|
|
549
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.
|
|
552
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
550
553
|
contentType: "application/json",
|
|
551
554
|
requestType: "json",
|
|
552
555
|
body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -614,7 +617,7 @@ class VellumClient {
|
|
|
614
617
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
615
618
|
.predict, "v1/submit-completion-actuals"),
|
|
616
619
|
method: "POST",
|
|
617
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.
|
|
620
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
618
621
|
contentType: "application/json",
|
|
619
622
|
requestType: "json",
|
|
620
623
|
body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -675,7 +678,7 @@ class VellumClient {
|
|
|
675
678
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
676
679
|
.predict, "v1/submit-workflow-execution-actuals"),
|
|
677
680
|
method: "POST",
|
|
678
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.
|
|
681
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.7.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
679
682
|
contentType: "application/json",
|
|
680
683
|
requestType: "json",
|
|
681
684
|
body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
|
|
@@ -16,11 +16,11 @@ import * as Vellum from "../../index";
|
|
|
16
16
|
* externalId: "string",
|
|
17
17
|
* expandMeta: {
|
|
18
18
|
* modelName: true,
|
|
19
|
+
* usage: true,
|
|
20
|
+
* finishReason: true,
|
|
19
21
|
* latency: true,
|
|
20
22
|
* deploymentReleaseTag: true,
|
|
21
|
-
* promptVersionId: true
|
|
22
|
-
* finishReason: true,
|
|
23
|
-
* usage: true
|
|
23
|
+
* promptVersionId: true
|
|
24
24
|
* },
|
|
25
25
|
* rawOverrides: {
|
|
26
26
|
* body: {
|
|
@@ -16,11 +16,11 @@ import * as Vellum from "../../index";
|
|
|
16
16
|
* externalId: "string",
|
|
17
17
|
* expandMeta: {
|
|
18
18
|
* modelName: true,
|
|
19
|
+
* usage: true,
|
|
20
|
+
* finishReason: true,
|
|
19
21
|
* latency: true,
|
|
20
22
|
* deploymentReleaseTag: true,
|
|
21
|
-
* promptVersionId: true
|
|
22
|
-
* finishReason: true,
|
|
23
|
-
* usage: true
|
|
23
|
+
* promptVersionId: true
|
|
24
24
|
* },
|
|
25
25
|
* rawOverrides: {
|
|
26
26
|
* body: {
|