Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed May 2, 2024
1 parent c07d422 commit 83c2561
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
10 changes: 7 additions & 3 deletions src/api/resources/memory/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,14 +713,18 @@ export class Memory {
* @throws {@link Zep.InternalServerError}
*
* @example
* await zep.memory.add("sessionId")
* await zep.memory.add("sessionId", {
* messages: [{}]
* })
*
* @example
* await zep.memory.add("string")
* await zep.memory.add("string", {
* messages: [{}]
* })
*/
public async add(
sessionId: string,
request: Zep.AddMemoryRequest = {},
request: Zep.AddMemoryRequest,
requestOptions?: Memory.RequestOptions
): Promise<void> {
const _response = await (this._options.fetcher ?? core.fetcher)({
Expand Down
14 changes: 10 additions & 4 deletions src/api/resources/memory/client/requests/AddMemoryRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,21 @@ import * as Zep from "../../../..";

/**
* @example
* {}
* {
* messages: [{}]
* }
*
* @example
* {}
* {
* messages: [{}]
* }
*
* @example
* {}
* {
* messages: [{}]
* }
*/
export interface AddMemoryRequest {
messages?: Zep.Message[];
messages: Zep.Message[];
summaryInstruction?: string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import { Message } from "../../../../types/Message";

export const AddMemoryRequest: core.serialization.Schema<serializers.AddMemoryRequest.Raw, Zep.AddMemoryRequest> =
core.serialization.object({
messages: core.serialization.list(Message).optional(),
messages: core.serialization.list(Message),
summaryInstruction: core.serialization.property("summary_instruction", core.serialization.string().optional()),
});

export declare namespace AddMemoryRequest {
interface Raw {
messages?: Message.Raw[] | null;
messages: Message.Raw[];
summary_instruction?: string | null;
}
}

0 comments on commit 83c2561

Please sign in to comment.