Метод canList

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

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

Путь к исходному файлу строки 21–24
~/bitrix/modulesim/lib/V2/Integration/AiAssistant/Tools/BaseImTool.php

Исходный код

PHP
public

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

public function canList(int $userId): bool

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

Описание

Tool-level gate. ToolManager::callTool() and Mcp::indexAction() (module aiassistant) resolve tools from the cached DefinitionDto::tools map and consult tool-level canList()/canRun(), so a tool coming from a stale 24h registry cache must still be gated by the same option as its scope in ImToolSet::getUsesTools().

Параметры

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