vellum-ai 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +9 -9
- 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/mlModels/client/Client.d.ts +3 -3
- package/api/resources/mlModels/client/Client.js +8 -8
- 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/NamedScenarioInputJsonVariableValueRequest.d.ts +10 -0
- package/api/types/NamedScenarioInputJsonVariableValueRequest.js +5 -0
- package/api/types/NamedScenarioInputRequest.d.ts +4 -1
- package/api/types/ScenarioInput.d.ts +4 -1
- package/api/types/ScenarioInputJsonVariableValue.d.ts +10 -0
- package/api/types/ScenarioInputJsonVariableValue.js +5 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.js +9 -9
- 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/mlModels/client/Client.d.ts +3 -3
- package/dist/api/resources/mlModels/client/Client.js +8 -8
- 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/NamedScenarioInputJsonVariableValueRequest.d.ts +10 -0
- package/dist/api/types/NamedScenarioInputJsonVariableValueRequest.js +5 -0
- package/dist/api/types/NamedScenarioInputRequest.d.ts +4 -1
- package/dist/api/types/ScenarioInput.d.ts +4 -1
- package/dist/api/types/ScenarioInputJsonVariableValue.d.ts +10 -0
- package/dist/api/types/ScenarioInputJsonVariableValue.js +5 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/types/NamedScenarioInputJsonVariableValueRequest.d.ts +13 -0
- package/dist/serialization/types/NamedScenarioInputJsonVariableValueRequest.js +34 -0
- package/dist/serialization/types/NamedScenarioInputRequest.d.ts +5 -1
- package/dist/serialization/types/NamedScenarioInputRequest.js +2 -0
- package/dist/serialization/types/ScenarioInput.d.ts +5 -1
- package/dist/serialization/types/ScenarioInput.js +2 -0
- package/dist/serialization/types/ScenarioInputJsonVariableValue.d.ts +13 -0
- package/dist/serialization/types/ScenarioInputJsonVariableValue.js +34 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/package.json +1 -1
- package/reference.md +3 -3
- package/serialization/types/NamedScenarioInputJsonVariableValueRequest.d.ts +13 -0
- package/serialization/types/NamedScenarioInputJsonVariableValueRequest.js +34 -0
- package/serialization/types/NamedScenarioInputRequest.d.ts +5 -1
- package/serialization/types/NamedScenarioInputRequest.js +2 -0
- package/serialization/types/ScenarioInput.d.ts +5 -1
- package/serialization/types/ScenarioInput.js +2 -0
- package/serialization/types/ScenarioInputJsonVariableValue.d.ts +13 -0
- package/serialization/types/ScenarioInputJsonVariableValue.js +34 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../index";
|
|
5
|
-
export declare type NamedScenarioInputRequest = Vellum.NamedScenarioInputRequest.String | Vellum.NamedScenarioInputRequest.ChatHistory;
|
|
5
|
+
export declare type NamedScenarioInputRequest = Vellum.NamedScenarioInputRequest.String | Vellum.NamedScenarioInputRequest.Json | Vellum.NamedScenarioInputRequest.ChatHistory;
|
|
6
6
|
export declare namespace NamedScenarioInputRequest {
|
|
7
7
|
interface String extends Vellum.NamedScenarioInputStringVariableValueRequest {
|
|
8
8
|
type: "STRING";
|
|
9
9
|
}
|
|
10
|
+
interface Json extends Vellum.NamedScenarioInputJsonVariableValueRequest {
|
|
11
|
+
type: "JSON";
|
|
12
|
+
}
|
|
10
13
|
interface ChatHistory extends Vellum.NamedScenarioInputChatHistoryVariableValueRequest {
|
|
11
14
|
type: "CHAT_HISTORY";
|
|
12
15
|
}
|
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "../index";
|
|
5
|
-
export declare type ScenarioInput = Vellum.ScenarioInput.String | Vellum.ScenarioInput.ChatHistory;
|
|
5
|
+
export declare type ScenarioInput = Vellum.ScenarioInput.String | Vellum.ScenarioInput.Json | Vellum.ScenarioInput.ChatHistory;
|
|
6
6
|
export declare namespace ScenarioInput {
|
|
7
7
|
interface String extends Vellum.ScenarioInputStringVariableValue {
|
|
8
8
|
type: "STRING";
|
|
9
9
|
}
|
|
10
|
+
interface Json extends Vellum.ScenarioInputJsonVariableValue {
|
|
11
|
+
type: "JSON";
|
|
12
|
+
}
|
|
10
13
|
interface ChatHistory extends Vellum.ScenarioInputChatHistoryVariableValue {
|
|
11
14
|
type: "CHAT_HISTORY";
|
|
12
15
|
}
|
|
@@ -153,6 +153,7 @@ export * from "./MetadataFilterRuleCombinator";
|
|
|
153
153
|
export * from "./MetadataFilterRuleRequest";
|
|
154
154
|
export * from "./MetricNodeResult";
|
|
155
155
|
export * from "./NamedScenarioInputChatHistoryVariableValueRequest";
|
|
156
|
+
export * from "./NamedScenarioInputJsonVariableValueRequest";
|
|
156
157
|
export * from "./NamedScenarioInputRequest";
|
|
157
158
|
export * from "./NamedScenarioInputStringVariableValueRequest";
|
|
158
159
|
export * from "./NamedTestCaseArrayVariableValue";
|
|
@@ -255,6 +256,7 @@ export * from "./ReplaceTestSuiteTestCaseRequest";
|
|
|
255
256
|
export * from "./SandboxScenario";
|
|
256
257
|
export * from "./ScenarioInput";
|
|
257
258
|
export * from "./ScenarioInputChatHistoryVariableValue";
|
|
259
|
+
export * from "./ScenarioInputJsonVariableValue";
|
|
258
260
|
export * from "./ScenarioInputStringVariableValue";
|
|
259
261
|
export * from "./SearchFiltersRequest";
|
|
260
262
|
export * from "./SearchNodeResult";
|
package/dist/api/types/index.js
CHANGED
|
@@ -169,6 +169,7 @@ __exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
|
169
169
|
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|
|
170
170
|
__exportStar(require("./MetricNodeResult"), exports);
|
|
171
171
|
__exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
|
|
172
|
+
__exportStar(require("./NamedScenarioInputJsonVariableValueRequest"), exports);
|
|
172
173
|
__exportStar(require("./NamedScenarioInputRequest"), exports);
|
|
173
174
|
__exportStar(require("./NamedScenarioInputStringVariableValueRequest"), exports);
|
|
174
175
|
__exportStar(require("./NamedTestCaseArrayVariableValue"), exports);
|
|
@@ -271,6 +272,7 @@ __exportStar(require("./ReplaceTestSuiteTestCaseRequest"), exports);
|
|
|
271
272
|
__exportStar(require("./SandboxScenario"), exports);
|
|
272
273
|
__exportStar(require("./ScenarioInput"), exports);
|
|
273
274
|
__exportStar(require("./ScenarioInputChatHistoryVariableValue"), exports);
|
|
275
|
+
__exportStar(require("./ScenarioInputJsonVariableValue"), exports);
|
|
274
276
|
__exportStar(require("./ScenarioInputStringVariableValue"), exports);
|
|
275
277
|
__exportStar(require("./SearchFiltersRequest"), exports);
|
|
276
278
|
__exportStar(require("./SearchNodeResult"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const NamedScenarioInputJsonVariableValueRequest: core.serialization.ObjectSchema<serializers.NamedScenarioInputJsonVariableValueRequest.Raw, Vellum.NamedScenarioInputJsonVariableValueRequest>;
|
|
8
|
+
export declare namespace NamedScenarioInputJsonVariableValueRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: unknown;
|
|
11
|
+
name: string;
|
|
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.NamedScenarioInputJsonVariableValueRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.NamedScenarioInputJsonVariableValueRequest = core.serialization.object({
|
|
32
|
+
value: core.serialization.unknown(),
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
});
|
|
@@ -5,13 +5,17 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { NamedScenarioInputStringVariableValueRequest } from "./NamedScenarioInputStringVariableValueRequest";
|
|
8
|
+
import { NamedScenarioInputJsonVariableValueRequest } from "./NamedScenarioInputJsonVariableValueRequest";
|
|
8
9
|
import { NamedScenarioInputChatHistoryVariableValueRequest } from "./NamedScenarioInputChatHistoryVariableValueRequest";
|
|
9
10
|
export declare const NamedScenarioInputRequest: core.serialization.Schema<serializers.NamedScenarioInputRequest.Raw, Vellum.NamedScenarioInputRequest>;
|
|
10
11
|
export declare namespace NamedScenarioInputRequest {
|
|
11
|
-
type Raw = NamedScenarioInputRequest.String | NamedScenarioInputRequest.ChatHistory;
|
|
12
|
+
type Raw = NamedScenarioInputRequest.String | NamedScenarioInputRequest.Json | NamedScenarioInputRequest.ChatHistory;
|
|
12
13
|
interface String extends NamedScenarioInputStringVariableValueRequest.Raw {
|
|
13
14
|
type: "STRING";
|
|
14
15
|
}
|
|
16
|
+
interface Json extends NamedScenarioInputJsonVariableValueRequest.Raw {
|
|
17
|
+
type: "JSON";
|
|
18
|
+
}
|
|
15
19
|
interface ChatHistory extends NamedScenarioInputChatHistoryVariableValueRequest.Raw {
|
|
16
20
|
type: "CHAT_HISTORY";
|
|
17
21
|
}
|
|
@@ -29,10 +29,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.NamedScenarioInputRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const NamedScenarioInputStringVariableValueRequest_1 = require("./NamedScenarioInputStringVariableValueRequest");
|
|
32
|
+
const NamedScenarioInputJsonVariableValueRequest_1 = require("./NamedScenarioInputJsonVariableValueRequest");
|
|
32
33
|
const NamedScenarioInputChatHistoryVariableValueRequest_1 = require("./NamedScenarioInputChatHistoryVariableValueRequest");
|
|
33
34
|
exports.NamedScenarioInputRequest = core.serialization
|
|
34
35
|
.union("type", {
|
|
35
36
|
STRING: NamedScenarioInputStringVariableValueRequest_1.NamedScenarioInputStringVariableValueRequest,
|
|
37
|
+
JSON: NamedScenarioInputJsonVariableValueRequest_1.NamedScenarioInputJsonVariableValueRequest,
|
|
36
38
|
CHAT_HISTORY: NamedScenarioInputChatHistoryVariableValueRequest_1.NamedScenarioInputChatHistoryVariableValueRequest,
|
|
37
39
|
})
|
|
38
40
|
.transform({
|
|
@@ -5,13 +5,17 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ScenarioInputStringVariableValue } from "./ScenarioInputStringVariableValue";
|
|
8
|
+
import { ScenarioInputJsonVariableValue } from "./ScenarioInputJsonVariableValue";
|
|
8
9
|
import { ScenarioInputChatHistoryVariableValue } from "./ScenarioInputChatHistoryVariableValue";
|
|
9
10
|
export declare const ScenarioInput: core.serialization.Schema<serializers.ScenarioInput.Raw, Vellum.ScenarioInput>;
|
|
10
11
|
export declare namespace ScenarioInput {
|
|
11
|
-
type Raw = ScenarioInput.String | ScenarioInput.ChatHistory;
|
|
12
|
+
type Raw = ScenarioInput.String | ScenarioInput.Json | ScenarioInput.ChatHistory;
|
|
12
13
|
interface String extends ScenarioInputStringVariableValue.Raw {
|
|
13
14
|
type: "STRING";
|
|
14
15
|
}
|
|
16
|
+
interface Json extends ScenarioInputJsonVariableValue.Raw {
|
|
17
|
+
type: "JSON";
|
|
18
|
+
}
|
|
15
19
|
interface ChatHistory extends ScenarioInputChatHistoryVariableValue.Raw {
|
|
16
20
|
type: "CHAT_HISTORY";
|
|
17
21
|
}
|
|
@@ -29,10 +29,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ScenarioInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const ScenarioInputStringVariableValue_1 = require("./ScenarioInputStringVariableValue");
|
|
32
|
+
const ScenarioInputJsonVariableValue_1 = require("./ScenarioInputJsonVariableValue");
|
|
32
33
|
const ScenarioInputChatHistoryVariableValue_1 = require("./ScenarioInputChatHistoryVariableValue");
|
|
33
34
|
exports.ScenarioInput = core.serialization
|
|
34
35
|
.union("type", {
|
|
35
36
|
STRING: ScenarioInputStringVariableValue_1.ScenarioInputStringVariableValue,
|
|
37
|
+
JSON: ScenarioInputJsonVariableValue_1.ScenarioInputJsonVariableValue,
|
|
36
38
|
CHAT_HISTORY: ScenarioInputChatHistoryVariableValue_1.ScenarioInputChatHistoryVariableValue,
|
|
37
39
|
})
|
|
38
40
|
.transform({
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ScenarioInputJsonVariableValue: core.serialization.ObjectSchema<serializers.ScenarioInputJsonVariableValue.Raw, Vellum.ScenarioInputJsonVariableValue>;
|
|
8
|
+
export declare namespace ScenarioInputJsonVariableValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: unknown;
|
|
11
|
+
input_variable_id: string;
|
|
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.ScenarioInputJsonVariableValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ScenarioInputJsonVariableValue = core.serialization.object({
|
|
32
|
+
value: core.serialization.unknown(),
|
|
33
|
+
inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
|
|
34
|
+
});
|
|
@@ -153,6 +153,7 @@ export * from "./MetadataFilterRuleCombinator";
|
|
|
153
153
|
export * from "./MetadataFilterRuleRequest";
|
|
154
154
|
export * from "./MetricNodeResult";
|
|
155
155
|
export * from "./NamedScenarioInputChatHistoryVariableValueRequest";
|
|
156
|
+
export * from "./NamedScenarioInputJsonVariableValueRequest";
|
|
156
157
|
export * from "./NamedScenarioInputRequest";
|
|
157
158
|
export * from "./NamedScenarioInputStringVariableValueRequest";
|
|
158
159
|
export * from "./NamedTestCaseArrayVariableValue";
|
|
@@ -255,6 +256,7 @@ export * from "./ReplaceTestSuiteTestCaseRequest";
|
|
|
255
256
|
export * from "./SandboxScenario";
|
|
256
257
|
export * from "./ScenarioInput";
|
|
257
258
|
export * from "./ScenarioInputChatHistoryVariableValue";
|
|
259
|
+
export * from "./ScenarioInputJsonVariableValue";
|
|
258
260
|
export * from "./ScenarioInputStringVariableValue";
|
|
259
261
|
export * from "./SearchFiltersRequest";
|
|
260
262
|
export * from "./SearchNodeResult";
|
|
@@ -169,6 +169,7 @@ __exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
|
169
169
|
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|
|
170
170
|
__exportStar(require("./MetricNodeResult"), exports);
|
|
171
171
|
__exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
|
|
172
|
+
__exportStar(require("./NamedScenarioInputJsonVariableValueRequest"), exports);
|
|
172
173
|
__exportStar(require("./NamedScenarioInputRequest"), exports);
|
|
173
174
|
__exportStar(require("./NamedScenarioInputStringVariableValueRequest"), exports);
|
|
174
175
|
__exportStar(require("./NamedTestCaseArrayVariableValue"), exports);
|
|
@@ -271,6 +272,7 @@ __exportStar(require("./ReplaceTestSuiteTestCaseRequest"), exports);
|
|
|
271
272
|
__exportStar(require("./SandboxScenario"), exports);
|
|
272
273
|
__exportStar(require("./ScenarioInput"), exports);
|
|
273
274
|
__exportStar(require("./ScenarioInputChatHistoryVariableValue"), exports);
|
|
275
|
+
__exportStar(require("./ScenarioInputJsonVariableValue"), exports);
|
|
274
276
|
__exportStar(require("./ScenarioInputStringVariableValue"), exports);
|
|
275
277
|
__exportStar(require("./SearchFiltersRequest"), exports);
|
|
276
278
|
__exportStar(require("./SearchNodeResult"), exports);
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1585,7 +1585,7 @@ await client.mlModels.retrieve("id");
|
|
|
1585
1585
|
<dl>
|
|
1586
1586
|
<dd>
|
|
1587
1587
|
|
|
1588
|
-
**id:** `string` —
|
|
1588
|
+
**id:** `string` — Either the ML Model's ID or its unique name
|
|
1589
1589
|
|
|
1590
1590
|
</dd>
|
|
1591
1591
|
</dl>
|
|
@@ -1648,7 +1648,7 @@ await client.mlModels.update("id");
|
|
|
1648
1648
|
<dl>
|
|
1649
1649
|
<dd>
|
|
1650
1650
|
|
|
1651
|
-
**id:** `string` —
|
|
1651
|
+
**id:** `string` — Either the ML Model's ID or its unique name
|
|
1652
1652
|
|
|
1653
1653
|
</dd>
|
|
1654
1654
|
</dl>
|
|
@@ -1719,7 +1719,7 @@ await client.mlModels.partialUpdate("id");
|
|
|
1719
1719
|
<dl>
|
|
1720
1720
|
<dd>
|
|
1721
1721
|
|
|
1722
|
-
**id:** `string` —
|
|
1722
|
+
**id:** `string` — Either the ML Model's ID or its unique name
|
|
1723
1723
|
|
|
1724
1724
|
</dd>
|
|
1725
1725
|
</dl>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const NamedScenarioInputJsonVariableValueRequest: core.serialization.ObjectSchema<serializers.NamedScenarioInputJsonVariableValueRequest.Raw, Vellum.NamedScenarioInputJsonVariableValueRequest>;
|
|
8
|
+
export declare namespace NamedScenarioInputJsonVariableValueRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: unknown;
|
|
11
|
+
name: string;
|
|
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.NamedScenarioInputJsonVariableValueRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.NamedScenarioInputJsonVariableValueRequest = core.serialization.object({
|
|
32
|
+
value: core.serialization.unknown(),
|
|
33
|
+
name: core.serialization.string(),
|
|
34
|
+
});
|
|
@@ -5,13 +5,17 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { NamedScenarioInputStringVariableValueRequest } from "./NamedScenarioInputStringVariableValueRequest";
|
|
8
|
+
import { NamedScenarioInputJsonVariableValueRequest } from "./NamedScenarioInputJsonVariableValueRequest";
|
|
8
9
|
import { NamedScenarioInputChatHistoryVariableValueRequest } from "./NamedScenarioInputChatHistoryVariableValueRequest";
|
|
9
10
|
export declare const NamedScenarioInputRequest: core.serialization.Schema<serializers.NamedScenarioInputRequest.Raw, Vellum.NamedScenarioInputRequest>;
|
|
10
11
|
export declare namespace NamedScenarioInputRequest {
|
|
11
|
-
type Raw = NamedScenarioInputRequest.String | NamedScenarioInputRequest.ChatHistory;
|
|
12
|
+
type Raw = NamedScenarioInputRequest.String | NamedScenarioInputRequest.Json | NamedScenarioInputRequest.ChatHistory;
|
|
12
13
|
interface String extends NamedScenarioInputStringVariableValueRequest.Raw {
|
|
13
14
|
type: "STRING";
|
|
14
15
|
}
|
|
16
|
+
interface Json extends NamedScenarioInputJsonVariableValueRequest.Raw {
|
|
17
|
+
type: "JSON";
|
|
18
|
+
}
|
|
15
19
|
interface ChatHistory extends NamedScenarioInputChatHistoryVariableValueRequest.Raw {
|
|
16
20
|
type: "CHAT_HISTORY";
|
|
17
21
|
}
|
|
@@ -29,10 +29,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.NamedScenarioInputRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const NamedScenarioInputStringVariableValueRequest_1 = require("./NamedScenarioInputStringVariableValueRequest");
|
|
32
|
+
const NamedScenarioInputJsonVariableValueRequest_1 = require("./NamedScenarioInputJsonVariableValueRequest");
|
|
32
33
|
const NamedScenarioInputChatHistoryVariableValueRequest_1 = require("./NamedScenarioInputChatHistoryVariableValueRequest");
|
|
33
34
|
exports.NamedScenarioInputRequest = core.serialization
|
|
34
35
|
.union("type", {
|
|
35
36
|
STRING: NamedScenarioInputStringVariableValueRequest_1.NamedScenarioInputStringVariableValueRequest,
|
|
37
|
+
JSON: NamedScenarioInputJsonVariableValueRequest_1.NamedScenarioInputJsonVariableValueRequest,
|
|
36
38
|
CHAT_HISTORY: NamedScenarioInputChatHistoryVariableValueRequest_1.NamedScenarioInputChatHistoryVariableValueRequest,
|
|
37
39
|
})
|
|
38
40
|
.transform({
|
|
@@ -5,13 +5,17 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Vellum from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ScenarioInputStringVariableValue } from "./ScenarioInputStringVariableValue";
|
|
8
|
+
import { ScenarioInputJsonVariableValue } from "./ScenarioInputJsonVariableValue";
|
|
8
9
|
import { ScenarioInputChatHistoryVariableValue } from "./ScenarioInputChatHistoryVariableValue";
|
|
9
10
|
export declare const ScenarioInput: core.serialization.Schema<serializers.ScenarioInput.Raw, Vellum.ScenarioInput>;
|
|
10
11
|
export declare namespace ScenarioInput {
|
|
11
|
-
type Raw = ScenarioInput.String | ScenarioInput.ChatHistory;
|
|
12
|
+
type Raw = ScenarioInput.String | ScenarioInput.Json | ScenarioInput.ChatHistory;
|
|
12
13
|
interface String extends ScenarioInputStringVariableValue.Raw {
|
|
13
14
|
type: "STRING";
|
|
14
15
|
}
|
|
16
|
+
interface Json extends ScenarioInputJsonVariableValue.Raw {
|
|
17
|
+
type: "JSON";
|
|
18
|
+
}
|
|
15
19
|
interface ChatHistory extends ScenarioInputChatHistoryVariableValue.Raw {
|
|
16
20
|
type: "CHAT_HISTORY";
|
|
17
21
|
}
|
|
@@ -29,10 +29,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.ScenarioInput = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const ScenarioInputStringVariableValue_1 = require("./ScenarioInputStringVariableValue");
|
|
32
|
+
const ScenarioInputJsonVariableValue_1 = require("./ScenarioInputJsonVariableValue");
|
|
32
33
|
const ScenarioInputChatHistoryVariableValue_1 = require("./ScenarioInputChatHistoryVariableValue");
|
|
33
34
|
exports.ScenarioInput = core.serialization
|
|
34
35
|
.union("type", {
|
|
35
36
|
STRING: ScenarioInputStringVariableValue_1.ScenarioInputStringVariableValue,
|
|
37
|
+
JSON: ScenarioInputJsonVariableValue_1.ScenarioInputJsonVariableValue,
|
|
36
38
|
CHAT_HISTORY: ScenarioInputChatHistoryVariableValue_1.ScenarioInputChatHistoryVariableValue,
|
|
37
39
|
})
|
|
38
40
|
.transform({
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ScenarioInputJsonVariableValue: core.serialization.ObjectSchema<serializers.ScenarioInputJsonVariableValue.Raw, Vellum.ScenarioInputJsonVariableValue>;
|
|
8
|
+
export declare namespace ScenarioInputJsonVariableValue {
|
|
9
|
+
interface Raw {
|
|
10
|
+
value?: unknown;
|
|
11
|
+
input_variable_id: string;
|
|
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.ScenarioInputJsonVariableValue = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.ScenarioInputJsonVariableValue = core.serialization.object({
|
|
32
|
+
value: core.serialization.unknown(),
|
|
33
|
+
inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
|
|
34
|
+
});
|
|
@@ -153,6 +153,7 @@ export * from "./MetadataFilterRuleCombinator";
|
|
|
153
153
|
export * from "./MetadataFilterRuleRequest";
|
|
154
154
|
export * from "./MetricNodeResult";
|
|
155
155
|
export * from "./NamedScenarioInputChatHistoryVariableValueRequest";
|
|
156
|
+
export * from "./NamedScenarioInputJsonVariableValueRequest";
|
|
156
157
|
export * from "./NamedScenarioInputRequest";
|
|
157
158
|
export * from "./NamedScenarioInputStringVariableValueRequest";
|
|
158
159
|
export * from "./NamedTestCaseArrayVariableValue";
|
|
@@ -255,6 +256,7 @@ export * from "./ReplaceTestSuiteTestCaseRequest";
|
|
|
255
256
|
export * from "./SandboxScenario";
|
|
256
257
|
export * from "./ScenarioInput";
|
|
257
258
|
export * from "./ScenarioInputChatHistoryVariableValue";
|
|
259
|
+
export * from "./ScenarioInputJsonVariableValue";
|
|
258
260
|
export * from "./ScenarioInputStringVariableValue";
|
|
259
261
|
export * from "./SearchFiltersRequest";
|
|
260
262
|
export * from "./SearchNodeResult";
|
|
@@ -169,6 +169,7 @@ __exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
|
169
169
|
__exportStar(require("./MetadataFilterRuleRequest"), exports);
|
|
170
170
|
__exportStar(require("./MetricNodeResult"), exports);
|
|
171
171
|
__exportStar(require("./NamedScenarioInputChatHistoryVariableValueRequest"), exports);
|
|
172
|
+
__exportStar(require("./NamedScenarioInputJsonVariableValueRequest"), exports);
|
|
172
173
|
__exportStar(require("./NamedScenarioInputRequest"), exports);
|
|
173
174
|
__exportStar(require("./NamedScenarioInputStringVariableValueRequest"), exports);
|
|
174
175
|
__exportStar(require("./NamedTestCaseArrayVariableValue"), exports);
|
|
@@ -271,6 +272,7 @@ __exportStar(require("./ReplaceTestSuiteTestCaseRequest"), exports);
|
|
|
271
272
|
__exportStar(require("./SandboxScenario"), exports);
|
|
272
273
|
__exportStar(require("./ScenarioInput"), exports);
|
|
273
274
|
__exportStar(require("./ScenarioInputChatHistoryVariableValue"), exports);
|
|
275
|
+
__exportStar(require("./ScenarioInputJsonVariableValue"), exports);
|
|
274
276
|
__exportStar(require("./ScenarioInputStringVariableValue"), exports);
|
|
275
277
|
__exportStar(require("./SearchFiltersRequest"), exports);
|
|
276
278
|
__exportStar(require("./SearchNodeResult"), exports);
|