重构skill检索

This commit is contained in:
ACT丶流星雨 2026-03-26 00:43:12 +08:00
parent 345ba6e020
commit 30e7e07a85
3 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ export default router.post(
const novelData = (await u.db("o_novel").whereIn("chapterIndex", [1]).select("*")) as NovelChapter[];
const novelText = mergeNovelText(novelData);
const skill = await useSkill("universal-agent");
const skill = await useSkill("universal_agent.md");
const systemPrompt = `${skill.prompt}

View File

@ -30,7 +30,7 @@ export default router.post(
);
async function getLines(prompt: string) {
const skill = await useSkill("eventExtract-agent");
const skill = await useSkill("universal_agent.md");
const resText = await u.Ai.Text("universalAgent").invoke({
system: skill.prompt,

View File

@ -29,7 +29,7 @@ class CleanNovel {
const novel = allChapters[gi];
let resData;
try {
const skill = await useSkill("universal-agent");
const skill = await useSkill("universal_agent.md");
resData = await intansce.invoke({
system: skill.prompt,