feat(intents): update intent prompt

This commit is contained in:
ItzCrazyKns
2025-11-23 19:47:11 +05:30
parent 4e7143ce0c
commit 7c9258cfc9
6 changed files with 163 additions and 12 deletions

View File

@@ -18,10 +18,12 @@ class IntentRegistry {
}
static getDescriptions(config: { sources: SearchSources[] }): string {
const availableintnets = this.getAvailableIntents(config);
const availableintents = this.getAvailableIntents(config);
return availableintnets
.map((intent) => `${intent.name}: ${intent.description}`)
return availableintents
.map(
(intent) => `-------\n\n###${intent.name}: ${intent.description}\n\n`,
)
.join('\n\n');
}
}