struct
AI::Provider::Shared::Warning
- AI::Provider::Shared::Warning
- Struct
- Value
- Object
Overview
Warning from the model.
Warnings indicate that certain features are unsupported, compatibility functionality is used, or other issues occurred.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/shared/shared.crConstructors
- .new(pull : JSON::PullParser)
- .new(type : WarningType, feature : String | Nil = nil, details : String | Nil = nil, message : String | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
-
.new_compatibility(*, feature : String, details : String | Nil = nil) : Warning
Creates a compatibility warning.
-
.new_other(*, message : String) : Warning
Creates an other warning.
-
.new_unsupported(*, feature : String, details : String | Nil = nil) : Warning
Creates an unsupported feature warning.
Instance Method Summary
-
#details : String | Nil
Additional details about the warning.
-
#feature : String | Nil
The feature that is affected (for unsupported/compatibility warnings).
-
#message : String | Nil
The message of the warning (for other warnings).
-
#type : WarningType
The type of warning.
Constructor Detail
def self.new(type : WarningType, feature : String | Nil = nil, details : String | Nil = nil, message : String | Nil = nil)
#
Creates a compatibility warning.
Creates an unsupported feature warning.