Skip to content

AnthropicWarning

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicWarning

A warning produced while preparing an Anthropic request.

Inheritance: object

View source

AnthropicWarning(string, string?, string?, string?)

Section titled “AnthropicWarning(string, string?, string?, string?)”
public AnthropicWarning(string type, string? feature = null, string? details = null, string? message = null)

Creates a warning.

Parameters

Name Type Description
type string
feature string
details string
message string

View source

public string? Details { get; }

Extra detail.

Value: string

View source

public string? Feature { get; }

Feature the warning refers to.

Value: string

View source

public string? Message { get; }

Free-form message used by other warnings.

Value: string

View source

public string Type { get; }

Warning category, such as unsupported or compatibility.

Value: string

View source

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