A tool the model runs itself. It is switched on through request parameters
— Google Search, URL context, the grounding and retrieval tools — and never
executes here.
Such a tool has no function declaration, so BaseTool.processLlmRequest
returns before the line that registers it in llmRequest.toolsDict. That
left the model primed with a name the framework could not route: a model
that returns one as an explicit function call, rather than running it,
produced a call that failed to resolve even though the user had registered
the tool. Registering the name here keeps the call resolvable, and
runAsync answers it by telling the model the tool is not callable.
A tool whose applyBuiltInConfig returns without configuring anything —
every one of them does when the request carries no model — still claims its
name. That request never reaches a model, so no function call can come back
for it and the registration is inert.