Метод resolve
Сигнатура метода
public function resolve(ManagedAgentIdentity $identity): Result
Возвращает:
Result
Описание
Resolves the source of the identity, or fails with {@see self::ERROR_AGENT_NOT_AVAILABLE} and a stable reason in the custom data of the error. No caller value is carried by a rejection. Successful data: <ul> <li> templateId: int, id of the installed system template <li> systemCode: string, exactly as stored <li> documentType: array{0: string, 1: string, 2: string}, complex document type of the source <li> installedRevision: string, revision of the source logic, which the copy stores as its installed one <li> sections: array<string, array{declarations: array, field: string, maxSerializedLength: int}> <li> producers: list<array{nodeType: string, resourceType: ManagedAgentResourceType, synchronous: bool, ownershipProof: string}> <li> nodeTypes: array<string, bool>, node type of the graph => whether it is a trigger </ul>
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$identity
|
ManagedAgentIdentity
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/AiAgent/Lifecycle/Service/SystemAiAgentResolver.php