Represents an execution run on a thread
Derived from: EndPoint
OperationsCreate a run
function : Create(assistant:API.OpenAI.Assistant, thread:API.OpenAI.Thread, token:String) ~ API.OpenAI.Run
Name | Type | Description |
---|---|---|
assistant | Assistant | the assistant to use to execute this run |
thread | Thread | thread to run |
token | String | API token |
Type | Description |
---|---|
Run | newly created Run |
Unix timestamp (in seconds) of when the object instance was created
method : public : GetCreatedAt() ~ Int
Type | Description |
---|---|
Int | time with the object instance was created |
Get function callback information
method : public : GetFunctionCall() ~ Collection.Tuple.Triplet<String,String,String>
Type | Description |
---|---|
Triplet<String,String,String> | pair function name and calling parameters in JSON format |
Get object instance API ID
method : public : GetId() ~ String
Type | Description |
---|---|
String | instance ID |
Get the object type
method : public : GetObject() ~ String
Type | Description |
---|---|
String | object type |
The status of the run, which can be either: 'queued', 'in_progress', 'requires_action', 'cancelling', 'cancelled', 'failed', 'completed', or 'expired'.
method : public : GetStatus() ~ String
Get function callback information
method : public : IsFunctionCall() ~ Bool
Loads a run
function : Load(id:String, thread:API.OpenAI.Thread, token:String) ~ API.OpenAI.Run
Name | Type | Description |
---|---|---|
id | String | run ID |
thread | Thread | instance associated with run |
token | String | API token |
Type | Description |
---|---|
Run | loaded Run |
Refreshed the run's data such as status
method : public : Refresh(token:String) ~ Bool
Name | Type | Description |
---|---|---|
token | String | API token |
Type | Description |
---|---|
Bool | newly created Run |
Submits a tool's response
method : public : SubmitToolOutputs(func_response_json:JsonElement, func_callback_id:String, token:String) ~ Bool
Name | Type | Description |
---|---|---|
func_response_json | JsonElement | response in JSON format |
func_callback_id | String | function callback ID |
token | String | API token |
Type | Description |
---|---|
Bool | true if successful, false otherwise |
String representation of the object
method : public : ToString() ~ String
Type | Description |
---|---|
String | string representation |