Resolves the model-facing name for a tool, given its name, client, and agent context. This is the main exported function for external usage.
The registered tool identifier.
The client session identifier.
The agent identifier.
The name of the tool as presented to the model.
const modelToolName = await getToolNameForModel("search-tool", "client-123", "assistant-agent"); Copy
const modelToolName = await getToolNameForModel("search-tool", "client-123", "assistant-agent");
Resolves the model-facing name for a tool, given its name, client, and agent context. This is the main exported function for external usage.