vellum-ai 0.0.11 → 0.0.12

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.
Files changed (47) hide show
  1. package/Client.d.ts +1 -1
  2. package/Client.js +1 -1
  3. package/api/{types → client/requests}/GenerateBodyRequest.d.ts +1 -1
  4. package/api/client/requests/GenerateStreamBodyRequest.d.ts +14 -0
  5. package/api/client/requests/index.d.ts +2 -0
  6. package/api/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  7. package/api/types/PromptTemplateBlockProperties.d.ts +1 -0
  8. package/api/types/index.d.ts +0 -1
  9. package/api/types/index.js +0 -1
  10. package/dist/Client.d.ts +1 -1
  11. package/dist/Client.js +1 -1
  12. package/dist/api/{types → client/requests}/GenerateBodyRequest.d.ts +1 -1
  13. package/dist/api/client/requests/GenerateBodyRequest.js +5 -0
  14. package/dist/api/client/requests/GenerateStreamBodyRequest.d.ts +14 -0
  15. package/dist/api/client/requests/GenerateStreamBodyRequest.js +5 -0
  16. package/dist/api/client/requests/index.d.ts +2 -0
  17. package/dist/api/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  18. package/dist/api/types/PromptTemplateBlockProperties.d.ts +1 -0
  19. package/dist/api/types/index.d.ts +0 -1
  20. package/dist/api/types/index.js +0 -1
  21. package/dist/serialization/{types → client/requests}/GenerateBodyRequest.d.ts +4 -4
  22. package/dist/serialization/{types → client/requests}/GenerateBodyRequest.js +3 -3
  23. package/dist/serialization/client/requests/GenerateStreamBodyRequest.d.ts +15 -0
  24. package/dist/serialization/client/requests/GenerateStreamBodyRequest.js +36 -0
  25. package/dist/serialization/client/requests/index.d.ts +2 -0
  26. package/dist/serialization/client/requests/index.js +5 -1
  27. package/dist/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  28. package/dist/serialization/types/ModelVersionSandboxSnapshot.js +1 -1
  29. package/dist/serialization/types/PromptTemplateBlockProperties.d.ts +1 -0
  30. package/dist/serialization/types/PromptTemplateBlockProperties.js +1 -0
  31. package/dist/serialization/types/index.d.ts +0 -1
  32. package/dist/serialization/types/index.js +0 -1
  33. package/package.json +1 -1
  34. package/serialization/{types → client/requests}/GenerateBodyRequest.d.ts +4 -4
  35. package/serialization/{types → client/requests}/GenerateBodyRequest.js +3 -3
  36. package/serialization/client/requests/GenerateStreamBodyRequest.d.ts +15 -0
  37. package/serialization/client/requests/GenerateStreamBodyRequest.js +36 -0
  38. package/serialization/client/requests/index.d.ts +2 -0
  39. package/serialization/client/requests/index.js +5 -1
  40. package/serialization/types/ModelVersionSandboxSnapshot.d.ts +1 -1
  41. package/serialization/types/ModelVersionSandboxSnapshot.js +1 -1
  42. package/serialization/types/PromptTemplateBlockProperties.d.ts +1 -0
  43. package/serialization/types/PromptTemplateBlockProperties.js +1 -0
  44. package/serialization/types/index.d.ts +0 -1
  45. package/serialization/types/index.js +0 -1
  46. /package/api/{types → client/requests}/GenerateBodyRequest.js +0 -0
  47. /package/{dist/api/types/GenerateBodyRequest.js → api/client/requests/GenerateStreamBodyRequest.js} +0 -0
