Skip to content

ToolNames

Namespace: Vercel.AI.ProviderUtils

public static class ToolNames

Builds tool name maps. Maps to createToolNameMapping.

Inheritance: object

View source

CreateToolNameMapping(IReadOnlyList<MappedTool>?, IReadOnlyDictionary<string, string>)

Section titled “CreateToolNameMapping(IReadOnlyList<MappedTool>?, IReadOnlyDictionary<string, string>)”
public static ToolNameMapping CreateToolNameMapping(IReadOnlyList<MappedTool>? tools, IReadOnlyDictionary<string, string> providerToolNames)

Creates a mapping from provider-defined tools whose ids are listed in <code class=“paramref”>providerToolNames</code>.

Parameters

Name Type Description
tools IReadOnlyList<MappedTool>
providerToolNames IReadOnlyDictionary<string, string>

Returns: ToolNameMapping

View source

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