Skip to content

OperationWarning

Namespace: Vercel.AI.Operations

public sealed class OperationWarning

A warning returned by a model call.

Inheritance: object

View source

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

View source

public string? Details { get; }

Extra detail for unsupported or compatibility warnings.

Value: string

View source

public string? Feature { get; }

Feature name for unsupported or compatibility warnings.

Value: string

View source

public string? Message { get; }

Human-readable message for other warnings.

Value: string

View source

public string? Setting { get; }

Setting name for deprecated warnings.

Value: string

View source

public string Type { get; }

Warning type: unsupported, compatibility, deprecated, or other.

Value: string

View source

public static OperationWarning Other(string message)

Creates an other warning.

Parameters

Name Type Description
message string

Returns: OperationWarning

View source

public static OperationWarning Unsupported(string feature, string? details = null)

Creates an unsupported warning.

Parameters

Name Type Description
feature string
details string

Returns: OperationWarning

View source

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