package/Client.d.ts CHANGED
@@ -33,7 +33,7 @@ export declare class VellumClient {
33
33
  * @throws {Vellum.NotFoundError}
34
34
  * @throws {Vellum.InternalServerError}
35
35
  */
36
- generateStream(request: Vellum.GenerateBodyRequest, cb: (data: Vellum.GenerateStreamResponse) => void, opts?: Pick<core.StreamingFetcher.Args, "onError" | "onFinish" | "abortController" | "timeoutMs">): Promise<void>;
36
+ generateStream(request: Vellum.GenerateStreamBodyRequest, cb: (data: Vellum.GenerateStreamResponse) => void, opts?: Pick<core.StreamingFetcher.Args, "onError" | "onFinish" | "abortController" | "timeoutMs">): Promise<void>;
37
37
  /**
38
38
  * <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
39
39
  *
package/Client.js CHANGED
@@ -114,7 +114,7 @@ class VellumClient {
114
114
  headers: {
115
115
  X_API_KEY: await core.Supplier.get(this.options.apiKey),
116
116
  },
117
- body: await serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
117
+ body: await serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
118
118
  onData: _queue.wrap(async (data) => {
119
119
  const parsed = await serializers.GenerateStreamResponse.parse(data, {
120
120
  unrecognizedObjectKeys: "passthrough",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Vellum from "..";
4
+ import * as Vellum from "../..";
5
5
  export interface GenerateBodyRequest {
6
6
  /** The ID of the deployment. Must provide either this or deployment_name. */
7
7
  deploymentId?: string;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../..";
5
+ export interface GenerateStreamBodyRequest {
6
+ /** The ID of the deployment. Must provide either this or deployment_name. */
7
+ deploymentId?: string;
8
+ /** The name of the deployment. Must provide either this or deployment_id. */
9
+ deploymentName?: string;
10
+ /** The generation requests to make. Supplying multiple will perform a bulk request to the LLM provided when possible. */
11
+ requests: Vellum.GenerateRequest[];
12
+ /** Additional configuration that can be used to control what's included in the response. */
13
+ options?: Vellum.GenerateOptionsRequest;
14
+ }
@@ -1,2 +1,4 @@
1
+ export { GenerateBodyRequest } from "./GenerateBodyRequest";
2
+ export { GenerateStreamBodyRequest } from "./GenerateStreamBodyRequest";
1
3
  export { SearchRequestBodyRequest } from "./SearchRequestBodyRequest";
2
4
  export { SubmitCompletionActualsRequest } from "./SubmitCompletionActualsRequest";
@@ -5,7 +5,7 @@ export interface ModelVersionSandboxSnapshot {
5
5
  /** The ID of the sandbox snapshot. */
6
6
  id: string;
7
7
  /** The index of the prompt in the sandbox snapshot. */
8
- promptIndex: number;
8
+ promptIndex?: number;
9
9
  /** The id of the prompt in the sandbox snapshot. */
10
10
  promptId?: string;
11
11
  }
@@ -4,6 +4,7 @@
4
4
  import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockProperties {
6
6
  chatRole?: Vellum.ChatMessageRole;
7
+ chatMessageUnterminated?: boolean;
7
8
  template?: string;
8
9
  blocks?: Record<string, unknown>[];
9
10
  }
@@ -1,4 +1,3 @@
1
- export * from "./GenerateBodyRequest";
2
1
  export * from "./BlockTypeEnum";
3
2
  export * from "./ChatMessage";
4
3
  export * from "./ChatMessageRequest";
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./GenerateBodyRequest"), exports);
18
17
  __exportStar(require("./BlockTypeEnum"), exports);
19
18
  __exportStar(require("./ChatMessage"), exports);
20
19
  __exportStar(require("./ChatMessageRequest"), exports);
package/dist/Client.d.ts CHANGED
@@ -33,7 +33,7 @@ export declare class VellumClient {
33
33
  * @throws {Vellum.NotFoundError}
34
34
  * @throws {Vellum.InternalServerError}
35
35
  */
36
- generateStream(request: Vellum.GenerateBodyRequest, cb: (data: Vellum.GenerateStreamResponse) => void, opts?: Pick<core.StreamingFetcher.Args, "onError" | "onFinish" | "abortController" | "timeoutMs">): Promise<void>;
36
+ generateStream(request: Vellum.GenerateStreamBodyRequest, cb: (data: Vellum.GenerateStreamResponse) => void, opts?: Pick<core.StreamingFetcher.Args, "onError" | "onFinish" | "abortController" | "timeoutMs">): Promise<void>;
37
37
  /**
38
38
  * <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
39
39
  *
package/dist/Client.js CHANGED
@@ -114,7 +114,7 @@ class VellumClient {
114
114
  headers: {
115
115
  X_API_KEY: await core.Supplier.get(this.options.apiKey),
116
116
  },
117
- body: await serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
117
+ body: await serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
118
118
  onData: _queue.wrap(async (data) => {
119
119
  const parsed = await serializers.GenerateStreamResponse.parse(data, {
120
120
  unrecognizedObjectKeys: "passthrough",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as Vellum from "..";
4
+ import * as Vellum from "../..";
5
5
  export interface GenerateBodyRequest {
6
6
  /** The ID of the deployment. Must provide either this or deployment_name. */
7
7
  deploymentId?: string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../..";
5
+ export interface GenerateStreamBodyRequest {
6
+ /** The ID of the deployment. Must provide either this or deployment_name. */
7
+ deploymentId?: string;
8
+ /** The name of the deployment. Must provide either this or deployment_id. */
9
+ deploymentName?: string;
10
+ /** The generation requests to make. Supplying multiple will perform a bulk request to the LLM provided when possible. */
11
+ requests: Vellum.GenerateRequest[];
12
+ /** Additional configuration that can be used to control what's included in the response. */
13
+ options?: Vellum.GenerateOptionsRequest;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,4 @@
1
+ export { GenerateBodyRequest } from "./GenerateBodyRequest";
2
+ export { GenerateStreamBodyRequest } from "./GenerateStreamBodyRequest";
1
3
  export { SearchRequestBodyRequest } from "./SearchRequestBodyRequest";
2
4
  export { SubmitCompletionActualsRequest } from "./SubmitCompletionActualsRequest";
@@ -5,7 +5,7 @@ export interface ModelVersionSandboxSnapshot {
5
5
  /** The ID of the sandbox snapshot. */
6
6
  id: string;
7
7
  /** The index of the prompt in the sandbox snapshot. */
8
- promptIndex: number;
8
+ promptIndex?: number;
9
9
  /** The id of the prompt in the sandbox snapshot. */
10
10
  promptId?: string;
11
11
  }
@@ -4,6 +4,7 @@
4
4
  import * as Vellum from "..";
5
5
  export interface PromptTemplateBlockProperties {
6
6
  chatRole?: Vellum.ChatMessageRole;
7
+ chatMessageUnterminated?: boolean;
7
8
  template?: string;
8
9
  blocks?: Record<string, unknown>[];
9
10
  }
@@ -1,4 +1,3 @@
1
- export * from "./GenerateBodyRequest";
2
1
  export * from "./BlockTypeEnum";
3
2
  export * from "./ChatMessage";
4
3
  export * from "./ChatMessageRequest";
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./GenerateBodyRequest"), exports);
18
17
  __exportStar(require("./BlockTypeEnum"), exports);
19
18
  __exportStar(require("./ChatMessage"), exports);
20
19
  __exportStar(require("./ChatMessageRequest"), exports);
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as serializers from "..";
5
- import * as Vellum from "../../api";
6
- import * as core from "../../core";
7
- export declare const GenerateBodyRequest: core.serialization.ObjectSchema<serializers.GenerateBodyRequest.Raw, Vellum.GenerateBodyRequest>;
4
+ import * as serializers from "../..";
5
+ import * as Vellum from "../../../api";
6
+ import * as core from "../../../core";
7
+ export declare const GenerateBodyRequest: core.serialization.Schema<serializers.GenerateBodyRequest.Raw, Vellum.GenerateBodyRequest>;
8
8
  export declare namespace GenerateBodyRequest {
9
9
  interface Raw {
10
10
  deployment_id?: string | null;
@@ -27,10 +27,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.GenerateBodyRequest = void 0;
30
- const core = __importStar(require("../../core"));
30
+ const core = __importStar(require("../../../core"));
31
31
  exports.GenerateBodyRequest = core.serialization.object({
32
32
  deploymentId: core.serialization.property("deployment_id", core.serialization.string().optional()),
33
33
  deploymentName: core.serialization.property("deployment_name", core.serialization.string().optional()),
34
- requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).GenerateRequest)),
35
- options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).GenerateOptionsRequest).optional(),
34
+ requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateRequest)),
35
+ options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateOptionsRequest).optional(),
36
36
  });
