@ai-sdk/anthropic: `toolset_name` is dropped for tools named like Object.prototype members (`constructor`, `toString`)#25360
Description
@ai-sdk/anthropic drops toolset_name on tool_result blocks when the tool is named like an Object.prototype member such as constructor or toString.
getAnthropicToolsetName (packages/anthropic/src/convert-to-anthropic-prompt.ts) resolves the toolset with toolsetNames[toolName], where toolsetNames is a plain {} built in getAnthropicToolsetNames (anthropic-language-model.ts). For constructor / toString the lookup returns the inherited function, which is != null, so it is returned instead of falling through to the providerOptions.anthropic.toolsetName metadata fallback. The function is then dropped by JSON.stringify, so the request has no toolset_name at all.
This is the same pattern as #25354 / #25355 (plain-object tool-name maps resolving inherited members). That PR scopes its fix to createToolNameMapping, so this site is not covered by it. Expected: an unmapped name falls through to the metadata fallback, as it does for lookup.
Impact is narrow (a tool result for a tool with such a name, in a history that relies on the toolsetName metadata). I did not test an explicit alias to in .