vellum-ai 0.0.7 → 0.0.9
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/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
- package/api/types/PromptTemplateBlockProperties.d.ts +1 -2
- package/api/types/SandboxScenario.d.ts +1 -1
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +2 -2
- package/dist/api/types/PromptTemplateBlockProperties.d.ts +1 -2
- package/dist/api/types/SandboxScenario.d.ts +1 -1
- package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +1 -1
- package/dist/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +1 -1
- package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +1 -2
- package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -2
- package/dist/serialization/types/SandboxScenario.d.ts +1 -1
- package/dist/serialization/types/SandboxScenario.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +1 -1
- package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js +1 -1
- package/serialization/types/PromptTemplateBlockProperties.d.ts +1 -2
- package/serialization/types/PromptTemplateBlockProperties.js +1 -2
- package/serialization/types/SandboxScenario.d.ts +1 -1
- package/serialization/types/SandboxScenario.js +1 -1
|
@@ -6,7 +6,7 @@ export interface UpsertSandboxScenarioRequestRequest {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
/** The inputs for the scenario */
|
|
8
8
|
inputs: Vellum.SandboxInputRequest[];
|
|
9
|
-
metricInputParams?: Vellum.SandboxMetricInputParamsRequest;
|
|
10
9
|
/** The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended. */
|
|
11
|
-
|
|
10
|
+
scenarioId?: string;
|
|
11
|
+
metricInputParams?: Vellum.SandboxMetricInputParamsRequest;
|
|
12
12
|
}
|
|
@@ -6,7 +6,7 @@ export interface SandboxScenario {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
/** The inputs for the scenario */
|
|
8
8
|
inputs: Vellum.SandboxInput[];
|
|
9
|
-
metricInputParams?: Vellum.SandboxMetricInputParams;
|
|
10
9
|
/** The id of the scenario */
|
|
11
10
|
id: string;
|
|
11
|
+
metricInputParams: Vellum.SandboxMetricInputParams;
|
|
12
12
|
}
|
package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface UpsertSandboxScenarioRequestRequest {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
/** The inputs for the scenario */
|
|
8
8
|
inputs: Vellum.SandboxInputRequest[];
|
|
9
|
-
metricInputParams?: Vellum.SandboxMetricInputParamsRequest;
|
|
10
9
|
/** The id of the scenario to update. If none is provided, an id will be generated and a new scenario will be appended. */
|
|
11
|
-
|
|
10
|
+
scenarioId?: string;
|
|
11
|
+
metricInputParams?: Vellum.SandboxMetricInputParamsRequest;
|
|
12
12
|
}
|
|
@@ -6,7 +6,7 @@ export interface SandboxScenario {
|
|
|
6
6
|
label?: string;
|
|
7
7
|
/** The inputs for the scenario */
|
|
8
8
|
inputs: Vellum.SandboxInput[];
|
|
9
|
-
metricInputParams?: Vellum.SandboxMetricInputParams;
|
|
10
9
|
/** The id of the scenario */
|
|
11
10
|
id: string;
|
|
11
|
+
metricInputParams: Vellum.SandboxMetricInputParams;
|
|
12
12
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace UpsertSandboxScenarioRequestRequest {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
label?: string | null;
|
|
11
11
|
inputs: serializers.SandboxInputRequest.Raw[];
|
|
12
|
+
scenario_id?: string | null;
|
|
12
13
|
metric_input_params?: serializers.SandboxMetricInputParamsRequest.Raw | null;
|
|
13
|
-
id?: string | null;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -31,8 +31,8 @@ const core = __importStar(require("../../../../../core"));
|
|
|
31
31
|
exports.UpsertSandboxScenarioRequestRequest = core.serialization.object({
|
|
32
32
|
label: core.serialization.string().optional(),
|
|
33
33
|
inputs: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).SandboxInputRequest)),
|
|
34
|
+
scenarioId: core.serialization.property("scenario_id", core.serialization.string().optional()),
|
|
34
35
|
metricInputParams: core.serialization.property("metric_input_params", core.serialization
|
|
35
36
|
.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).SandboxMetricInputParamsRequest)
|
|
36
37
|
.optional()),
|
|
37
|
-
id: core.serialization.string().optional(),
|
|
38
38
|
});
|
|
@@ -8,8 +8,7 @@ export declare const PromptTemplateBlockProperties: core.serialization.ObjectSch
|
|
|
8
8
|
export declare namespace PromptTemplateBlockProperties {
|
|
9
9
|
interface Raw {
|
|
10
10
|
chat_role?: serializers.ChatMessageRole.Raw | null;
|
|
11
|
-
|
|
12
|
-
variable_name?: string | null;
|
|
11
|
+
template?: string | null;
|
|
13
12
|
blocks?: Record<string, unknown>[] | null;
|
|
14
13
|
}
|
|
15
14
|
}
|
|
@@ -30,8 +30,7 @@ exports.PromptTemplateBlockProperties = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.PromptTemplateBlockProperties = core.serialization.object({
|
|
32
32
|
chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole).optional()),
|
|
33
|
-
|
|
34
|
-
variableName: core.serialization.property("variable_name", core.serialization.string().optional()),
|
|
33
|
+
template: core.serialization.string().optional(),
|
|
35
34
|
blocks: core.serialization
|
|
36
35
|
.list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
|
|
37
36
|
.optional(),
|
|
@@ -9,7 +9,7 @@ export declare namespace SandboxScenario {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
label?: string | null;
|
|
11
11
|
inputs: serializers.SandboxInput.Raw[];
|
|
12
|
-
metric_input_params?: serializers.SandboxMetricInputParams.Raw | null;
|
|
13
12
|
id: string;
|
|
13
|
+
metric_input_params: serializers.SandboxMetricInputParams.Raw;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -31,6 +31,6 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.SandboxScenario = core.serialization.object({
|
|
32
32
|
label: core.serialization.string().optional(),
|
|
33
33
|
inputs: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SandboxInput)),
|
|
34
|
-
metricInputParams: core.serialization.property("metric_input_params", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SandboxMetricInputParams).optional()),
|
|
35
34
|
id: core.serialization.string(),
|
|
35
|
+
metricInputParams: core.serialization.property("metric_input_params", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SandboxMetricInputParams)),
|
|
36
36
|
});
|
package/package.json
CHANGED
package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare namespace UpsertSandboxScenarioRequestRequest {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
label?: string | null;
|
|
11
11
|
inputs: serializers.SandboxInputRequest.Raw[];
|
|
12
|
+
scenario_id?: string | null;
|
|
12
13
|
metric_input_params?: serializers.SandboxMetricInputParamsRequest.Raw | null;
|
|
13
|
-
id?: string | null;
|
|
14
14
|
}
|
|
15
15
|
}
|
package/serialization/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.js
CHANGED
|
@@ -31,8 +31,8 @@ const core = __importStar(require("../../../../../core"));
|
|
|
31
31
|
exports.UpsertSandboxScenarioRequestRequest = core.serialization.object({
|
|
32
32
|
label: core.serialization.string().optional(),
|
|
33
33
|
inputs: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).SandboxInputRequest)),
|
|
34
|
+
scenarioId: core.serialization.property("scenario_id", core.serialization.string().optional()),
|
|
34
35
|
metricInputParams: core.serialization.property("metric_input_params", core.serialization
|
|
35
36
|
.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../..")))).SandboxMetricInputParamsRequest)
|
|
36
37
|
.optional()),
|
|
37
|
-
id: core.serialization.string().optional(),
|
|
38
38
|
});
|
|
@@ -8,8 +8,7 @@ export declare const PromptTemplateBlockProperties: core.serialization.ObjectSch
|
|
|
8
8
|
export declare namespace PromptTemplateBlockProperties {
|
|
9
9
|
interface Raw {
|
|
10
10
|
chat_role?: serializers.ChatMessageRole.Raw | null;
|
|
11
|
-
|
|
12
|
-
variable_name?: string | null;
|
|
11
|
+
template?: string | null;
|
|
13
12
|
blocks?: Record<string, unknown>[] | null;
|
|
14
13
|
}
|
|
15
14
|
}
|
|
@@ -30,8 +30,7 @@ exports.PromptTemplateBlockProperties = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.PromptTemplateBlockProperties = core.serialization.object({
|
|
32
32
|
chatRole: core.serialization.property("chat_role", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessageRole).optional()),
|
|
33
|
-
|
|
34
|
-
variableName: core.serialization.property("variable_name", core.serialization.string().optional()),
|
|
33
|
+
template: core.serialization.string().optional(),
|
|
35
34
|
blocks: core.serialization
|
|
36
35
|
.list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
|
|
37
36
|
.optional(),
|
|
@@ -9,7 +9,7 @@ export declare namespace SandboxScenario {
|
|
|
9
9
|
interface Raw {
|
|
10
10
|
label?: string | null;
|
|
11
11
|
inputs: serializers.SandboxInput.Raw[];
|
|
12
|
-
metric_input_params?: serializers.SandboxMetricInputParams.Raw | null;
|
|
13
12
|
id: string;
|
|
13
|
+
metric_input_params: serializers.SandboxMetricInputParams.Raw;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -31,6 +31,6 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.SandboxScenario = core.serialization.object({
|
|
32
32
|
label: core.serialization.string().optional(),
|
|
33
33
|
inputs: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SandboxInput)),
|
|
34
|
-
metricInputParams: core.serialization.property("metric_input_params", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SandboxMetricInputParams).optional()),
|
|
35
34
|
id: core.serialization.string(),
|
|
35
|
+
metricInputParams: core.serialization.property("metric_input_params", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).SandboxMetricInputParams)),
|
|
36
36
|
});
|