Skip to content

GoogleWarning

Namespace: Vercel.AI.Google

public sealed class GoogleWarning

A warning produced while preparing a Gemini request.

Inheritance: object

View source

GoogleWarning(string, string, string?, string?)

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

Creates a warning.

Parameters

Name Type Description
type string
message string
feature string
details string

View source

public string? Details { get; }

Extra detail.

Value: string

View source

public string? Feature { get; }

Unsupported feature name, when the warning is about one.

Value: string

View source

public string Message { get; }

Human-readable warning.

Value: string

View source

public string Type { get; }

Warning category: unsupported, compatibility, or other.

Value: string

View source

public static GoogleWarning Compatibility(string feature, string details)

Compatibility mapping warning.

Parameters

Name Type Description
feature string
details string

Returns: GoogleWarning

View source

public CallWarning ToCallWarning()

Maps this warning onto the shared call-warning type.

Returns: CallWarning

View source

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

Unsupported feature warning.

Parameters

Name Type Description
feature string
details string

Returns: GoogleWarning

View source

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