AIManager
FinalYes
Table of Contents
Constants
- AI_LICENCE_FEATURE_NAME = 'ai_available_by_version'
- AI_LIMIT_BAAS = 'BAAS'
- AI_LIMIT_CODE_DAILY = 'Daily'
- AI_LIMIT_CODE_MONTHLY = 'Monthly'
- AI_PACKAGES_EMPTY_SLIDER_CODE = 'limit_boost_crm_automation'
- SUPPORTED_ENTITY_TYPE_IDS = \Bitrix\Crm\Integration\AI\Operation\FillItemFieldsFromCallTranscription::SUPPORTED_TARGET_ENTITY_TYPE_IDS
Methods
- fetchLimitError() : Error|null
- getAiAppCollectionMarketLink() : string
- getAllOperationTypes() : array<string|int, mixed>
- getAvailableLanguageList() : array<string|int, mixed>
- isAiCallAutomaticProcessingAllowed() : bool
- isAiCallProcessingEnabled() : bool
- isAILicenceAccepted() : bool
- isAvailable() : bool
- isBaasServiceAvailable() : bool
- isBaasServiceHasPackage() : bool
- isBaasServiceIgnored() : bool
- isEnabledInGlobalSettings() : bool
- isEngineAvailable() : bool
- isStubMode() : bool
- launchCallRecordingTranscription() : Result
- launchExtractScoringCriteria() : Result
- logger() : LoggerInterface
- registerStubJob() : string
- setAiCallAutomaticProcessingAllowed() : void
- setBaasServiceIgnored() : void
Constants
AI_LICENCE_FEATURE_NAME
public
mixed
AI_LICENCE_FEATURE_NAME
= 'ai_available_by_version'
AI_LIMIT_BAAS
public
mixed
AI_LIMIT_BAAS
= 'BAAS'
AI_LIMIT_CODE_DAILY
public
mixed
AI_LIMIT_CODE_DAILY
= 'Daily'
AI_LIMIT_CODE_MONTHLY
public
mixed
AI_LIMIT_CODE_MONTHLY
= 'Monthly'
AI_PACKAGES_EMPTY_SLIDER_CODE
public
mixed
AI_PACKAGES_EMPTY_SLIDER_CODE
= 'limit_boost_crm_automation'
SUPPORTED_ENTITY_TYPE_IDS
public
mixed
SUPPORTED_ENTITY_TYPE_IDS
= \Bitrix\Crm\Integration\AI\Operation\FillItemFieldsFromCallTranscription::SUPPORTED_TARGET_ENTITY_TYPE_IDS
Methods
fetchLimitError()
public
static fetchLimitError(Error $error) : Error|null
Parameters
- $error : Error
Return values
Error|nullgetAiAppCollectionMarketLink()
public
static getAiAppCollectionMarketLink() : string
Return values
stringgetAllOperationTypes()
public
static getAllOperationTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>getAvailableLanguageList()
public
static getAvailableLanguageList() : array<string|int, mixed>
Return values
array<string|int, mixed>isAiCallAutomaticProcessingAllowed()
public
static isAiCallAutomaticProcessingAllowed() : bool
Return values
boolisAiCallProcessingEnabled()
public
static isAiCallProcessingEnabled() : bool
Return values
boolisAILicenceAccepted()
public
static isAILicenceAccepted([int $userId = null ]) : bool
Parameters
- $userId : int = null
Return values
boolisAvailable()
public
static isAvailable() : bool
Return values
boolisBaasServiceAvailable()
public
static isBaasServiceAvailable() : bool
Return values
boolisBaasServiceHasPackage()
public
static isBaasServiceHasPackage() : bool
Return values
boolisBaasServiceIgnored()
public
static isBaasServiceIgnored() : bool
Return values
boolisEnabledInGlobalSettings()
public
static isEnabledInGlobalSettings([string|GlobalSetting $code = GlobalSetting::FillItemFromCall ]) : bool
Parameters
- $code : string|GlobalSetting = GlobalSetting::FillItemFromCall
Return values
boolisEngineAvailable()
public
static isEngineAvailable(string $type) : bool
Parameters
- $type : string
Return values
boolisStubMode()
public
static isStubMode() : bool
Return values
boollaunchCallRecordingTranscription()
public
static launchCallRecordingTranscription(int $activityId, string $scenario[, int|null $userId = null ][, int|null $storageTypeId = null ][, int|null $storageElementId = null ][, bool $isManualLaunch = true ]) : Result
Parameters
- $activityId : int
- $scenario : string
- $userId : int|null = null
- $storageTypeId : int|null = null
- $storageElementId : int|null = null
- $isManualLaunch : bool = true
Return values
ResultlaunchExtractScoringCriteria()
public
static launchExtractScoringCriteria(int $entityId, string $prompt[, int|null $userId = null ][, bool $isManualLaunch = true ]) : Result
Parameters
- $entityId : int
- $prompt : string
- $userId : int|null = null
- $isManualLaunch : bool = true
Return values
Resultlogger()
public
static logger() : LoggerInterface
Return values
LoggerInterfaceregisterStubJob()
public
static registerStubJob(Engine $engine, mixed $payload) : string
Parameters
- $engine : Engine
- $payload : mixed
Return values
stringsetAiCallAutomaticProcessingAllowed()
public
static setAiCallAutomaticProcessingAllowed(bool|null $isAllowed) : void
Parameters
- $isAllowed : bool|null
setBaasServiceIgnored()
public
static setBaasServiceIgnored(bool $isAllowed) : void
Parameters
- $isAllowed : bool