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
Name | Type | Description |
---|
token | String | API token |
Return
Type | Description |
---|
Thread | newly created thread |
Delete
Loads an existing thread
function : Delete(id:String, token:String) ~ Bool
Parameters
Name | Type | Description |
---|
id | String | ID of the model to use |
token | String | API token |
Return
Type | Description |
---|
Bool | loaded thread |
GetCreatedAt
Unix timestamp (in seconds) of when the object instance was created
method : public : GetCreatedAt() ~ Int
Return
Type | Description |
---|
Int | time with the object instance was created |
GetId
Get object instance API ID
method : public : GetId() ~ String
Return
Type | Description |
---|
String | instance ID |
GetObject
Get the object type
method : public : GetObject() ~ String
Return
Type | Description |
---|
String | object type |
Load
Loads an existing thread
function : Load(id:String, token:String) ~ API.OpenAI.Thread
Parameters
Name | Type | Description |
---|
id | String | ID of the model to use |
token | String | API token |
Return
Type | Description |
---|
Thread | loaded thread |
ToString
String representation of the object
method : public : ToString() ~ String
Return
Type | Description |
---|
String | string representation |