agentToolsEnabled property

bool Function()? agentToolsEnabled
final

The agent-tools switch, read live — null for a build that has no such setting, which is the switch on.

Off, this provider reports no tool use and refuses a request that carries a binding, so neither transport is ever handed a tool declaration: the switch is held here, below the shell, rather than by every affordance remembering to check it. A callback for the reason selector is not a settings store: the setting lives with the shell, which this package may not name.

Implementation

final bool Function()? agentToolsEnabled;