vellum-ai 0.0.30 → 0.0.32

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.d.ts CHANGED
@@ -24,6 +24,7 @@ export declare class VellumClient {
24
24
  * <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
25
25
  *
26
26
  * Executes a deployed Workflow and streams back its results.
27
+ * @throws {Vellum.BadRequestError}
27
28
  * @throws {Vellum.NotFoundError}
28
29
  * @throws {Vellum.InternalServerError}
29
30
  */
package/Client.js CHANGED
@@ -52,6 +52,7 @@ class VellumClient {
52
52
  * <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
53
53
  *
54
54
  * Executes a deployed Workflow and streams back its results.
55
+ * @throws {Vellum.BadRequestError}
55
56
  * @throws {Vellum.NotFoundError}
56
57
  * @throws {Vellum.InternalServerError}
57
58
  */
@@ -197,7 +198,7 @@ class VellumClient {
197
198
  */
198
199
  async search(request) {
199
200
  const _response = await core.fetcher({
200
- url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).documents, "v1/search"),
201
+ url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).predict, "v1/search"),
201
202
  method: "POST",
202
203
  headers: {
203
204
  X_API_KEY: await core.Supplier.get(this.options.apiKey),
@@ -5,5 +5,5 @@ import * as Vellum from "..";
5
5
  export interface TerminalNodeChatHistoryResult {
6
6
  /** The unique name given to the terminal node that produced this output. */
7
7
  name: string;
8
- value: Vellum.ChatMessage[];
8
+ value?: Vellum.ChatMessage[];
9
9
  }
@@ -4,5 +4,5 @@
4
4
  export interface TerminalNodeJsonResult {
5
5
  /** The unique name given to the terminal node that produced this output. */
6
6
  name: string;
7
- value: Record<string, unknown>;
7
+ value?: Record<string, unknown>;
8
8
  }
@@ -4,5 +4,5 @@
4
4
  export interface TerminalNodeStringResult {
5
5
  /** The unique name given to the terminal node that produced this output. */
6
6
  name: string;
7
- value: string;
7
+ value?: string;
8
8
  }
package/dist/Client.d.ts CHANGED
@@ -24,6 +24,7 @@ export declare class VellumClient {
24
24
  * <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
25
25
  *
26
26
  * Executes a deployed Workflow and streams back its results.
27
+ * @throws {Vellum.BadRequestError}
27
28
  * @throws {Vellum.NotFoundError}
28
29
  * @throws {Vellum.InternalServerError}
29
30
  */
package/dist/Client.js CHANGED
@@ -52,6 +52,7 @@ class VellumClient {
52
52
  * <strong style="background-color:#ffc107; color:white; padding:4px; border-radius:4px">Unstable</strong>
53
53
  *
54
54
  * Executes a deployed Workflow and streams back its results.
55
+ * @throws {Vellum.BadRequestError}
55
56
  * @throws {Vellum.NotFoundError}
56
57
  * @throws {Vellum.InternalServerError}
57
58
  */
@@ -197,7 +198,7 @@ class VellumClient {
197
198
  */
198
199
  async search(request) {
199
200
  const _response = await core.fetcher({
200
- url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).documents, "v1/search"),
201
+ url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).predict, "v1/search"),
201
202
  method: "POST",
202
203
  headers: {
203
204
  X_API_KEY: await core.Supplier.get(this.options.apiKey),
@@ -5,5 +5,5 @@ import * as Vellum from "..";
5
5
  export interface TerminalNodeChatHistoryResult {
6
6
  /** The unique name given to the terminal node that produced this output. */
7
7
  name: string;
8
- value: Vellum.ChatMessage[];
8
+ value?: Vellum.ChatMessage[];
9
9
  }
@@ -4,5 +4,5 @@
4
4
  export interface TerminalNodeJsonResult {
5
5
  /** The unique name given to the terminal node that produced this output. */
6
6
  name: string;
7
- value: Record<string, unknown>;
7
+ value?: Record<string, unknown>;
8
8
  }
@@ -4,5 +4,5 @@
4
4
  export interface TerminalNodeStringResult {
5
5
  /** The unique name given to the terminal node that produced this output. */
6
6
  name: string;
7
- value: string;
7
+ value?: string;
8
8
  }
@@ -8,6 +8,6 @@ export declare const TerminalNodeChatHistoryResult: core.serialization.ObjectSch
8
8
  export declare namespace TerminalNodeChatHistoryResult {
9
9
  interface Raw {
10
10
  name: string;
11
- value: serializers.ChatMessage.Raw[];
11
+ value?: serializers.ChatMessage.Raw[] | null;
12
12
  }
13
13
  }
@@ -30,5 +30,7 @@ exports.TerminalNodeChatHistoryResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.TerminalNodeChatHistoryResult = core.serialization.object({
32
32
  name: core.serialization.string(),
33
- value: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessage)),
33
+ value: core.serialization
34
+ .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessage))
35
+ .optional(),
34
36
  });
@@ -8,6 +8,6 @@ export declare const TerminalNodeJsonResult: core.serialization.ObjectSchema<ser
8
8
  export declare namespace TerminalNodeJsonResult {
9
9
  interface Raw {
10
10
  name: string;
11
- value: Record<string, unknown>;
11
+ value?: Record<string, unknown> | null;
12
12
  }
13
13
  }
@@ -30,5 +30,5 @@ exports.TerminalNodeJsonResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.TerminalNodeJsonResult = core.serialization.object({
32
32
  name: core.serialization.string(),
33
- value: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
33
+ value: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
34
34
  });
@@ -8,6 +8,6 @@ export declare const TerminalNodeStringResult: core.serialization.ObjectSchema<s
8
8
  export declare namespace TerminalNodeStringResult {
9
9
  interface Raw {
10
10
  name: string;
11
- value: string;
11
+ value?: string | null;
12
12
  }
13
13
  }
@@ -30,5 +30,5 @@ exports.TerminalNodeStringResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.TerminalNodeStringResult = core.serialization.object({
32
32
  name: core.serialization.string(),
33
- value: core.serialization.string(),
33
+ value: core.serialization.string().optional(),
34
34
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.0.30",
3
+ "version": "v0.0.32",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",
@@ -8,6 +8,6 @@ export declare const TerminalNodeChatHistoryResult: core.serialization.ObjectSch
8
8
  export declare namespace TerminalNodeChatHistoryResult {
9
9
  interface Raw {
10
10
  name: string;
11
- value: serializers.ChatMessage.Raw[];
11
+ value?: serializers.ChatMessage.Raw[] | null;
12
12
  }
13
13
  }
@@ -30,5 +30,7 @@ exports.TerminalNodeChatHistoryResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.TerminalNodeChatHistoryResult = core.serialization.object({
32
32
  name: core.serialization.string(),
33
- value: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessage)),
33
+ value: core.serialization
34
+ .list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessage))
35
+ .optional(),
34
36
  });
@@ -8,6 +8,6 @@ export declare const TerminalNodeJsonResult: core.serialization.ObjectSchema<ser
8
8
  export declare namespace TerminalNodeJsonResult {
9
9
  interface Raw {
10
10
  name: string;
11
- value: Record<string, unknown>;
11
+ value?: Record<string, unknown> | null;
12
12
  }
13
13
  }
@@ -30,5 +30,5 @@ exports.TerminalNodeJsonResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.TerminalNodeJsonResult = core.serialization.object({
32
32
  name: core.serialization.string(),
33
- value: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
33
+ value: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
34
34
  });
@@ -8,6 +8,6 @@ export declare const TerminalNodeStringResult: core.serialization.ObjectSchema<s
8
8
  export declare namespace TerminalNodeStringResult {
9
9
  interface Raw {
10
10
  name: string;
11
- value: string;
11
+ value?: string | null;
12
12
  }
13
13
  }
@@ -30,5 +30,5 @@ exports.TerminalNodeStringResult = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  exports.TerminalNodeStringResult = core.serialization.object({
32
32
  name: core.serialization.string(),
33
- value: core.serialization.string(),
33
+ value: core.serialization.string().optional(),
34
34
  });