AnthropicToolDefinition
Namespace: Vercel.AI.Anthropic
public sealed class AnthropicToolDefinitionA function or provider tool passed to AnthropicToolPreparer.
Inheritance: object
Properties
Section titled “Properties”public JsonElement? Args { get; set; }Provider tool arguments.
Value: JsonElement?
Description
Section titled “Description”public string? Description { get; set; }Function description.
Value: string
public string? Id { get; set; }Provider tool id, such as anthropic.web_search_20250305.
Value: string
InputExamples
Section titled “InputExamples”public JsonElement? InputExamples { get; set; }Example inputs. Each item is an object with an input property, or the input itself.
Value: JsonElement?
InputSchema
Section titled “InputSchema”public JsonElement? InputSchema { get; set; }JSON Schema for a function tool.
Value: JsonElement?
public string Name { get; set; }Tool name sent to the model for function tools.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; set; }Provider options, including Anthropic cache control and tool options.
Value: JsonElement?
Strict
Section titled “Strict”public bool? Strict { get; set; }Strict structured-output flag.
Value: bool?
public string Type { get; set; }function or provider.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product