class

OpenAI::ConversationItemList

Inherits JSON::Serializable < Reference < Object

A list of Conversation items.

Constructors

new(object : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, data : Array(ConversationItem) = [] of ConversationItem, 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 conversation items.

Source
data=(data : Array(ConversationItem))

A list of conversation items.

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