@getzep/zep-cloud 1.0.6 → 1.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.
- package/api/resources/document/client/Client.js +13 -13
- package/api/resources/memory/client/Client.d.ts +40 -0
- package/api/resources/memory/client/Client.js +249 -20
- package/api/resources/memory/client/requests/CreateSessionRequest.d.ts +3 -0
- package/api/resources/memory/client/requests/MemoryGetRequest.d.ts +4 -0
- package/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +13 -0
- package/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.js +5 -0
- package/api/resources/memory/client/requests/MemorySearchPayload.d.ts +1 -0
- package/api/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -0
- package/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +6 -0
- package/api/resources/memory/client/requests/index.d.ts +1 -0
- package/api/resources/user/client/Client.js +6 -6
- package/api/types/Fact.d.ts +1 -0
- package/api/types/FactRatingExamples.d.ts +8 -0
- package/api/types/FactRatingExamples.js +5 -0
- package/api/types/FactRatingInstruction.d.ts +21 -0
- package/api/types/FactRatingInstruction.js +5 -0
- package/api/types/FactResponse.d.ts +7 -0
- package/api/types/FactResponse.js +5 -0
- package/api/types/FactsResponse.d.ts +7 -0
- package/api/types/FactsResponse.js +5 -0
- package/api/types/Memory.d.ts +5 -1
- package/api/types/Session.d.ts +2 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/api/resources/document/client/Client.js +13 -13
- package/dist/api/resources/memory/client/Client.d.ts +40 -0
- package/dist/api/resources/memory/client/Client.js +249 -20
- package/dist/api/resources/memory/client/requests/CreateSessionRequest.d.ts +3 -0
- package/dist/api/resources/memory/client/requests/MemoryGetRequest.d.ts +4 -0
- package/dist/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.d.ts +13 -0
- package/dist/api/resources/memory/client/requests/MemoryGetSessionFactsRequest.js +5 -0
- package/dist/api/resources/memory/client/requests/MemorySearchPayload.d.ts +1 -0
- package/dist/api/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -0
- package/dist/api/resources/memory/client/requests/UpdateSessionRequest.d.ts +6 -0
- package/dist/api/resources/memory/client/requests/index.d.ts +1 -0
- package/dist/api/resources/user/client/Client.js +6 -6
- package/dist/api/types/Fact.d.ts +1 -0
- package/dist/api/types/FactRatingExamples.d.ts +8 -0
- package/dist/api/types/FactRatingExamples.js +5 -0
- package/dist/api/types/FactRatingInstruction.d.ts +21 -0
- package/dist/api/types/FactRatingInstruction.js +5 -0
- package/dist/api/types/FactResponse.d.ts +7 -0
- package/dist/api/types/FactResponse.js +5 -0
- package/dist/api/types/FactsResponse.d.ts +7 -0
- package/dist/api/types/FactsResponse.js +5 -0
- package/dist/api/types/Memory.d.ts +5 -1
- package/dist/api/types/Session.d.ts +2 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/memory/client/deleteFact.d.ts +9 -0
- package/dist/serialization/resources/memory/client/deleteFact.js +31 -0
- package/dist/serialization/resources/memory/client/index.d.ts +1 -0
- package/dist/serialization/resources/memory/client/index.js +2 -1
- package/dist/serialization/resources/memory/client/requests/CreateSessionRequest.d.ts +2 -0
- package/dist/serialization/resources/memory/client/requests/CreateSessionRequest.js +2 -0
- package/dist/serialization/resources/memory/client/requests/MemorySearchPayload.d.ts +1 -0
- package/dist/serialization/resources/memory/client/requests/MemorySearchPayload.js +1 -0
- package/dist/serialization/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -0
- package/dist/serialization/resources/memory/client/requests/SessionSearchQuery.js +1 -0
- package/dist/serialization/resources/memory/client/requests/UpdateSessionRequest.d.ts +2 -0
- package/dist/serialization/resources/memory/client/requests/UpdateSessionRequest.js +2 -0
- package/dist/serialization/types/Fact.d.ts +1 -0
- package/dist/serialization/types/Fact.js +1 -0
- package/dist/serialization/types/FactRatingExamples.d.ts +14 -0
- package/dist/serialization/types/FactRatingExamples.js +35 -0
- package/dist/serialization/types/FactRatingInstruction.d.ts +14 -0
- package/dist/serialization/types/FactRatingInstruction.js +35 -0
- package/dist/serialization/types/FactResponse.d.ts +13 -0
- package/dist/serialization/types/FactResponse.js +34 -0
- package/dist/serialization/types/FactsResponse.d.ts +13 -0
- package/dist/serialization/types/FactsResponse.js +34 -0
- package/dist/serialization/types/Memory.d.ts +2 -0
- package/dist/serialization/types/Memory.js +2 -0
- package/dist/serialization/types/Session.d.ts +2 -0
- package/dist/serialization/types/Session.js +2 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/examples/memory/memory_example.ts +0 -1
- package/package.json +1 -1
- package/serialization/resources/memory/client/deleteFact.d.ts +9 -0
- package/serialization/resources/memory/client/deleteFact.js +31 -0
- package/serialization/resources/memory/client/index.d.ts +1 -0
- package/serialization/resources/memory/client/index.js +2 -1
- package/serialization/resources/memory/client/requests/CreateSessionRequest.d.ts +2 -0
- package/serialization/resources/memory/client/requests/CreateSessionRequest.js +2 -0
- package/serialization/resources/memory/client/requests/MemorySearchPayload.d.ts +1 -0
- package/serialization/resources/memory/client/requests/MemorySearchPayload.js +1 -0
- package/serialization/resources/memory/client/requests/SessionSearchQuery.d.ts +1 -0
- package/serialization/resources/memory/client/requests/SessionSearchQuery.js +1 -0
- package/serialization/resources/memory/client/requests/UpdateSessionRequest.d.ts +2 -0
- package/serialization/resources/memory/client/requests/UpdateSessionRequest.js +2 -0
- package/serialization/types/Fact.d.ts +1 -0
- package/serialization/types/Fact.js +1 -0
- package/serialization/types/FactRatingExamples.d.ts +14 -0
- package/serialization/types/FactRatingExamples.js +35 -0
- package/serialization/types/FactRatingInstruction.d.ts +14 -0
- package/serialization/types/FactRatingInstruction.js +35 -0
- package/serialization/types/FactResponse.d.ts +13 -0
- package/serialization/types/FactResponse.js +34 -0
- package/serialization/types/FactsResponse.d.ts +13 -0
- package/serialization/types/FactsResponse.js +34 -0
- package/serialization/types/Memory.d.ts +2 -0
- package/serialization/types/Memory.js +2 -0
- package/serialization/types/Session.d.ts +2 -0
- package/serialization/types/Session.js +2 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
|
@@ -26,7 +26,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.search = exports.extractData = void 0;
|
|
29
|
+
exports.search = exports.extractData = exports.deleteFact = void 0;
|
|
30
|
+
exports.deleteFact = __importStar(require("./deleteFact"));
|
|
30
31
|
exports.extractData = __importStar(require("./extractData"));
|
|
31
32
|
exports.search = __importStar(require("./search"));
|
|
32
33
|
__exportStar(require("./requests"), exports);
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Zep from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { FactRatingInstruction } from "../../../../types/FactRatingInstruction";
|
|
7
8
|
export declare const CreateSessionRequest: core.serialization.Schema<serializers.CreateSessionRequest.Raw, Zep.CreateSessionRequest>;
|
|
8
9
|
export declare namespace CreateSessionRequest {
|
|
9
10
|
interface Raw {
|
|
11
|
+
fact_rating_instruction?: FactRatingInstruction.Raw | null;
|
|
10
12
|
metadata?: Record<string, unknown> | null;
|
|
11
13
|
session_id: string;
|
|
12
14
|
user_id?: string | null;
|
|
@@ -28,7 +28,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CreateSessionRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const FactRatingInstruction_1 = require("../../../../types/FactRatingInstruction");
|
|
31
32
|
exports.CreateSessionRequest = core.serialization.object({
|
|
33
|
+
factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
|
|
32
34
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
33
35
|
sessionId: core.serialization.property("session_id", core.serialization.string()),
|
|
34
36
|
userId: core.serialization.property("user_id", core.serialization.string().optional()),
|
|
@@ -10,6 +10,7 @@ export declare const MemorySearchPayload: core.serialization.Schema<serializers.
|
|
|
10
10
|
export declare namespace MemorySearchPayload {
|
|
11
11
|
interface Raw {
|
|
12
12
|
metadata?: Record<string, unknown> | null;
|
|
13
|
+
min_fact_rating?: number | null;
|
|
13
14
|
min_score?: number | null;
|
|
14
15
|
mmr_lambda?: number | null;
|
|
15
16
|
search_scope?: SearchScope.Raw | null;
|
|
@@ -32,6 +32,7 @@ const SearchScope_1 = require("../../../../types/SearchScope");
|
|
|
32
32
|
const SearchType_1 = require("../../../../types/SearchType");
|
|
33
33
|
exports.MemorySearchPayload = core.serialization.object({
|
|
34
34
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
35
|
+
minFactRating: core.serialization.property("min_fact_rating", core.serialization.number().optional()),
|
|
35
36
|
minScore: core.serialization.property("min_score", core.serialization.number().optional()),
|
|
36
37
|
mmrLambda: core.serialization.property("mmr_lambda", core.serialization.number().optional()),
|
|
37
38
|
searchScope: core.serialization.property("search_scope", SearchScope_1.SearchScope.optional()),
|
|
@@ -9,6 +9,7 @@ import { SearchType } from "../../../../types/SearchType";
|
|
|
9
9
|
export declare const SessionSearchQuery: core.serialization.Schema<serializers.SessionSearchQuery.Raw, Omit<Zep.SessionSearchQuery, "limit">>;
|
|
10
10
|
export declare namespace SessionSearchQuery {
|
|
11
11
|
interface Raw {
|
|
12
|
+
min_fact_rating?: number | null;
|
|
12
13
|
min_score?: number | null;
|
|
13
14
|
mmr_lambda?: number | null;
|
|
14
15
|
record_filter?: Record<string, unknown> | null;
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../../../../core"));
|
|
|
31
31
|
const SearchScope_1 = require("../../../../types/SearchScope");
|
|
32
32
|
const SearchType_1 = require("../../../../types/SearchType");
|
|
33
33
|
exports.SessionSearchQuery = core.serialization.object({
|
|
34
|
+
minFactRating: core.serialization.property("min_fact_rating", core.serialization.number().optional()),
|
|
34
35
|
minScore: core.serialization.property("min_score", core.serialization.number().optional()),
|
|
35
36
|
mmrLambda: core.serialization.property("mmr_lambda", core.serialization.number().optional()),
|
|
36
37
|
recordFilter: core.serialization.property("record_filter", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Zep from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { FactRatingInstruction } from "../../../../types/FactRatingInstruction";
|
|
7
8
|
export declare const UpdateSessionRequest: core.serialization.Schema<serializers.UpdateSessionRequest.Raw, Zep.UpdateSessionRequest>;
|
|
8
9
|
export declare namespace UpdateSessionRequest {
|
|
9
10
|
interface Raw {
|
|
11
|
+
fact_rating_instruction?: FactRatingInstruction.Raw | null;
|
|
10
12
|
metadata: Record<string, unknown>;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -28,6 +28,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.UpdateSessionRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const FactRatingInstruction_1 = require("../../../../types/FactRatingInstruction");
|
|
31
32
|
exports.UpdateSessionRequest = core.serialization.object({
|
|
33
|
+
factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
|
|
32
34
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
33
35
|
});
|
|
@@ -31,5 +31,6 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.Fact = core.serialization.object({
|
|
32
32
|
createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
|
|
33
33
|
fact: core.serialization.string().optional(),
|
|
34
|
+
rating: core.serialization.number().optional(),
|
|
34
35
|
uuid: core.serialization.string().optional(),
|
|
35
36
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Zep from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const FactRatingExamples: core.serialization.ObjectSchema<serializers.FactRatingExamples.Raw, Zep.FactRatingExamples>;
|
|
8
|
+
export declare namespace FactRatingExamples {
|
|
9
|
+
interface Raw {
|
|
10
|
+
high?: string | null;
|
|
11
|
+
low?: string | null;
|
|
12
|
+
medium?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.FactRatingExamples = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.FactRatingExamples = core.serialization.object({
|
|
32
|
+
high: core.serialization.string().optional(),
|
|
33
|
+
low: core.serialization.string().optional(),
|
|
34
|
+
medium: core.serialization.string().optional(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Zep from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { FactRatingExamples } from "./FactRatingExamples";
|
|
8
|
+
export declare const FactRatingInstruction: core.serialization.ObjectSchema<serializers.FactRatingInstruction.Raw, Zep.FactRatingInstruction>;
|
|
9
|
+
export declare namespace FactRatingInstruction {
|
|
10
|
+
interface Raw {
|
|
11
|
+
examples?: FactRatingExamples.Raw | null;
|
|
12
|
+
instruction?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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.FactRatingInstruction = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const FactRatingExamples_1 = require("./FactRatingExamples");
|
|
32
|
+
exports.FactRatingInstruction = core.serialization.object({
|
|
33
|
+
examples: FactRatingExamples_1.FactRatingExamples.optional(),
|
|
34
|
+
instruction: core.serialization.string().optional(),
|
|
35
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Zep from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { Fact } from "./Fact";
|
|
8
|
+
export declare const FactResponse: core.serialization.ObjectSchema<serializers.FactResponse.Raw, Zep.FactResponse>;
|
|
9
|
+
export declare namespace FactResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
fact?: Fact.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.FactResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const Fact_1 = require("./Fact");
|
|
32
|
+
exports.FactResponse = core.serialization.object({
|
|
33
|
+
fact: Fact_1.Fact.optional(),
|
|
34
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Zep from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { Fact } from "./Fact";
|
|
8
|
+
export declare const FactsResponse: core.serialization.ObjectSchema<serializers.FactsResponse.Raw, Zep.FactsResponse>;
|
|
9
|
+
export declare namespace FactsResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
facts?: Fact.Raw[] | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.FactsResponse = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const Fact_1 = require("./Fact");
|
|
32
|
+
exports.FactsResponse = core.serialization.object({
|
|
33
|
+
facts: core.serialization.list(Fact_1.Fact).optional(),
|
|
34
|
+
});
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Zep from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { Message } from "./Message";
|
|
8
|
+
import { Fact } from "./Fact";
|
|
8
9
|
import { Summary } from "./Summary";
|
|
9
10
|
export declare const Memory: core.serialization.ObjectSchema<serializers.Memory.Raw, Zep.Memory>;
|
|
10
11
|
export declare namespace Memory {
|
|
@@ -12,6 +13,7 @@ export declare namespace Memory {
|
|
|
12
13
|
facts?: string[] | null;
|
|
13
14
|
messages?: Message.Raw[] | null;
|
|
14
15
|
metadata?: Record<string, unknown> | null;
|
|
16
|
+
relevant_facts?: Fact.Raw[] | null;
|
|
15
17
|
relevant_summaries?: Summary.Raw[] | null;
|
|
16
18
|
summary?: Summary.Raw | null;
|
|
17
19
|
}
|
|
@@ -29,11 +29,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Memory = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
const Message_1 = require("./Message");
|
|
32
|
+
const Fact_1 = require("./Fact");
|
|
32
33
|
const Summary_1 = require("./Summary");
|
|
33
34
|
exports.Memory = core.serialization.object({
|
|
34
35
|
facts: core.serialization.list(core.serialization.string()).optional(),
|
|
35
36
|
messages: core.serialization.list(Message_1.Message).optional(),
|
|
36
37
|
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
38
|
+
relevantFacts: core.serialization.property("relevant_facts", core.serialization.list(Fact_1.Fact).optional()),
|
|
37
39
|
relevantSummaries: core.serialization.property("relevant_summaries", core.serialization.list(Summary_1.Summary).optional()),
|
|
38
40
|
summary: Summary_1.Summary.optional(),
|
|
39
41
|
});
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Zep from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { FactRatingInstruction } from "./FactRatingInstruction";
|
|
7
8
|
export declare const Session: core.serialization.ObjectSchema<serializers.Session.Raw, Zep.Session>;
|
|
8
9
|
export declare namespace Session {
|
|
9
10
|
interface Raw {
|
|
@@ -11,6 +12,7 @@ export declare namespace Session {
|
|
|
11
12
|
created_at?: string | null;
|
|
12
13
|
deleted_at?: string | null;
|
|
13
14
|
ended_at?: string | null;
|
|
15
|
+
fact_rating_instruction?: FactRatingInstruction.Raw | null;
|
|
14
16
|
fact_version_uuid?: string | null;
|
|
15
17
|
facts?: string[] | null;
|
|
16
18
|
id?: number | null;
|
|
@@ -28,11 +28,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.Session = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const FactRatingInstruction_1 = require("./FactRatingInstruction");
|
|
31
32
|
exports.Session = core.serialization.object({
|
|
32
33
|
classifications: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
33
34
|
createdAt: core.serialization.property("created_at", core.serialization.string().optional()),
|
|
34
35
|
deletedAt: core.serialization.property("deleted_at", core.serialization.string().optional()),
|
|
35
36
|
endedAt: core.serialization.property("ended_at", core.serialization.string().optional()),
|
|
37
|
+
factRatingInstruction: core.serialization.property("fact_rating_instruction", FactRatingInstruction_1.FactRatingInstruction.optional()),
|
|
36
38
|
factVersionUuid: core.serialization.property("fact_version_uuid", core.serialization.string().optional()),
|
|
37
39
|
facts: core.serialization.list(core.serialization.string()).optional(),
|
|
38
40
|
id: core.serialization.number().optional(),
|
|
@@ -9,6 +9,10 @@ export * from "./DocumentSearchResultPage";
|
|
|
9
9
|
export * from "./EndSessionResponse";
|
|
10
10
|
export * from "./EndSessionsResponse";
|
|
11
11
|
export * from "./Fact";
|
|
12
|
+
export * from "./FactRatingExamples";
|
|
13
|
+
export * from "./FactRatingInstruction";
|
|
14
|
+
export * from "./FactResponse";
|
|
15
|
+
export * from "./FactsResponse";
|
|
12
16
|
export * from "./Memory";
|
|
13
17
|
export * from "./MemorySearchResult";
|
|
14
18
|
export * from "./Message";
|
|
@@ -25,6 +25,10 @@ __exportStar(require("./DocumentSearchResultPage"), exports);
|
|
|
25
25
|
__exportStar(require("./EndSessionResponse"), exports);
|
|
26
26
|
__exportStar(require("./EndSessionsResponse"), exports);
|
|
27
27
|
__exportStar(require("./Fact"), exports);
|
|
28
|
+
__exportStar(require("./FactRatingExamples"), exports);
|
|
29
|
+
__exportStar(require("./FactRatingInstruction"), exports);
|
|
30
|
+
__exportStar(require("./FactResponse"), exports);
|
|
31
|
+
__exportStar(require("./FactsResponse"), exports);
|
|
28
32
|
__exportStar(require("./Memory"), exports);
|
|
29
33
|
__exportStar(require("./MemorySearchResult"), exports);
|
|
30
34
|
__exportStar(require("./Message"), exports);
|