Метод onBeforeAiHistoryAdd
Сигнатура метода
public static function onBeforeAiHistoryAdd(Event $event): EventResult
Возвращает:
EventResult
Описание
TEMPORARY HACK: in the generate_call_criteria, dialog_quality_scorer and script_description_generator scenarios the rendered prompt (call transcription + criteria) does not fit into b_ai_history.REQUEST_TEXT (MySQL TEXT, hard 65 535 byte limit). Widening the column is not allowed for now, so we trim REQUEST_TEXT here - this is an OnBeforeAdd on the history table, the actual prompt sent to the AI engine is not affected.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$event
|
Event
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/integration/ai/eventhandler.php
Расположение метода в файле
Строки
388–426