struct

AI::Provider::Shared::Warning

Inherits JSON::Serializable < Struct < Value < Object

Warning from the model.

Warnings indicate that certain features are unsupported, compatibility functionality is used, or other issues occurred.

Constructors

new(type : WarningType, feature : String | Nil = nil, details : String | Nil = nil, message : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new_compatibility(*, feature : String, details : String | Nil = nil) : Warning

Creates a compatibility warning.

Source
new_other(*, message : String) : Warning

Creates an other warning.

Source
new_unsupported(*, feature : String, details : String | Nil = nil) : Warning

Creates an unsupported feature warning.

Source

Instance methods

details

Additional details about the warning.

Source
feature

The feature that is affected (for unsupported/compatibility warnings).

Source
message

The message of the warning (for other warnings).

Source
type

The type of warning.

Source