GoogleWarning
Namespace: Vercel.AI.Google
public sealed class GoogleWarningA warning produced while preparing a Gemini request.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”Details
Section titled “Details”public string? Details { get; }Extra detail.
Value: string
Feature
Section titled “Feature”public string? Feature { get; }Unsupported feature name, when the warning is about one.
Value: string
Message
Section titled “Message”public string Message { get; }Human-readable warning.
Value: string
public string Type { get; }Warning category: unsupported, compatibility, or other.
Value: string
Methods
Section titled “Methods”Compatibility(string, string)
Section titled “Compatibility(string, string)”public static GoogleWarning Compatibility(string feature, string details)Compatibility mapping warning.
Parameters
| Name | Type | Description |
|---|---|---|
feature |
string | |
details |
string |
Returns: GoogleWarning
ToCallWarning()
Section titled “ToCallWarning()”public CallWarning ToCallWarning()Maps this warning onto the shared call-warning type.
Returns: CallWarning
Unsupported(string, string?)
Section titled “Unsupported(string, string?)”public static GoogleWarning Unsupported(string feature, string? details = null)Unsupported feature warning.
Parameters
| Name | Type | Description |
|---|---|---|
feature |
string | |
details |
string |
Returns: GoogleWarning
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product