AnthropicPreparedTools
Namespace: Vercel.AI.Anthropic
public sealed class AnthropicPreparedToolsTools and tool choice ready for a Messages request.
Inheritance: object
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”public IReadOnlyList<string> Betas { get; }Beta headers required by the tools.
Value: IReadOnlyList<string>
ToolChoice
Section titled “ToolChoice”public JsonObject? ToolChoice { get; }Anthropic tool_choice. Null when omitted.
Value: JsonObject
public JsonArray? Tools { get; }Anthropic tools array. Null when tools are omitted.
Value: JsonArray
Warnings
Section titled “Warnings”public IReadOnlyList<AnthropicWarning> Warnings { get; }Warnings from unsupported tools or strict mode.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product