@@ -0,0 +1,15 @@
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 GenerateStreamBodyRequest: core.serialization.Schema<serializers.GenerateStreamBodyRequest.Raw, Vellum.GenerateStreamBodyRequest>;
8
+ export declare namespace GenerateStreamBodyRequest {
9
+ interface Raw {
10
+ deployment_id?: string | null;
11
+ deployment_name?: string | null;
12
+ requests: serializers.GenerateRequest.Raw[];
13
+ options?: serializers.GenerateOptionsRequest.Raw | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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.GenerateStreamBodyRequest = void 0;
30
+ const core = __importStar(require("../../../core"));
31
+ exports.GenerateStreamBodyRequest = core.serialization.object({
32
+ deploymentId: core.serialization.property("deployment_id", core.serialization.string().optional()),
33
+ deploymentName: core.serialization.property("deployment_name", core.serialization.string().optional()),
34
+ requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateRequest)),
35
+ options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateOptionsRequest).optional(),
36
+ });
@@ -1,2 +1,4 @@
1
+ export { GenerateBodyRequest } from "./GenerateBodyRequest";
2
+ export { GenerateStreamBodyRequest } from "./GenerateStreamBodyRequest";
1
3
  export { SearchRequestBodyRequest } from "./SearchRequestBodyRequest";
