更新 NPC 相关逻辑,重构命令行工具,添加新的 CLI 入口,升级依赖版本

This commit is contained in:
xiongxiao
2026-03-16 21:45:37 +08:00
committed by cnb
parent fe89bdee5b
commit ae5565cda7
7 changed files with 48 additions and 15 deletions

View File

@@ -30,9 +30,17 @@ app.route({
role: 'user',
content: ctx.args.question
}]
const routes = app.routes.filter(route => {
const tags = route.metadata?.tags || [];
if (tags.includes('notInNpcAgent')) {
return false;
}
return true
});
const result = await runAgent({
app,
messages: messages,
routes,
languageModel: cnbAi(model),
token: '',
// token: ctx.query.token as string,