vellum-ai 0.0.20 → 0.0.22
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/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -0
- package/api/types/ModelVersionRead.d.ts +1 -0
- package/api/types/ProviderEnum.d.ts +3 -1
- package/api/types/ProviderEnum.js +1 -0
- package/api/types/WorkflowEventError.d.ts +8 -0
- package/api/types/WorkflowEventError.js +5 -0
- package/api/types/WorkflowExecutionEventErrorCode.d.ts +12 -0
- package/api/types/WorkflowExecutionEventErrorCode.js +10 -0
- package/api/types/WorkflowNodeResultEvent.d.ts +2 -2
- package/api/types/{WorkflowNodeResultEventStateEnum.d.ts → WorkflowNodeResultEventState.d.ts} +2 -2
- package/{dist/api/types/WorkflowNodeResultEventStateEnum.js → api/types/WorkflowNodeResultEventState.js} +2 -2
- package/api/types/WorkflowResultEvent.d.ts +3 -2
- package/api/types/WorkflowResultEventOutputData.d.ts +16 -0
- package/api/types/WorkflowResultEventOutputData.js +5 -0
- package/api/types/WorkflowResultEventOutputDataChatHistory.d.ts +12 -0
- package/api/types/WorkflowResultEventOutputDataChatHistory.js +5 -0
- package/api/types/WorkflowResultEventOutputDataJson.d.ts +12 -0
- package/api/types/WorkflowResultEventOutputDataJson.js +5 -0
- package/api/types/WorkflowResultEventOutputDataString.d.ts +13 -0
- package/api/types/WorkflowResultEventOutputDataString.js +5 -0
- package/api/types/index.d.ts +7 -2
- package/api/types/index.js +7 -2
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -0
- package/dist/api/types/ModelVersionRead.d.ts +1 -0
- package/dist/api/types/ProviderEnum.d.ts +3 -1
- package/dist/api/types/ProviderEnum.js +1 -0
- package/dist/api/types/WorkflowEventError.d.ts +8 -0
- package/dist/api/types/WorkflowEventError.js +5 -0
- package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +12 -0
- package/dist/api/types/WorkflowExecutionEventErrorCode.js +10 -0
- package/dist/api/types/WorkflowNodeResultEvent.d.ts +2 -2
- package/dist/api/types/{WorkflowNodeResultEventStateEnum.d.ts → WorkflowNodeResultEventState.d.ts} +2 -2
- package/{api/types/WorkflowNodeResultEventStateEnum.js → dist/api/types/WorkflowNodeResultEventState.js} +2 -2
- package/dist/api/types/WorkflowResultEvent.d.ts +3 -2
- package/dist/api/types/WorkflowResultEventOutputData.d.ts +16 -0
- package/dist/api/types/WorkflowResultEventOutputData.js +5 -0
- package/dist/api/types/WorkflowResultEventOutputDataChatHistory.d.ts +12 -0
- package/dist/api/types/WorkflowResultEventOutputDataChatHistory.js +5 -0
- package/dist/api/types/WorkflowResultEventOutputDataJson.d.ts +12 -0
- package/dist/api/types/WorkflowResultEventOutputDataJson.js +5 -0
- package/dist/api/types/WorkflowResultEventOutputDataString.d.ts +13 -0
- package/dist/api/types/WorkflowResultEventOutputDataString.js +5 -0
- package/dist/api/types/index.d.ts +7 -2
- package/dist/api/types/index.js +7 -2
- package/dist/serialization/types/ProviderEnum.d.ts +1 -1
- package/dist/serialization/types/ProviderEnum.js +1 -1
- package/dist/serialization/types/WorkflowEventError.d.ts +13 -0
- package/dist/serialization/types/WorkflowEventError.js +34 -0
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.d.ts +10 -0
- package/dist/serialization/types/{WorkflowResultEventStateEnum.js → WorkflowExecutionEventErrorCode.js} +2 -2
- package/dist/serialization/types/WorkflowNodeResultEvent.d.ts +2 -2
- package/dist/serialization/types/WorkflowNodeResultEvent.js +2 -2
- package/dist/serialization/types/{WorkflowNodeResultEventStateEnum.d.ts → WorkflowNodeResultEventState.d.ts} +2 -2
- package/{serialization/types/WorkflowResultEventStateEnum.js → dist/serialization/types/WorkflowNodeResultEventState.js} +2 -2
- package/dist/serialization/types/WorkflowResultEvent.d.ts +3 -2
- package/dist/serialization/types/WorkflowResultEvent.js +3 -2
- package/dist/serialization/types/WorkflowResultEventOutputData.d.ts +19 -0
- package/dist/serialization/types/WorkflowResultEventOutputData.js +40 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataChatHistory.d.ts +16 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataChatHistory.js +39 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataJson.d.ts +16 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataJson.js +37 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataString.d.ts +16 -0
- package/dist/serialization/types/WorkflowResultEventOutputDataString.js +37 -0
- package/dist/serialization/types/index.d.ts +7 -2
- package/dist/serialization/types/index.js +7 -2
- package/package.json +1 -1
- package/serialization/types/ProviderEnum.d.ts +1 -1
- package/serialization/types/ProviderEnum.js +1 -1
- package/serialization/types/WorkflowEventError.d.ts +13 -0
- package/serialization/types/WorkflowEventError.js +34 -0
- package/serialization/types/WorkflowExecutionEventErrorCode.d.ts +10 -0
- package/{dist/serialization/types/WorkflowNodeResultEventStateEnum.js → serialization/types/WorkflowExecutionEventErrorCode.js} +2 -2
- package/serialization/types/WorkflowNodeResultEvent.d.ts +2 -2
- package/serialization/types/WorkflowNodeResultEvent.js +2 -2
- package/serialization/types/{WorkflowNodeResultEventStateEnum.d.ts → WorkflowNodeResultEventState.d.ts} +2 -2
- package/serialization/types/{WorkflowNodeResultEventStateEnum.js → WorkflowNodeResultEventState.js} +2 -2
- package/serialization/types/WorkflowResultEvent.d.ts +3 -2
- package/serialization/types/WorkflowResultEvent.js +3 -2
- package/serialization/types/WorkflowResultEventOutputData.d.ts +19 -0
- package/serialization/types/WorkflowResultEventOutputData.js +40 -0
- package/serialization/types/WorkflowResultEventOutputDataChatHistory.d.ts +16 -0
- package/serialization/types/WorkflowResultEventOutputDataChatHistory.js +39 -0
- package/serialization/types/WorkflowResultEventOutputDataJson.d.ts +16 -0
- package/serialization/types/WorkflowResultEventOutputDataJson.js +37 -0
- package/serialization/types/WorkflowResultEventOutputDataString.d.ts +16 -0
- package/serialization/types/WorkflowResultEventOutputDataString.js +37 -0
- package/serialization/types/index.d.ts +7 -2
- package/serialization/types/index.js +7 -2
- package/api/types/WorkflowResultEventStateEnum.d.ts +0 -14
- package/api/types/WorkflowResultEventStateEnum.js +0 -11
- package/dist/api/types/WorkflowResultEventStateEnum.d.ts +0 -14
- package/dist/api/types/WorkflowResultEventStateEnum.js +0 -11
- package/dist/serialization/types/WorkflowResultEventStateEnum.d.ts +0 -10
- package/serialization/types/WorkflowResultEventStateEnum.d.ts +0 -10
|
@@ -7,16 +7,18 @@
|
|
|
7
7
|
* * `GOOGLE` - Google
|
|
8
8
|
* * `HOSTED` - Hosted
|
|
9
9
|
* * `MOSAICML` - MosaicML
|
|
10
|
+
* * `MYSTIC` - Mystic
|
|
10
11
|
* * `OPENAI` - OpenAI
|
|
11
12
|
* * `PYQ` - Pyq
|
|
12
13
|
*/
|
|
13
|
-
export declare type ProviderEnum = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "PYQ";
|
|
14
|
+
export declare type ProviderEnum = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "MYSTIC" | "OPENAI" | "PYQ";
|
|
14
15
|
export declare const ProviderEnum: {
|
|
15
16
|
readonly Anthropic: "ANTHROPIC";
|
|
16
17
|
readonly Cohere: "COHERE";
|
|
17
18
|
readonly Google: "GOOGLE";
|
|
18
19
|
readonly Hosted: "HOSTED";
|
|
19
20
|
readonly Mosaicml: "MOSAICML";
|
|
21
|
+
readonly Mystic: "MYSTIC";
|
|
20
22
|
readonly Openai: "OPENAI";
|
|
21
23
|
readonly Pyq: "PYQ";
|
|
22
24
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* * `WORKFLOW_INITIALIZATION` - WORKFLOW_INITIALIZATION
|
|
6
|
+
* * `NODE_EXECUTION` - NODE_EXECUTION
|
|
7
|
+
*/
|
|
8
|
+
export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION";
|
|
9
|
+
export declare const WorkflowExecutionEventErrorCode: {
|
|
10
|
+
readonly WorkflowInitialization: "WORKFLOW_INITIALIZATION";
|
|
11
|
+
readonly NodeExecution: "NODE_EXECUTION";
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.WorkflowExecutionEventErrorCode = void 0;
|
|
7
|
+
exports.WorkflowExecutionEventErrorCode = {
|
|
8
|
+
WorkflowInitialization: "WORKFLOW_INITIALIZATION",
|
|
9
|
+
NodeExecution: "NODE_EXECUTION",
|
|
10
|
+
};
|
|
@@ -6,8 +6,8 @@ export interface WorkflowNodeResultEvent {
|
|
|
6
6
|
id: string;
|
|
7
7
|
nodeId: string;
|
|
8
8
|
nodeResultId: string;
|
|
9
|
-
state: Vellum.
|
|
9
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
10
10
|
ts?: string;
|
|
11
11
|
data?: Vellum.WorkflowNodeResultData;
|
|
12
|
-
error?:
|
|
12
|
+
error?: Vellum.WorkflowEventError;
|
|
13
13
|
}
|
package/api/types/{WorkflowNodeResultEventStateEnum.d.ts → WorkflowNodeResultEventState.d.ts}
RENAMED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* * `FULFILLED` - FULFILLED
|
|
8
8
|
* * `REJECTED` - REJECTED
|
|
9
9
|
*/
|
|
10
|
-
export declare type
|
|
11
|
-
export declare const
|
|
10
|
+
export declare type WorkflowNodeResultEventState = "INITIATED" | "STREAMING" | "FULFILLED" | "REJECTED";
|
|
11
|
+
export declare const WorkflowNodeResultEventState: {
|
|
12
12
|
readonly Initiated: "INITIATED";
|
|
13
13
|
readonly Streaming: "STREAMING";
|
|
14
14
|
readonly Fulfilled: "FULFILLED";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.WorkflowNodeResultEventState = void 0;
|
|
7
|
+
exports.WorkflowNodeResultEventState = {
|
|
8
8
|
Initiated: "INITIATED",
|
|
9
9
|
Streaming: "STREAMING",
|
|
10
10
|
Fulfilled: "FULFILLED",
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
import * as Vellum from "..";
|
|
5
5
|
export interface WorkflowResultEvent {
|
|
6
6
|
id: string;
|
|
7
|
-
state: Vellum.
|
|
7
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
8
8
|
ts: string;
|
|
9
|
-
|
|
9
|
+
output?: Vellum.WorkflowResultEventOutputData;
|
|
10
|
+
error?: Vellum.WorkflowEventError;
|
|
10
11
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type WorkflowResultEventOutputData = Vellum.WorkflowResultEventOutputData.String | Vellum.WorkflowResultEventOutputData.Json | Vellum.WorkflowResultEventOutputData.ChatHistory;
|
|
6
|
+
export declare namespace WorkflowResultEventOutputData {
|
|
7
|
+
interface String extends Vellum.WorkflowResultEventOutputDataString {
|
|
8
|
+
type: "STRING";
|
|
9
|
+
}
|
|
10
|
+
interface Json extends Vellum.WorkflowResultEventOutputDataJson {
|
|
11
|
+
type: "JSON";
|
|
12
|
+
}
|
|
13
|
+
interface ChatHistory extends Vellum.WorkflowResultEventOutputDataChatHistory {
|
|
14
|
+
type: "CHAT_HISTORY";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface WorkflowResultEventOutputDataChatHistory {
|
|
6
|
+
name: string;
|
|
7
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
8
|
+
nodeId: string;
|
|
9
|
+
/** The newly output string value. Only relevant for string outputs with a state of STREAMING. */
|
|
10
|
+
delta?: string;
|
|
11
|
+
value?: Vellum.ChatMessage[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface WorkflowResultEventOutputDataJson {
|
|
6
|
+
name: string;
|
|
7
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
8
|
+
nodeId: string;
|
|
9
|
+
/** The newly output string value. Only relevant for string outputs with a state of STREAMING. */
|
|
10
|
+
delta?: string;
|
|
11
|
+
value?: Record<string, unknown>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface WorkflowResultEventOutputDataString {
|
|
6
|
+
name: string;
|
|
7
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
8
|
+
nodeId: string;
|
|
9
|
+
/** The newly output string value, meant to be concatenated with all previous. Will be non-null for events of state STREAMING. */
|
|
10
|
+
delta?: string;
|
|
11
|
+
/** The entire string value. Will be non-null for events of state FULFILLED. */
|
|
12
|
+
value?: string;
|
|
13
|
+
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -94,15 +94,20 @@ export * from "./TerminalNodeStringResult";
|
|
|
94
94
|
export * from "./TestSuiteTestCase";
|
|
95
95
|
export * from "./UploadDocumentErrorResponse";
|
|
96
96
|
export * from "./UploadDocumentResponse";
|
|
97
|
+
export * from "./WorkflowEventError";
|
|
98
|
+
export * from "./WorkflowExecutionEventErrorCode";
|
|
97
99
|
export * from "./WorkflowExecutionNodeResultEvent";
|
|
98
100
|
export * from "./WorkflowExecutionWorkflowResultEvent";
|
|
99
101
|
export * from "./WorkflowNodeResultData";
|
|
100
102
|
export * from "./WorkflowNodeResultEvent";
|
|
101
|
-
export * from "./
|
|
103
|
+
export * from "./WorkflowNodeResultEventState";
|
|
102
104
|
export * from "./WorkflowRequestChatHistoryInputRequest";
|
|
103
105
|
export * from "./WorkflowRequestInputRequest";
|
|
104
106
|
export * from "./WorkflowRequestJsonInputRequest";
|
|
105
107
|
export * from "./WorkflowRequestStringInputRequest";
|
|
106
108
|
export * from "./WorkflowResultEvent";
|
|
107
|
-
export * from "./
|
|
109
|
+
export * from "./WorkflowResultEventOutputData";
|
|
110
|
+
export * from "./WorkflowResultEventOutputDataChatHistory";
|
|
111
|
+
export * from "./WorkflowResultEventOutputDataJson";
|
|
112
|
+
export * from "./WorkflowResultEventOutputDataString";
|
|
108
113
|
export * from "./WorkflowStreamEvent";
|
package/api/types/index.js
CHANGED
|
@@ -110,15 +110,20 @@ __exportStar(require("./TerminalNodeStringResult"), exports);
|
|
|
110
110
|
__exportStar(require("./TestSuiteTestCase"), exports);
|
|
111
111
|
__exportStar(require("./UploadDocumentErrorResponse"), exports);
|
|
112
112
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
|
113
|
+
__exportStar(require("./WorkflowEventError"), exports);
|
|
114
|
+
__exportStar(require("./WorkflowExecutionEventErrorCode"), exports);
|
|
113
115
|
__exportStar(require("./WorkflowExecutionNodeResultEvent"), exports);
|
|
114
116
|
__exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
|
|
115
117
|
__exportStar(require("./WorkflowNodeResultData"), exports);
|
|
116
118
|
__exportStar(require("./WorkflowNodeResultEvent"), exports);
|
|
117
|
-
__exportStar(require("./
|
|
119
|
+
__exportStar(require("./WorkflowNodeResultEventState"), exports);
|
|
118
120
|
__exportStar(require("./WorkflowRequestChatHistoryInputRequest"), exports);
|
|
119
121
|
__exportStar(require("./WorkflowRequestInputRequest"), exports);
|
|
120
122
|
__exportStar(require("./WorkflowRequestJsonInputRequest"), exports);
|
|
121
123
|
__exportStar(require("./WorkflowRequestStringInputRequest"), exports);
|
|
122
124
|
__exportStar(require("./WorkflowResultEvent"), exports);
|
|
123
|
-
__exportStar(require("./
|
|
125
|
+
__exportStar(require("./WorkflowResultEventOutputData"), exports);
|
|
126
|
+
__exportStar(require("./WorkflowResultEventOutputDataChatHistory"), exports);
|
|
127
|
+
__exportStar(require("./WorkflowResultEventOutputDataJson"), exports);
|
|
128
|
+
__exportStar(require("./WorkflowResultEventOutputDataString"), exports);
|
|
124
129
|
__exportStar(require("./WorkflowStreamEvent"), exports);
|
|
@@ -7,16 +7,18 @@
|
|
|
7
7
|
* * `GOOGLE` - Google
|
|
8
8
|
* * `HOSTED` - Hosted
|
|
9
9
|
* * `MOSAICML` - MosaicML
|
|
10
|
+
* * `MYSTIC` - Mystic
|
|
10
11
|
* * `OPENAI` - OpenAI
|
|
11
12
|
* * `PYQ` - Pyq
|
|
12
13
|
*/
|
|
13
|
-
export declare type ProviderEnum = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "PYQ";
|
|
14
|
+
export declare type ProviderEnum = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "MYSTIC" | "OPENAI" | "PYQ";
|
|
14
15
|
export declare const ProviderEnum: {
|
|
15
16
|
readonly Anthropic: "ANTHROPIC";
|
|
16
17
|
readonly Cohere: "COHERE";
|
|
17
18
|
readonly Google: "GOOGLE";
|
|
18
19
|
readonly Hosted: "HOSTED";
|
|
19
20
|
readonly Mosaicml: "MOSAICML";
|
|
21
|
+
readonly Mystic: "MYSTIC";
|
|
20
22
|
readonly Openai: "OPENAI";
|
|
21
23
|
readonly Pyq: "PYQ";
|
|
22
24
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* * `WORKFLOW_INITIALIZATION` - WORKFLOW_INITIALIZATION
|
|
6
|
+
* * `NODE_EXECUTION` - NODE_EXECUTION
|
|
7
|
+
*/
|
|
8
|
+
export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION";
|
|
9
|
+
export declare const WorkflowExecutionEventErrorCode: {
|
|
10
|
+
readonly WorkflowInitialization: "WORKFLOW_INITIALIZATION";
|
|
11
|
+
readonly NodeExecution: "NODE_EXECUTION";
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.WorkflowExecutionEventErrorCode = void 0;
|
|
7
|
+
exports.WorkflowExecutionEventErrorCode = {
|
|
8
|
+
WorkflowInitialization: "WORKFLOW_INITIALIZATION",
|
|
9
|
+
NodeExecution: "NODE_EXECUTION",
|
|
10
|
+
};
|
|
@@ -6,8 +6,8 @@ export interface WorkflowNodeResultEvent {
|
|
|
6
6
|
id: string;
|
|
7
7
|
nodeId: string;
|
|
8
8
|
nodeResultId: string;
|
|
9
|
-
state: Vellum.
|
|
9
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
10
10
|
ts?: string;
|
|
11
11
|
data?: Vellum.WorkflowNodeResultData;
|
|
12
|
-
error?:
|
|
12
|
+
error?: Vellum.WorkflowEventError;
|
|
13
13
|
}
|
package/dist/api/types/{WorkflowNodeResultEventStateEnum.d.ts → WorkflowNodeResultEventState.d.ts}
RENAMED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* * `FULFILLED` - FULFILLED
|
|
8
8
|
* * `REJECTED` - REJECTED
|
|
9
9
|
*/
|
|
10
|
-
export declare type
|
|
11
|
-
export declare const
|
|
10
|
+
export declare type WorkflowNodeResultEventState = "INITIATED" | "STREAMING" | "FULFILLED" | "REJECTED";
|
|
11
|
+
export declare const WorkflowNodeResultEventState: {
|
|
12
12
|
readonly Initiated: "INITIATED";
|
|
13
13
|
readonly Streaming: "STREAMING";
|
|
14
14
|
readonly Fulfilled: "FULFILLED";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.WorkflowNodeResultEventState = void 0;
|
|
7
|
+
exports.WorkflowNodeResultEventState = {
|
|
8
8
|
Initiated: "INITIATED",
|
|
9
9
|
Streaming: "STREAMING",
|
|
10
10
|
Fulfilled: "FULFILLED",
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
import * as Vellum from "..";
|
|
5
5
|
export interface WorkflowResultEvent {
|
|
6
6
|
id: string;
|
|
7
|
-
state: Vellum.
|
|
7
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
8
8
|
ts: string;
|
|
9
|
-
|
|
9
|
+
output?: Vellum.WorkflowResultEventOutputData;
|
|
10
|
+
error?: Vellum.WorkflowEventError;
|
|
10
11
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export declare type WorkflowResultEventOutputData = Vellum.WorkflowResultEventOutputData.String | Vellum.WorkflowResultEventOutputData.Json | Vellum.WorkflowResultEventOutputData.ChatHistory;
|
|
6
|
+
export declare namespace WorkflowResultEventOutputData {
|
|
7
|
+
interface String extends Vellum.WorkflowResultEventOutputDataString {
|
|
8
|
+
type: "STRING";
|
|
9
|
+
}
|
|
10
|
+
interface Json extends Vellum.WorkflowResultEventOutputDataJson {
|
|
11
|
+
type: "JSON";
|
|
12
|
+
}
|
|
13
|
+
interface ChatHistory extends Vellum.WorkflowResultEventOutputDataChatHistory {
|
|
14
|
+
type: "CHAT_HISTORY";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface WorkflowResultEventOutputDataChatHistory {
|
|
6
|
+
name: string;
|
|
7
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
8
|
+
nodeId: string;
|
|
9
|
+
/** The newly output string value. Only relevant for string outputs with a state of STREAMING. */
|
|
10
|
+
delta?: string;
|
|
11
|
+
value?: Vellum.ChatMessage[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface WorkflowResultEventOutputDataJson {
|
|
6
|
+
name: string;
|
|
7
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
8
|
+
nodeId: string;
|
|
9
|
+
/** The newly output string value. Only relevant for string outputs with a state of STREAMING. */
|
|
10
|
+
delta?: string;
|
|
11
|
+
value?: Record<string, unknown>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Vellum from "..";
|
|
5
|
+
export interface WorkflowResultEventOutputDataString {
|
|
6
|
+
name: string;
|
|
7
|
+
state: Vellum.WorkflowNodeResultEventState;
|
|
8
|
+
nodeId: string;
|
|
9
|
+
/** The newly output string value, meant to be concatenated with all previous. Will be non-null for events of state STREAMING. */
|
|
10
|
+
delta?: string;
|
|
11
|
+
/** The entire string value. Will be non-null for events of state FULFILLED. */
|
|
12
|
+
value?: string;
|
|
13
|
+
}
|
|
@@ -94,15 +94,20 @@ export * from "./TerminalNodeStringResult";
|
|
|
94
94
|
export * from "./TestSuiteTestCase";
|
|
95
95
|
export * from "./UploadDocumentErrorResponse";
|
|
96
96
|
export * from "./UploadDocumentResponse";
|
|
97
|
+
export * from "./WorkflowEventError";
|
|
98
|
+
export * from "./WorkflowExecutionEventErrorCode";
|
|
97
99
|
export * from "./WorkflowExecutionNodeResultEvent";
|
|
98
100
|
export * from "./WorkflowExecutionWorkflowResultEvent";
|
|
99
101
|
export * from "./WorkflowNodeResultData";
|
|
100
102
|
export * from "./WorkflowNodeResultEvent";
|
|
101
|
-
export * from "./
|
|
103
|
+
export * from "./WorkflowNodeResultEventState";
|
|
102
104
|
export * from "./WorkflowRequestChatHistoryInputRequest";
|
|
103
105
|
export * from "./WorkflowRequestInputRequest";
|
|
104
106
|
export * from "./WorkflowRequestJsonInputRequest";
|
|
105
107
|
export * from "./WorkflowRequestStringInputRequest";
|
|
106
108
|
export * from "./WorkflowResultEvent";
|
|
107
|
-
export * from "./
|
|
109
|
+
export * from "./WorkflowResultEventOutputData";
|
|
110
|
+
export * from "./WorkflowResultEventOutputDataChatHistory";
|
|
111
|
+
export * from "./WorkflowResultEventOutputDataJson";
|
|
112
|
+
export * from "./WorkflowResultEventOutputDataString";
|
|
108
113
|
export * from "./WorkflowStreamEvent";
|
package/dist/api/types/index.js
CHANGED
|
@@ -110,15 +110,20 @@ __exportStar(require("./TerminalNodeStringResult"), exports);
|
|
|
110
110
|
__exportStar(require("./TestSuiteTestCase"), exports);
|
|
111
111
|
__exportStar(require("./UploadDocumentErrorResponse"), exports);
|
|
112
112
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
|
113
|
+
__exportStar(require("./WorkflowEventError"), exports);
|
|
114
|
+
__exportStar(require("./WorkflowExecutionEventErrorCode"), exports);
|
|
113
115
|
__exportStar(require("./WorkflowExecutionNodeResultEvent"), exports);
|
|
114
116
|
__exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
|
|
115
117
|
__exportStar(require("./WorkflowNodeResultData"), exports);
|
|
116
118
|
__exportStar(require("./WorkflowNodeResultEvent"), exports);
|
|
117
|
-
__exportStar(require("./
|
|
119
|
+
__exportStar(require("./WorkflowNodeResultEventState"), exports);
|
|
118
120
|
__exportStar(require("./WorkflowRequestChatHistoryInputRequest"), exports);
|
|
119
121
|
__exportStar(require("./WorkflowRequestInputRequest"), exports);
|
|
120
122
|
__exportStar(require("./WorkflowRequestJsonInputRequest"), exports);
|
|
121
123
|
__exportStar(require("./WorkflowRequestStringInputRequest"), exports);
|
|
122
124
|
__exportStar(require("./WorkflowResultEvent"), exports);
|
|
123
|
-
__exportStar(require("./
|
|
125
|
+
__exportStar(require("./WorkflowResultEventOutputData"), exports);
|
|
126
|
+
__exportStar(require("./WorkflowResultEventOutputDataChatHistory"), exports);
|
|
127
|
+
__exportStar(require("./WorkflowResultEventOutputDataJson"), exports);
|
|
128
|
+
__exportStar(require("./WorkflowResultEventOutputDataString"), exports);
|
|
124
129
|
__exportStar(require("./WorkflowStreamEvent"), exports);
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ProviderEnum: core.serialization.Schema<serializers.ProviderEnum.Raw, Vellum.ProviderEnum>;
|
|
8
8
|
export declare namespace ProviderEnum {
|
|
9
|
-
type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "PYQ";
|
|
9
|
+
type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "MYSTIC" | "OPENAI" | "PYQ";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ProviderEnum = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.ProviderEnum = core.serialization.enum_(["ANTHROPIC", "COHERE", "GOOGLE", "HOSTED", "MOSAICML", "OPENAI", "PYQ"]);
|
|
31
|
+
exports.ProviderEnum = core.serialization.enum_(["ANTHROPIC", "COHERE", "GOOGLE", "HOSTED", "MOSAICML", "MYSTIC", "OPENAI", "PYQ"]);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "..";
|
|
5
|
+
import * as Vellum from "../../api";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WorkflowEventError: core.serialization.ObjectSchema<serializers.WorkflowEventError.Raw, Vellum.WorkflowEventError>;
|
|
8
|
+
export declare namespace WorkflowEventError {
|
|
9
|
+
interface Raw {
|
|
10
|
+
message: string;
|
|
11
|
+
code: serializers.WorkflowExecutionEventErrorCode.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.WorkflowEventError = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.WorkflowEventError = core.serialization.object({
|
|
32
|
+
message: core.serialization.string(),
|
|
33
|
+
code: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionEventErrorCode),
|
|
34
|
+
});
|
|
@@ -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 WorkflowExecutionEventErrorCode: core.serialization.Schema<serializers.WorkflowExecutionEventErrorCode.Raw, Vellum.WorkflowExecutionEventErrorCode>;
|
|
8
|
+
export declare namespace WorkflowExecutionEventErrorCode {
|
|
9
|
+
type Raw = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION";
|
|
10
|
+
}
|