2
4
  export { SubmitCompletionActualsRequest } from "./SubmitCompletionActualsRequest";
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = void 0;
3
+ exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = void 0;
4
+ var GenerateBodyRequest_1 = require("./GenerateBodyRequest");
5
+ Object.defineProperty(exports, "GenerateBodyRequest", { enumerable: true, get: function () { return GenerateBodyRequest_1.GenerateBodyRequest; } });
6
+ var GenerateStreamBodyRequest_1 = require("./GenerateStreamBodyRequest");
7
+ Object.defineProperty(exports, "GenerateStreamBodyRequest", { enumerable: true, get: function () { return GenerateStreamBodyRequest_1.GenerateStreamBodyRequest; } });
4
8
  var SearchRequestBodyRequest_1 = require("./SearchRequestBodyRequest");
5
9
  Object.defineProperty(exports, "SearchRequestBodyRequest", { enumerable: true, get: function () { return SearchRequestBodyRequest_1.SearchRequestBodyRequest; } });
6
10
  var SubmitCompletionActualsRequest_1 = require("./SubmitCompletionActualsRequest");
@@ -8,7 +8,7 @@ export declare const ModelVersionSandboxSnapshot: core.serialization.ObjectSchem
8
8
  export declare namespace ModelVersionSandboxSnapshot {
9
9
  interface Raw {
10
10
  id: string;
11
- prompt_index: number;
11
+ prompt_index?: number | null;
12
12
  prompt_id?: string | null;
13
13
  }
14
14
  }
@@ -30,6 +30,6 @@ exports.ModelVersionSandboxSnapshot = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.ModelVersionSandboxSnapshot = core.serialization.object({
32
32
  id: core.serialization.string(),
33
- promptIndex: core.serialization.property("prompt_index", core.serialization.number()),
33
+ promptIndex: core.serialization.property("prompt_index", core.serialization.number().optional()),
34
34
  promptId: core.serialization.property("prompt_id", core.serialization.string().optional()),
35
35
  });
@@ -8,6 +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
+ chat_message_unterminated?: boolean | null;
11
12
  template?: string | null;
12
13
  blocks?: Record<string, unknown>[] | null;
13
14
  }
@@ -30,6 +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
+ chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
33
34
  template: core.serialization.string().optional(),
34
35
  blocks: core.serialization
35
36
  .list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
@@ -1,4 +1,3 @@
1
- export * from "./GenerateBodyRequest";
2
1
  export * from "./BlockTypeEnum";
3
2
  export * from "./ChatMessage";
4
3
  export * from "./ChatMessageRequest";
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./GenerateBodyRequest"), exports);
18
17
  __exportStar(require("./BlockTypeEnum"), exports);
19
18
  __exportStar(require("./ChatMessage"), exports);
20
19
  __exportStar(require("./ChatMessageRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.0.11",
3
+ "version": "v0.0.12",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as serializers from "..";
5
- import * as Vellum from "../../api";
6
- import * as core from "../../core";
7
- export declare const GenerateBodyRequest: core.serialization.ObjectSchema<serializers.GenerateBodyRequest.Raw, Vellum.GenerateBodyRequest>;
4
+ import * as serializers from "../..";
5
+ import * as Vellum from "../../../api";
6
+ import * as core from "../../../core";
7
+ export declare const GenerateBodyRequest: core.serialization.Schema<serializers.GenerateBodyRequest.Raw, Vellum.GenerateBodyRequest>;
8
8
  export declare namespace GenerateBodyRequest {
9
9
  interface Raw {
10
10
  deployment_id?: string | null;
@@ -27,10 +27,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.GenerateBodyRequest = void 0;
30
- const core = __importStar(require("../../core"));
30
+ const core = __importStar(require("../../../core"));
31
31
  exports.GenerateBodyRequest = core.serialization.object({
32
32
  deploymentId: core.serialization.property("deployment_id", core.serialization.string().optional()),
33
33
  deploymentName: core.serialization.property("deployment_name", core.serialization.string().optional()),
34
- requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).GenerateRequest)),
35
- options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).GenerateOptionsRequest).optional(),
34
+ requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateRequest)),
35
+ options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateOptionsRequest).optional(),
36
36
  });
