Skip to content

MappedTool

Namespace: Vercel.AI.ProviderUtils

public sealed class MappedTool

A tool passed to a language model when building a name map.

Inheritance: object

View source

public MappedTool(string type, string name, string? id = null)

Creates a tool description.

Parameters

Name Type Description
type string
name string
id string

View source

public string? Id { get; }

Provider tool id, such as anthropic.computer-use.

Value: string

View source

public string Name { get; }

Client tool name.

Value: string

View source

public string Type { get; }

provider or function.

Value: string

View source

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