Skip to content

Commit

Permalink
Add inputKey and outputKey fields to BufferWindowMemory (langchain-ai…
Browse files Browse the repository at this point in the history
  • Loading branch information
nSimonFR authored Apr 28, 2023
1 parent 11397ab commit b027521
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions langchain/src/memory/buffer_window_memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export class BufferWindowMemory
super({
returnMessages: fields?.returnMessages ?? false,
chatHistory: fields?.chatHistory,
inputKey: fields?.inputKey,
outputKey: fields?.outputKey,
});
this.humanPrefix = fields?.humanPrefix ?? this.humanPrefix;
this.aiPrefix = fields?.aiPrefix ?? this.aiPrefix;
Expand Down

0 comments on commit b027521

Please sign in to comment.