Метод findCopyableAiAgentTemplate

public

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

public function findCopyableAiAgentTemplate(int $templateId): ?array

Возвращает: ?array

Описание

AI-agent template that may be used as a copyAndStart source: a Nodes template from the AI_AGENT section that is not a launched copy (ACTIVATED_AT IS NULL). Covers both a system AI-agent template (SYSTEM_CODE set) and a user-created one (SYSTEM_CODE IS NULL) added via the designer, and rejects launched copies, so the settings of an agent already activated by another user cannot be cloned by id.

Параметры

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

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

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

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/Repository/WorkflowTemplate/AiAgentRepository.php
Расположение метода в файле
Строки 134–157

Исходный код

PHP