重构skill检索
This commit is contained in:
parent
345ba6e020
commit
30e7e07a85
@ -98,7 +98,7 @@ export default router.post(
|
|||||||
const novelData = (await u.db("o_novel").whereIn("chapterIndex", [1]).select("*")) as NovelChapter[];
|
const novelData = (await u.db("o_novel").whereIn("chapterIndex", [1]).select("*")) as NovelChapter[];
|
||||||
const novelText = mergeNovelText(novelData);
|
const novelText = mergeNovelText(novelData);
|
||||||
|
|
||||||
const skill = await useSkill("universal-agent");
|
const skill = await useSkill("universal_agent.md");
|
||||||
|
|
||||||
const systemPrompt = `${skill.prompt}
|
const systemPrompt = `${skill.prompt}
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ export default router.post(
|
|||||||
);
|
);
|
||||||
|
|
||||||
async function getLines(prompt: string) {
|
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({
|
const resText = await u.Ai.Text("universalAgent").invoke({
|
||||||
system: skill.prompt,
|
system: skill.prompt,
|
||||||
|
|||||||
@ -29,7 +29,7 @@ class CleanNovel {
|
|||||||
const novel = allChapters[gi];
|
const novel = allChapters[gi];
|
||||||
let resData;
|
let resData;
|
||||||
try {
|
try {
|
||||||
const skill = await useSkill("universal-agent");
|
const skill = await useSkill("universal_agent.md");
|
||||||
|
|
||||||
resData = await intansce.invoke({
|
resData = await intansce.invoke({
|
||||||
system: skill.prompt,
|
system: skill.prompt,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user