Метод enable
Сигнатура метода
public function enable(string $systemCode, SystemAiAgentContext $context, int $userId, SystemAiAgentActivationParameters $activation): SystemAiAgentLifecycleResult
Возвращает:
SystemAiAgentLifecycleResult
Описание
Enables the system agent for the external context, or confirms that the very same configuration is already enabled. An expected rejection is a value of the result and never an exception, so a malformed pair of a system code and a context comes back with a stable code instead of leaving the module.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$systemCode
|
string
|
—
|
—
|
$context
|
SystemAiAgentContext
|
—
|
—
|
$userId
|
int
|
—
|
—
|
$activation
|
SystemAiAgentActivationParameters
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Internal/AiAgent/Lifecycle/Service/SystemAiAgentLifecycleService.php
Расположение метода в файле
Строки
273–305