class

OpenAI::ThreadListResource

Inherits JSON::Serializable < Reference < Object

A paginated list of ChatKit threads.

Constructors

new(object : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, data : Array(ThreadResource) = [] of ThreadResource, first_id : ThreadListResourceFirstId = nil, last_id : ThreadListResourceLastId = 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(ThreadResource))

A list of items

Source
first_id
Source
first_id=(first_id : ThreadListResourceFirstId)
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 : ThreadListResourceLastId)
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