Class ThreadsClient
java.lang.Object
io.github.stefanbratanov.jvm.openai.ThreadsClient
Create threads that assistants can interact with.
Based on Threads
-
Method Summary
Modifier and TypeMethodDescriptioncreateThread(CreateThreadRequest request) Create a thread.deleteThread(String threadId) Delete a thread.modifyThread(String threadId, ModifyThreadRequest request) Modifies a thread.retrieveThread(String threadId) Retrieves a thread.
-
Method Details
-
createThread
Create a thread.- Throws:
OpenAIException- in case of API errors
-
retrieveThread
Retrieves a thread.- Throws:
OpenAIException- in case of API errors
-
modifyThread
Modifies a thread.- Throws:
OpenAIException- in case of API errors
-
deleteThread
Delete a thread.- Throws:
OpenAIException- in case of API errors
-