Refine interaction memory into a social profile

This commit is contained in:
Meta Vens 2026-04-25 07:56:00 +01:00
commit bfe5ba3cd4
7 changed files with 585 additions and 41 deletions

View file

@ -583,17 +583,19 @@ interface PromptHandlerOptions {
}
async function handlePrompt(options: PromptHandlerOptions): Promise<void> {
const interactionMemory = await options.interactionMemory.recordInteraction({
actorId: options.actor.id,
actorName: options.actor.displayName,
sourceKind: "direct_prompt",
guildId: options.guildContext.guildId,
channelId: options.guildContext.channelId,
channelName: options.guildContext.channelName,
command: options.command,
const rememberedInteraction = await options.interactionMemory.recordInteraction({
actorId: options.actor.id,
actorName: options.actor.displayName,
sourceKind: "direct_prompt",
guildId: options.guildContext.guildId,
channelId: options.guildContext.channelId,
channelName: options.guildContext.channelName,
command: options.command,
prompt: options.prompt,
eventId: options.requestMessageId,
});
const interactionMemory =
rememberedInteraction.totalInteractions > 0 ? rememberedInteraction : undefined;
const providerName =
options.forceProvider ?? pickProvider(options.actor, options.guildContext, options.providerRegistry);