struct AI::Provider::LanguageModel::ResponseMetadata

Overview

Response metadata from the provider.

Included Modules

Defined in:

ai/provider/language_model/types.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(id : String | Nil = nil, timestamp : Time | Nil = nil, model_id : String | Nil = nil) #

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

[View source]

Instance Method Detail

def id : String | Nil #

ID of the generated response.


[View source]
def model_id : String | Nil #

Model ID that generated the response.


[View source]
def timestamp : Time | Nil #

Timestamp of the response.


[View source]