class

OpenAI::ResponseItemList

Inherits JSON::Serializable < Reference < Object

A list of Response items.

Constructors

new(object : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, data : Array(ItemResource) = [] of ItemResource, has_more : Bool = false, first_id : String = "", last_id : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data

A list of items used to generate this response.

Source
data=(data : Array(ItemResource))

A list of items used to generate this response.

Source
first_id

The ID of the first item in the list.

Source
first_id=(first_id : String)

The ID of the first item in the list.

Source
has_more

Whether there are more items available.

Source
has_more=(has_more : Bool)

Whether there are more items available.

Source
last_id

The ID of the last item in the list.

Source
last_id=(last_id : String)

The ID of the last item in the list.

Source
object

The type of object returned, must be list.

Source
object=(object : Hash(String, JSON::Any))

The type of object returned, must be list.

Source