Skip to content

AnthropicToolDefinition

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicToolDefinition

A function or provider tool passed to AnthropicToolPreparer.

Inheritance: object

View source

public JsonElement? Args { get; set; }

Provider tool arguments.

Value: JsonElement?

View source

public string? Description { get; set; }

Function description.

Value: string

View source

public string? Id { get; set; }

Provider tool id, such as anthropic.web_search_20250305.

Value: string

View source

public JsonElement? InputExamples { get; set; }

Example inputs. Each item is an object with an input property, or the input itself.

Value: JsonElement?

View source

public JsonElement? InputSchema { get; set; }

JSON Schema for a function tool.

Value: JsonElement?

View source

public string Name { get; set; }

Tool name sent to the model for function tools.

Value: string

View source

public JsonElement? ProviderOptions { get; set; }

Provider options, including Anthropic cache control and tool options.

Value: JsonElement?

View source

public bool? Strict { get; set; }

Strict structured-output flag.

Value: bool?

View source

public string Type { get; set; }

function or provider.

Value: string

View source

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