OperationWarning
Namespace: Vercel.AI.Operations
public sealed class OperationWarningA warning returned by a model call.
Inheritance: object
Constructors
Section titled “Constructors”OperationWarning(string, string?, string?, string?, string?)
Section titled “OperationWarning(string, string?, string?, string?, string?)”public OperationWarning(string type, string? message = null, string? feature = null, string? details = null, string? setting = null)Creates a warning.
Parameters
| Name | Type | Description |
|---|---|---|
type |
string | |
message |
string | |
feature |
string | |
details |
string | |
setting |
string |
Properties
Section titled “Properties”Details
Section titled “Details”public string? Details { get; }Extra detail for unsupported or compatibility warnings.
Value: string
Feature
Section titled “Feature”public string? Feature { get; }Feature name for unsupported or compatibility warnings.
Value: string
Message
Section titled “Message”public string? Message { get; }Human-readable message for other warnings.
Value: string
Setting
Section titled “Setting”public string? Setting { get; }Setting name for deprecated warnings.
Value: string
public string Type { get; }Warning type: unsupported, compatibility, deprecated, or other.
Value: string
Methods
Section titled “Methods”Other(string)
Section titled “Other(string)”public static OperationWarning Other(string message)Creates an other warning.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string |
Returns: OperationWarning
Unsupported(string, string?)
Section titled “Unsupported(string, string?)”public static OperationWarning Unsupported(string feature, string? details = null)Creates an unsupported warning.
Parameters
| Name | Type | Description |
|---|---|---|
feature |
string | |
details |
string |
Returns: OperationWarning
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product