OpenAI::ThreadObject
Inherits JSON::Serializable < Reference < Object
Represents a thread that contains messages.
Constructors
new(pull : JSON::PullParser)
Sourcenew(id : String = "", object : ThreadObjectObject = ThreadObjectObject::Thread, created_at : Int64 = 0, tool_resources : ThreadObjectToolResources = nil, metadata : Metadata = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
created_at=(created_at : Int64)
The Unix timestamp (in seconds) for when the thread was created.
metadata
Sourcemetadata=(metadata : Metadata)
Sourcetool_resources
Sourcetool_resources=(tool_resources : ThreadObjectToolResources)
Source