class

OpenAI::ThreadResource

Inherits JSON::Serializable < Reference < Object

Represents a ChatKit thread and its current status.

Constructors

new(id : String = "", object : ThreadResourceObject = ThreadResourceObject::ChatkitThread, created_at : Int64 = 0, title : ThreadResourceTitle = nil, status : ThreadResourceStatus = ActiveStatus.new, user : String = "")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created_at

Unix timestamp (in seconds) for when the thread was created.

Source
created_at=(created_at : Int64)

Unix timestamp (in seconds) for when the thread was created.

Source
id

Identifier of the thread.

Source
id=(id : String)

Identifier of the thread.

Source
object

Type discriminator that is always chatkit.thread.

Source
object=(object : ThreadResourceObject)

Type discriminator that is always chatkit.thread.

Source
status

Current status for the thread. Defaults to active for newly created threads.

Source
status=(status : ThreadResourceStatus)

Current status for the thread. Defaults to active for newly created threads.

Source
title
Source
title=(title : ThreadResourceTitle)
Source
user

Free-form string that identifies your end user who owns the thread.

Source
user=(user : String)

Free-form string that identifies your end user who owns the thread.

Source