Метод getUsesTools

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

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

Путь к исходному файлу строки 65–80
~/bitrix/modulesim/lib/V2/Integration/AiAssistant/ToolSets/ImToolSet.php

Исходный код

PHP
public

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

public function getUsesTools(): UsesToolsDto

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

Описание

Always returns the full tool list: the result is materialized into the 24h DefinitionRegistry cache (ToolManager::callTool() resolves tool classes from that cached map), so a conditional list would desync the live listing from the cached call map when a gating option is flipped. Visibility and execution are gated per tool by BaseImTool::canList()/canRun() instead. After a deployment that changes this composition, an already warmed registry cache keeps serving the previous tool list until its TTL expires (up to 24h). This rollout delay is an accepted compromise: the cache and its key belong to the aiassistant module, and invalidating it on toolset composition changes is that module's responsibility (handoff passed).