feat: add baseSystemPrompt fixed

This commit is contained in:
2026-06-07 14:18:27 +09:00
parent d78edd5595
commit 9d5832dc9d
5 changed files with 60 additions and 4 deletions

View File

@@ -290,10 +290,18 @@ export class Brain {
const personaSystemInstruction = await loadPrompt(
"PERSONA_BASE_SYSTEM_PROMPT",
);
const baseSystemPrompt = await llm.call<string>(llm.models.identity, {
const generatedBaseSystemPrompt = await llm.call<string>(
llm.models.identity,
{
instruction: personaSystemInstruction,
message: description,
});
},
);
const personaSystemFixed = await loadPrompt(
"PERSONA_BASE_SYSTEM_PROMPT_FIXED",
);
const baseSystemPrompt = `${generatedBaseSystemPrompt}\n\n${personaSystemFixed}`;
const db = await IdentityDB.connect({
client: "sqlite",

View File

@@ -4,6 +4,7 @@ import path from "path";
const prompts = [
"PERSONA_INIT",
"PERSONA_BASE_SYSTEM_PROMPT",
"PERSONA_BASE_SYSTEM_PROMPT_FIXED",
"DAILY_SCHEDULE",
"MONTHLY_SCHEDULE",
"SCHEDULE_AVAILABILITY",