class

OpenAI::ConversationResource

Inherits JSON::Serializable < Reference < Object

Constructors

new(id : String = "", object : ConversationResourceObject = ConversationResourceObject::Conversation, metadata : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, created_at : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created_at

The time at which the conversation was created, measured in seconds since the Unix epoch.

Source
created_at=(created_at : Int64)

The time at which the conversation was created, measured in seconds since the Unix epoch.

Source
id

The unique ID of the conversation.

Source
id=(id : String)

The unique ID of the conversation.

Source
metadata

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

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

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.

Source
object

The object type, which is always conversation.

Source
object=(object : ConversationResourceObject)

The object type, which is always conversation.

Source