threads Class
threads Class
openaistream::openai -> threads
Inherited methods
create()Create a thread.
threads$create(..., verbosity = 0)...Additional parameters as required by the OpenAI API.For example:messages;name;metadata
verbositynumeric Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.)
A thread object.
retrieve()Retrieves a thread.
threads$retrieve(thread_id, verbosity = 0)thread_idcharacter Required. The ID of the thread to retrieve.
verbositynumeric Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.)
The thread object matching the specified ID.
modify()Modifies a thread.
threads$modify(thread_id, ..., verbosity = 0)thread_idThe ID of the thread to modify. Only the metadata can be modified.
...Additional parameters as required by the OpenAI API.For example:metadata
verbositynumeric Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.)
The modified thread object matching the specified ID.
delete()Delete a thread.
threads$delete(thread_id, verbosity = 0)thread_idcharacter Required The ID of the thread to delete.
verbositynumeric Verbosity level for the API call(0:no output;1:show headers; 2:show headers and bodies;3: show headers, bodies, and curl status messages.)
Deletion status.
clone()The objects of this class are cloneable with this method.
threads$clone(deep = FALSE)deepWhether to make a deep clone.