Skip to content

AnthropicPreparedTools

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicPreparedTools

Tools and tool choice ready for a Messages request.

Inheritance: object

View source

AnthropicPreparedTools(JsonArray?, JsonObject?, IReadOnlyList<AnthropicWarning>, IReadOnlyList<string>)

Section titled “AnthropicPreparedTools(JsonArray?, JsonObject?, IReadOnlyList<AnthropicWarning>, IReadOnlyList<string>)”
public AnthropicPreparedTools(JsonArray? tools, JsonObject? toolChoice, IReadOnlyList<AnthropicWarning> warnings, IReadOnlyList<string> betas)

Creates a prepared tool set.

Parameters

Name Type Description
tools JsonArray
toolChoice JsonObject
warnings IReadOnlyList<AnthropicWarning>
betas IReadOnlyList<string>

View source

public IReadOnlyList<string> Betas { get; }

Beta headers required by the tools.

Value: IReadOnlyList<string>

View source

public JsonObject? ToolChoice { get; }

Anthropic tool_choice. Null when omitted.

Value: JsonObject

View source

public JsonArray? Tools { get; }

Anthropic tools array. Null when tools are omitted.

Value: JsonArray

View source

public IReadOnlyList<AnthropicWarning> Warnings { get; }

Warnings from unsupported tools or strict mode.

Value: IReadOnlyList<AnthropicWarning>

View source

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