Merge pull request #428 from Hexastack/feat/nlu-llm

Feat/nlu llm
This commit is contained in:
Med Marrouchi
2024-12-09 15:33:08 +01:00
committed by GitHub
21 changed files with 394 additions and 45 deletions

View File

@@ -13,7 +13,7 @@ import { AttachmentService } from '@/attachment/services/attachment.service';
import EventWrapper from '@/channel/lib/EventWrapper';
import { ContentService } from '@/cms/services/content.service';
import { CONSOLE_CHANNEL_NAME } from '@/extensions/channels/console/settings';
import { Nlp } from '@/helper/types';
import { NLU } from '@/helper/types';
import { I18nService } from '@/i18n/services/i18n.service';
import { LanguageService } from '@/i18n/services/language.service';
import { LoggerService } from '@/logger/logger.service';
@@ -254,7 +254,7 @@ export class BlockService extends BaseService<Block, BlockPopulate, BlockFull> {
* @returns The NLP patterns that matches
*/
matchNLP(
nlp: Nlp.ParseEntities,
nlp: NLU.ParseEntities,
block: Block | BlockFull,
): NlpPattern[] | undefined {
// No nlp entities to check against