All Bundles

Thread

Create threads that assistants can interact with

Derived from: EndPoint

Operations

Create

Creates a thread

function : Create(token:String) ~ API.OpenAI.Thread
Parameters
NameTypeDescription
tokenStringAPI token

Return
TypeDescription
Threadnewly created thread

Delete

Loads an existing thread

function : Delete(id:String, token:String) ~ Bool
Parameters
NameTypeDescription
idStringID of the model to use
tokenStringAPI token

Return
TypeDescription
Boolloaded thread

GetCreatedAt

Unix timestamp (in seconds) of when the object instance was created

method : public : GetCreatedAt() ~ Int
Return
TypeDescription
Inttime with the object instance was created

GetId

Get object instance API ID

method : public : GetId() ~ String
Return
TypeDescription
Stringinstance ID

GetObject

Get the object type

method : public : GetObject() ~ String
Return
TypeDescription
Stringobject type

Load

Loads an existing thread

function : Load(id:String, token:String) ~ API.OpenAI.Thread
Parameters
NameTypeDescription
idStringID of the model to use
tokenStringAPI token

Return
TypeDescription
Threadloaded thread

ToString

String representation of the object

method : public : ToString() ~ String
Return
TypeDescription
Stringstring representation