diff --git a/examples/memory/memory_example.ts b/examples/memory/memory_example.ts index b80b6f3..578114b 100644 --- a/examples/memory/memory_example.ts +++ b/examples/memory/memory_example.ts @@ -40,7 +40,7 @@ async function main() { await client.memory.addSession({ sessionId: sessionID, metadata: { foo: "bar" }, - userId: user.userId, + userId: user.userId!, }); console.debug("Adding new session ", sessionID); } catch (error) { @@ -89,7 +89,7 @@ async function main() { classes, persist: true, }); - console.debug(`${classification.class} Classification Result: ${classification.name}`); + console.debug(`${classification.class} Classification Result: ${classification.label}`); } catch (error) { console.debug("Got error:", error); } @@ -108,6 +108,10 @@ async function main() { console.debug(JSON.stringify(message)); }); } + + if (memory.context) { + console.debug("Memory Context: ", memory.context); + } } catch (error) { if (error instanceof NotFoundError) { console.error("Session not found:", error.message); diff --git a/package.json b/package.json index 69918c0..52f183e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getzep/zep-cloud", - "version": "2.0.1", + "version": "2.1.0", "private": false, "repository": "https://github.com/getzep/zep-js", "description": "Zep: Fast, scalable building blocks for production LLM apps", diff --git a/src/api/resources/document/client/Client.ts b/src/api/resources/document/client/Client.ts index d9948c1..badec1f 100644 --- a/src/api/resources/document/client/Client.ts +++ b/src/api/resources/document/client/Client.ts @@ -47,7 +47,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -139,7 +139,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -253,7 +253,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -368,7 +368,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -482,7 +482,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -600,7 +600,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -706,7 +706,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -812,7 +812,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -918,7 +918,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1024,7 +1024,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1128,7 +1128,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1244,7 +1244,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1364,7 +1364,7 @@ export class Document { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/client/Client.ts b/src/api/resources/graph/client/Client.ts index 1f524ec..841d18f 100644 --- a/src/api/resources/graph/client/Client.ts +++ b/src/api/resources/graph/client/Client.ts @@ -54,7 +54,7 @@ export class Graph { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -147,7 +147,7 @@ export class Graph { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/edge/client/Client.ts b/src/api/resources/graph/resources/edge/client/Client.ts index a236249..8b71713 100644 --- a/src/api/resources/graph/resources/edge/client/Client.ts +++ b/src/api/resources/graph/resources/edge/client/Client.ts @@ -48,7 +48,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -223,7 +223,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -320,7 +320,7 @@ export class Edge { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/episode/client/Client.ts b/src/api/resources/graph/resources/episode/client/Client.ts index e5c2274..3b0f030 100644 --- a/src/api/resources/graph/resources/episode/client/Client.ts +++ b/src/api/resources/graph/resources/episode/client/Client.ts @@ -59,7 +59,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -158,7 +158,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -246,7 +246,7 @@ export class Episode { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/graph/resources/node/client/Client.ts b/src/api/resources/graph/resources/node/client/Client.ts index 4e4310d..92c42e1 100644 --- a/src/api/resources/graph/resources/node/client/Client.ts +++ b/src/api/resources/graph/resources/node/client/Client.ts @@ -48,7 +48,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -223,7 +223,7 @@ export class Node { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/group/client/Client.ts b/src/api/resources/group/client/Client.ts index 55be453..1281dc6 100644 --- a/src/api/resources/group/client/Client.ts +++ b/src/api/resources/group/client/Client.ts @@ -48,7 +48,7 @@ export class Group { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -137,7 +137,7 @@ export class Group { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/memory/client/Client.ts b/src/api/resources/memory/client/Client.ts index 7510c2b..9933204 100644 --- a/src/api/resources/memory/client/Client.ts +++ b/src/api/resources/memory/client/Client.ts @@ -48,7 +48,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -135,7 +135,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -228,7 +228,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -337,7 +337,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -431,7 +431,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -539,7 +539,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -618,7 +618,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -716,7 +716,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -832,7 +832,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -926,7 +926,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1033,7 +1033,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1142,7 +1142,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1235,7 +1235,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1338,7 +1338,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1435,7 +1435,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1513,7 +1513,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1615,7 +1615,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1708,7 +1708,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1806,7 +1806,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1907,7 +1907,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -1999,7 +1999,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -2097,7 +2097,7 @@ export class Memory { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/resources/user/client/Client.ts b/src/api/resources/user/client/Client.ts index df9bf5b..f3047e3 100644 --- a/src/api/resources/user/client/Client.ts +++ b/src/api/resources/user/client/Client.ts @@ -48,7 +48,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -149,7 +149,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -237,7 +237,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -324,7 +324,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -417,7 +417,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -515,7 +515,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), @@ -601,7 +601,7 @@ export class User { headers: { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "zep-cloud", - "X-Fern-SDK-Version": "2.0.1", + "X-Fern-SDK-Version": "2.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, ...(await this._getCustomAuthorizationHeaders()), diff --git a/src/api/types/Memory.ts b/src/api/types/Memory.ts index 91fc05e..22f969c 100644 --- a/src/api/types/Memory.ts +++ b/src/api/types/Memory.ts @@ -5,6 +5,8 @@ import * as Zep from "../index"; export interface Memory { + /** Memory context containing relevant facts and entities for the session. Can be put into the prompt directly. */ + context?: string; /** * Most recent list of facts derived from the session. (cloud only) * Deprecated: Facts will be deprecated in future releases and relevant_facts should be used instead. diff --git a/src/serialization/types/Memory.ts b/src/serialization/types/Memory.ts index 707a700..988fee5 100644 --- a/src/serialization/types/Memory.ts +++ b/src/serialization/types/Memory.ts @@ -10,6 +10,7 @@ import { Fact } from "./Fact"; import { Summary } from "./Summary"; export const Memory: core.serialization.ObjectSchema = core.serialization.object({ + context: core.serialization.string().optional(), facts: core.serialization.list(core.serialization.string()).optional(), messages: core.serialization.list(Message).optional(), metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), @@ -19,6 +20,7 @@ export const Memory: core.serialization.ObjectSchema | null;