Grafito::AI::Response
Inherits JSON::Serializable < Struct < Value < Object
Normalized AI response from any provider. Contains the generated content plus metadata.
Constructors
new(content : String, model : String, provider : String, usage : Usage | Nil = nil, raw : String | Nil = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
Source