vellum-ai 0.0.7 → 0.0.8

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.
@@ -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
- id?: string;
10
+ scenarioId?: string;
11
+ metricInputParams?: Vellum.SandboxMetricInputParamsRequest;
12
12
  }
@@ -4,7 +4,6 @@
4
4
  import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockProperties {
6
6
  chatRole?: Vellum.ChatMessageRole;
7
- text?: string;
8
- variableName?: string;
7
+ template?: string;
9
8
  blocks?: Record<string, unknown>[];
10
9
  }
@@ -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
  }
@@ -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
- id?: string;
10
+ scenarioId?: string;
11
+ metricInputParams?: Vellum.SandboxMetricInputParamsRequest;
12
12
  }
@@ -4,7 +4,6 @@
4
4
  import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockProperties {
6
6
  chatRole?: Vellum.ChatMessageRole;
7
- text?: string;
8
- variableName?: string;
7
+ template?: string;
9
8
  blocks?: Record<string, unknown>[];
10
9
  }
@@ -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
- text?: string | null;
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
- text: core.serialization.string().optional(),
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.0.7",
3
+ "version": "v0.0.8",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",
@@ -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
- text?: string | null;
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
- text: core.serialization.string().optional(),
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
  });