From 1d75c898e176dac9599cc1a0068745342c6a71a3 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:30:18 +0000 Subject: [PATCH] SDK regeneration --- src/api/resources/memory/client/Client.ts | 2 +- .../memory/client/requests/MemoryGetRequest.ts | 4 +--- src/api/types/MemoryType.ts | 11 ----------- src/api/types/index.ts | 1 - src/serialization/types/MemoryType.ts | 14 -------------- src/serialization/types/index.ts | 1 - 6 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 src/api/types/MemoryType.ts delete mode 100644 src/serialization/types/MemoryType.ts diff --git a/src/api/resources/memory/client/Client.ts b/src/api/resources/memory/client/Client.ts index 86c19cd..09b55d1 100644 --- a/src/api/resources/memory/client/Client.ts +++ b/src/api/resources/memory/client/Client.ts @@ -716,7 +716,7 @@ export class Memory { const { lastn, minRating } = request; const _queryParams: Record = {}; if (lastn != null) { - _queryParams["lastn"] = lastn; + _queryParams["lastn"] = lastn.toString(); } if (minRating != null) { diff --git a/src/api/resources/memory/client/requests/MemoryGetRequest.ts b/src/api/resources/memory/client/requests/MemoryGetRequest.ts index 3d74ed6..6677bf5 100644 --- a/src/api/resources/memory/client/requests/MemoryGetRequest.ts +++ b/src/api/resources/memory/client/requests/MemoryGetRequest.ts @@ -2,8 +2,6 @@ * This file was auto-generated by Fern from our API Definition. */ -import * as Zep from "../../../../index"; - /** * @example * {} @@ -12,7 +10,7 @@ export interface MemoryGetRequest { /** * The number of most recent memory entries to retrieve. */ - lastn?: Zep.MemoryType; + lastn?: number; /** * The minimum rating by which to filter facts */ diff --git a/src/api/types/MemoryType.ts b/src/api/types/MemoryType.ts deleted file mode 100644 index 94a5859..0000000 --- a/src/api/types/MemoryType.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type MemoryType = "perpetual" | "summary_retriever" | "message_window"; - -export const MemoryType = { - Perpetual: "perpetual", - SummaryRetriever: "summary_retriever", - MessageWindow: "message_window", -} as const; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 9f475ad..0466635 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -19,4 +19,3 @@ export * from "./FactRatingExamples"; export * from "./FactRatingInstruction"; export * from "./SearchScope"; export * from "./SearchType"; -export * from "./MemoryType"; diff --git a/src/serialization/types/MemoryType.ts b/src/serialization/types/MemoryType.ts deleted file mode 100644 index bf2f58e..0000000 --- a/src/serialization/types/MemoryType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Zep from "../../api/index"; -import * as core from "../../core"; - -export const MemoryType: core.serialization.Schema = - core.serialization.enum_(["perpetual", "summary_retriever", "message_window"]); - -export declare namespace MemoryType { - type Raw = "perpetual" | "summary_retriever" | "message_window"; -} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 9f475ad..0466635 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -19,4 +19,3 @@ export * from "./FactRatingExamples"; export * from "./FactRatingInstruction"; export * from "./SearchScope"; export * from "./SearchType"; -export * from "./MemoryType";