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 +1 -0
- package/Client.js +2 -1
- package/api/types/TerminalNodeChatHistoryResult.d.ts +1 -1
- package/api/types/TerminalNodeJsonResult.d.ts +1 -1
- package/api/types/TerminalNodeStringResult.d.ts +1 -1
- package/dist/Client.d.ts +1 -0
- package/dist/Client.js +2 -1
- package/dist/api/types/TerminalNodeChatHistoryResult.d.ts +1 -1
- package/dist/api/types/TerminalNodeJsonResult.d.ts +1 -1
- package/dist/api/types/TerminalNodeStringResult.d.ts +1 -1
- package/dist/serialization/types/TerminalNodeChatHistoryResult.d.ts +1 -1
- package/dist/serialization/types/TerminalNodeChatHistoryResult.js +3 -1
- package/dist/serialization/types/TerminalNodeJsonResult.d.ts +1 -1
- package/dist/serialization/types/TerminalNodeJsonResult.js +1 -1
- package/dist/serialization/types/TerminalNodeStringResult.d.ts +1 -1
- package/dist/serialization/types/TerminalNodeStringResult.js +1 -1
- package/package.json +1 -1
- package/serialization/types/TerminalNodeChatHistoryResult.d.ts +1 -1
- package/serialization/types/TerminalNodeChatHistoryResult.js +3 -1
- package/serialization/types/TerminalNodeJsonResult.d.ts +1 -1
- package/serialization/types/TerminalNodeJsonResult.js +1 -1
- package/serialization/types/TerminalNodeStringResult.d.ts +1 -1
- package/serialization/types/TerminalNodeStringResult.js +1 -1
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).
|
|
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),
|
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).
|
|
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),
|
|
@@ -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
|
|
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
|
|
33
|
+
value: core.serialization
|
|
34
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessage))
|
|
35
|
+
.optional(),
|
|
34
36
|
});
|
|
@@ -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
|
});
|
|
@@ -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
|
@@ -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
|
|
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
|
|
33
|
+
value: core.serialization
|
|
34
|
+
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ChatMessage))
|
|
35
|
+
.optional(),
|
|
34
36
|
});
|
|
@@ -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
|
});
|
|
@@ -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
|
});
|