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 name of the tool.
The unique identifier of the client session.
The name of the agent to use or reference.
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.