Метод estimateTokens

protected

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

protected function estimateTokens(?int $durationSeconds): int

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

Описание

Token estimate of a not-yet-transcribed call for the budget projection. A known positive duration is converted with the configured tokens-per-second coefficient; an unknown duration is treated conservatively as a "large" call (the per-call token cap) so the projection is not understated.

Параметры

1
Имя Тип По умолчанию Флаги
$durationSeconds ?int —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/RepeatSale/Transcription/InScopeCallCollector.php
Расположение метода в файле
Строки 557–565

Исходный код

PHP