Метод onTranscriptionFinished

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

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

Путь к исходному файлу строки 145–222
~/bitrix/modulesim/lib/V2/Integration/AI/TaskCreation/MultipleMessagesCreator.php

Исходный код

PHP
public static

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

public static function onTranscriptionFinished(array $messageIds, int $fileId, int $userId, bool $failed = false): void

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

Описание

Reacts to one finished (successfully or not) batch transcription: removes the file from the pending set and, once the batch has no pending transcriptions left, fires the combined AI query for the whole selection (SC-002, AC-029). A failed transcription ($failed) means the content of that message is unavailable, so the whole batch is aborted instead of building a partial/minimal task (PRD ERR-013). Static on purpose: the partial-callback path only needs the message ids and the finished file id, so the whole MessageCollection is loaded only once the batch is actually drained.

Параметры

4
Имя Тип По умолчанию Флаги
$messageIds array -
-
$fileId int -
-
$userId int -
-
$failed bool false
-