struct
AI::Provider::LanguageModel::ResponseMetadata
- AI::Provider::LanguageModel::ResponseMetadata
- Struct
- Value
- Object
Overview
Response metadata from the provider.
Included Modules
- JSON::Serializable
Defined in:
ai/provider/language_model/types.crConstructors
- .new(pull : JSON::PullParser)
- .new(id : String | Nil = nil, timestamp : Time | Nil = nil, model_id : String | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#id : String | Nil
ID of the generated response.
-
#model_id : String | Nil
Model ID that generated the response.
-
#timestamp : Time | Nil
Timestamp of the response.
Constructor Detail
def self.new(id : String | Nil = nil, timestamp : Time | Nil = nil, model_id : String | Nil = nil)
#