class

OpenAI::ThreadItemListResource

Inherits JSON::Serializable < Reference < Object

A paginated list of thread items rendered for the ChatKit API.

Constructors

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

Instance methods

data

A list of items

Source
data=(data : Array(ThreadItem))

A list of items

Source
first_id
Source
first_id=(first_id : ThreadItemListResourceFirstId)
Source
has_more

Whether there are more items available.

Source
has_more=(has_more : Bool)

Whether there are more items available.

Source
last_id
Source
last_id=(last_id : ThreadItemListResourceLastId)
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