struct AI::Provider::RerankingModel::ResultResponse

Overview

Response information for the reranking result.

Included Modules

Defined in:

ai/provider/reranking_model/reranking_model.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, headers : Shared::Headers | Nil = nil, body : JSON::Any | Nil = nil) #

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

[View source]

Instance Method Detail

def body : JSON::Any | Nil #

Response body.


[View source]
def headers : Shared::Headers | Nil #

Response headers.


[View source]
def id : String | Nil #

ID for the generated response, if the provider sends one.


[View source]
def model_id : String | Nil #

The ID of the response model that was used.


[View source]
def timestamp : Time | Nil #

Timestamp for the start of the generated response.


[View source]