ToolNames
Namespace: Vercel.AI.ProviderUtils
public static class ToolNamesBuilds tool name maps. Maps to createToolNameMapping.
Inheritance: object
Methods
Section titled “Methods”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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product