Add persistent interaction memory for direct conversations
This commit is contained in:
parent
9964d509de
commit
03565a2aee
9 changed files with 558 additions and 2 deletions
|
|
@ -2,6 +2,7 @@ import {
|
|||
type Actor,
|
||||
type ContextBundle,
|
||||
type GuildContext,
|
||||
type InteractionMemoryProfile,
|
||||
type RetrievalResult,
|
||||
type SourceMessage,
|
||||
type StylePack,
|
||||
|
|
@ -13,6 +14,7 @@ export interface BuildContextInput {
|
|||
guildContext: GuildContext;
|
||||
recentMessages?: SourceMessage[];
|
||||
retrieval?: RetrievalResult[];
|
||||
interactionMemory?: InteractionMemoryProfile;
|
||||
stylePack?: StylePack;
|
||||
}
|
||||
|
||||
|
|
@ -24,9 +26,9 @@ export class ContextBuilder {
|
|||
guildContext: input.guildContext,
|
||||
recentMessages: input.recentMessages ?? [],
|
||||
retrieval: input.retrieval ?? [],
|
||||
interactionMemory: input.interactionMemory,
|
||||
stylePack: input.stylePack,
|
||||
createdAt: new Date().toISOString(),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue