Skip to content

ToolNameMapping

Namespace: Vercel.AI.ProviderUtils

public sealed class ToolNameMapping

Maps client tool names to provider tool names. Maps to ToolNameMapping.

Inheritance: object

View source

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

View source

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

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product