allocateToolNames
function allocateToolNames(providers): AllocatedTools;Defined in: core/src/provider/provider.names.ts:46
Assign every provider action and entity operation a safe camelCase
functionName — {providerId}_{actionId} and
{providerId}_{entityId}_{search|get} — suffixing _2, _3, … to dedupe
collisions.
The single place this naming is decided. toActions, toTools, and the client
manifest all read it, so a client addresses a tool by exactly the name the
server registered it under — and the server-side and client-side tool builders
cannot drift apart.
Every action is allocated before any entity tool, across all providers. That ordering is load-bearing: dedupe suffixes depend on what was claimed first, so appending entities to the end is what keeps existing action names byte-identical to what they were before entity tools existed.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
providers |
ProviderInstance[] |