Spaces:
Configuration error
Configuration error
File size: 549 Bytes
6ce9b06 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ```typescript
import { plugins } from "../plugins/index.js";
export async function runTools(input: { projectId: string; userText: string }) {
const t = input.userText.toLowerCase();
if (t.includes("crée un projet") || t.includes("creer un projet")) {
return plugins.projectCreate.run({ projectId: input.projectId, text: input.userText });
}
if (t.includes("résume le fichier") || t.includes("resume le fichier")) {
return plugins.fileSummarize.run({ projectId: input.projectId, text: input.userText });
}
return null;
}
``` |