class

OpenAI::ThreadObject

Inherits JSON::Serializable < Reference < Object

Represents a thread that contains messages.

Constructors

new(id : String = "", object : ThreadObjectObject = ThreadObjectObject::Thread, created_at : Int64 = 0, tool_resources : ThreadObjectToolResources = nil, metadata : Metadata = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created_at

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

Source
created_at=(created_at : Int64)

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

Source
id

The identifier, which can be referenced in API endpoints.

Source
id=(id : String)

The identifier, which can be referenced in API endpoints.

Source
metadata
Source
metadata=(metadata : Metadata)
Source
object

The object type, which is always thread.

Source
object=(object : ThreadObjectObject)

The object type, which is always thread.

Source
tool_resources
Source
tool_resources=(tool_resources : ThreadObjectToolResources)
Source