Thread
Create threads that assistants can interact with
Operations
Create
Creates a thread
function : Create(token:String) ~ API.OpenAI.ThreadParameters
| 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) ~ BoolParameters
| 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() ~ IntReturn
| Type | Description |
|---|---|
| Int | time with the object instance was created |
GetId
Get object instance API ID
method : public : GetId() ~ StringReturn
| Type | Description |
|---|---|
| String | instance ID |
GetObject
Get the object type
method : public : GetObject() ~ StringReturn
| Type | Description |
|---|---|
| String | object type |
Load
Loads an existing thread
function : Load(id:String, token:String) ~ API.OpenAI.ThreadParameters
| 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() ~ StringReturn
| Type | Description |
|---|---|
| String | string representation |