CallWarning
Namespace: Vercel.AI.Provider
public sealed class CallWarningA warning produced while calling a model.
Inheritance: object
Constructors
Section titled “Constructors”CallWarning(string, string)
Section titled “CallWarning(string, string)”public CallWarning(string type, string message)Creates a warning.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string | |
message |
string |
CallWarning(string, string, string?)
Section titled “CallWarning(string, string, string?)”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. |
Properties
Section titled “Properties”Feature
Section titled “Feature”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">null</a> when the provider did not set one.
Value: string
Message
Section titled “Message”public string Message { get; }Human-readable warning. For a feature warning, this is its details text.
Value: string
public string Type { get; }Warning category, such as unsupported.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product