Thread

data class Thread(val id: String, val createdAt: Int, val metadata: Map<String, String>)

Represents a thread object returned by the OpenAI API. Threads are objects that contain a list of messages that can interacted with by an Assistant.

Constructors

Link copied to clipboard
constructor(id: String, createdAt: Int, metadata: Map<String, String>)

Properties

Link copied to clipboard

The unix timestamp of when the thread was created

Link copied to clipboard
val id: String

The id of the thread

Link copied to clipboard

The metadata associated with the thread