@@ -0,0 +1,15 @@
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 GenerateStreamBodyRequest: core.serialization.Schema<serializers.GenerateStreamBodyRequest.Raw, Vellum.GenerateStreamBodyRequest>;
8
+ export declare namespace GenerateStreamBodyRequest {
9
+ interface Raw {
10
+ deployment_id?: string | null;
11
+ deployment_name?: string | null;
12
+ requests: serializers.GenerateRequest.Raw[];
13
+ options?: serializers.GenerateOptionsRequest.Raw | null;
14
+ }
15
+ }
@@ -0,0 +1,36 @@
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.GenerateStreamBodyRequest = void 0;
30
+ const core = __importStar(require("../../../core"));
31
+ exports.GenerateStreamBodyRequest = core.serialization.object({
32
+ deploymentId: core.serialization.property("deployment_id", core.serialization.string().optional()),
33
+ deploymentName: core.serialization.property("deployment_name", core.serialization.string().optional()),
34
+ requests: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateRequest)),
35
+ options: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).GenerateOptionsRequest).optional(),
36
+ });
@@ -1,2 +1,4 @@
1
+ export { GenerateBodyRequest } from "./GenerateBodyRequest";
2
+ export { GenerateStreamBodyRequest } from "./GenerateStreamBodyRequest";
1
3
  export { SearchRequestBodyRequest } from "./SearchRequestBodyRequest";
2
4
  export { SubmitCompletionActualsRequest } from "./SubmitCompletionActualsRequest";
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = void 0;
3
+ exports.SubmitCompletionActualsRequest = exports.SearchRequestBodyRequest = exports.GenerateStreamBodyRequest = exports.GenerateBodyRequest = void 0;
4
+ var GenerateBodyRequest_1 = require("./GenerateBodyRequest");
5
+ Object.defineProperty(exports, "GenerateBodyRequest", { enumerable: true, get: function () { return GenerateBodyRequest_1.GenerateBodyRequest; } });
6
+ var GenerateStreamBodyRequest_1 = require("./GenerateStreamBodyRequest");
7
+ Object.defineProperty(exports, "GenerateStreamBodyRequest", { enumerable: true, get: function () { return GenerateStreamBodyRequest_1.GenerateStreamBodyRequest; } });
4
8
  var SearchRequestBodyRequest_1 = require("./SearchRequestBodyRequest");
5
9
  Object.defineProperty(exports, "SearchRequestBodyRequest", { enumerable: true, get: function () { return SearchRequestBodyRequest_1.SearchRequestBodyRequest; } });
6
10
  var SubmitCompletionActualsRequest_1 = require("./SubmitCompletionActualsRequest");
@@ -8,7 +8,7 @@ export declare const ModelVersionSandboxSnapshot: core.serialization.ObjectSchem
8
8
  export declare namespace ModelVersionSandboxSnapshot {
9
9
  interface Raw {
10
10
  id: string;
11
- prompt_index: number;
11
+ prompt_index?: number | null;
12
12
  prompt_id?: string | null;
13
13
  }
14
14
  }
@@ -30,6 +30,6 @@ exports.ModelVersionSandboxSnapshot = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.ModelVersionSandboxSnapshot = core.serialization.object({
32
32
  id: core.serialization.string(),
33
- promptIndex: core.serialization.property("prompt_index", core.serialization.number()),
33
+ promptIndex: core.serialization.property("prompt_index", core.serialization.number().optional()),
34
34
  promptId: core.serialization.property("prompt_id", core.serialization.string().optional()),
35
35
  });
@@ -8,6 +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
+ chat_message_unterminated?: boolean | null;
11
12
  template?: string | null;
12
13
  blocks?: Record<string, unknown>[] | null;
13
14
  }
@@ -30,6 +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
+ chatMessageUnterminated: core.serialization.property("chat_message_unterminated", core.serialization.boolean().optional()),
33
34
  template: core.serialization.string().optional(),
34
35
  blocks: core.serialization
35
36
  .list(core.serialization.record(core.serialization.string(), core.serialization.unknown()))
@@ -1,4 +1,3 @@
1
- export * from "./GenerateBodyRequest";
2
1
  export * from "./BlockTypeEnum";
3
2
  export * from "./ChatMessage";
4
3
  export * from "./ChatMessageRequest";
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./GenerateBodyRequest"), exports);
18
17
  __exportStar(require("./BlockTypeEnum"), exports);
19
18
  __exportStar(require("./ChatMessage"), exports);
20
19
  __exportStar(require("./ChatMessageRequest"), exports);