ToolNameMapping
Namespace: Vercel.AI.ProviderUtils
public sealed class ToolNameMappingMaps client tool names to provider tool names. Maps to ToolNameMapping.
Inheritance: object
Methods
Section titled “Methods”ToCustomToolName(string)
Section titled “ToCustomToolName(string)”public string ToCustomToolName(string providerToolName)Maps a provider name to the client name, or returns the input when it is not mapped.
Parameters
| Name | Type | Description |
|---|---|---|
providerToolName |
string |
Returns: string
ToProviderToolName(string)
Section titled “ToProviderToolName(string)”public string ToProviderToolName(string customToolName)Maps a client name to the provider name, or returns the input when it is not mapped.
Parameters
| Name | Type | Description |
|---|---|---|
customToolName |
string |
Returns: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product