Thread R6 class
Thread R6 class
Public fields
id
The ID of the thread.
created_at
The time the thread was created.
metadata
Additional metadata about the thread.
Methods
Method new()
Initialize the thread. If thread_id
is provided, the thread is retrieved from the API. The ...
argument is passed to oai_create_thread()
.
Usage
Thread$new(thread_id = NULL, ..., resp = NULL)
Method modify()
Modify the thread. The ...
argument is passed to oai_modify_thread()
.
Method retrieve()
Retrieve the thread. The ...
argument is passed to oai_retrieve_thread()
.
Method create_message()
Create a new message in the thread. The ...
argument is passed to oai_create_message()
.
Method list_messages()
List messages in the thread. The ...
argument is passed to oai_list_messages()
.
Method run()
Run the thread on an assistant. The ...
argument is passed to oai_create_run()
.
Method list_runs()
List runs of the thread. The ...
argument is passed to oai_list_runs()
.