struct AI::Provider::Shared::Warning

Overview

Warning from the model.

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

Included Modules

Defined in:

ai/provider/shared/shared.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(type : WarningType, feature : String | Nil = nil, details : String | Nil = nil, message : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]
def self.new_compatibility(*, feature : String, details : String | Nil = nil) : Warning #

Creates a compatibility warning.


[View source]
def self.new_other(*, message : String) : Warning #

Creates an other warning.


[View source]
def self.new_unsupported(*, feature : String, details : String | Nil = nil) : Warning #

Creates an unsupported feature warning.


[View source]

Instance Method Detail

def details : String | Nil #

Additional details about the warning.


[View source]
def feature : String | Nil #

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


[View source]
def message : String | Nil #

The message of the warning (for other warnings).


[View source]
def type : WarningType #

The type of warning.


[View source]