Skip to content

CallWarning

Namespace: Vercel.AI.Provider

public sealed class CallWarning

A warning produced while calling a model.

Inheritance: object

View source

public CallWarning(string type, string message)

Creates a warning.

Parameters

Name Type Description
type string
message string

View source

public CallWarning(string type, string feature, string? details)

Creates an unsupported or compatibility warning about a feature.

Parameters

Name Type Description
type string Warning category, such as unsupported.
feature string The feature the warning is about.
details string Additional details. When omitted, Message is the feature name.

View source

public string? Feature { get; }

The feature that is unsupported or used in compatibility mode, or <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null"&gt;null&lt;/a> when the provider did not set one.

Value: string

View source

public string Message { get; }

Human-readable warning. For a feature warning, this is its details text.

Value: string

View source

public string Type { get; }

Warning category, such as unsupported.

Value: string

View source

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