Метод removeDisabledFields

private static

Сигнатура метода

private static function removeDisabledFields(FillItemFieldsFromCallTranscriptionPayload $payload, int $entityTypeId): void

Возвращает: void

Описание

Drops the values of fields BitrixGPT is not allowed to fill. The answer of the model is parsed against the policy read at that same moment ({@see self::extractPayloadFromAIResult()}), so in the live flow nothing reaches here to be dropped; this is kept as the last check standing over the payload regardless of how it was built. It runs before conflicts are calculated, before anything is written and before the payload is stored back into the queue - the copy the confirmation UI and the feedback upload read. The value is not carried anywhere else: only the separate 'comment' result reaches Item::FIELD_NAME_COMMENTS.

Параметры

2
Имя Тип По умолчанию Флаги
$payload FillItemFieldsFromCallTranscriptionPayload —
—
$entityTypeId int —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/integration/ai/operation/fillitemfieldsfromcalltranscription.php
Расположение метода в файле
Строки 296–316

Исходный код

PHP