View Source Genies.Openai.Thread (Genies v0.0.3)
The Thread context
Summary
Functions
Creates a new thread.
See: https://platform.openai.com/docs/api-reference/threads/createThread
Example request
iex> create(%{}) {:ok, %Thread{}}
Retrieves a single thread.
See: https://platform.openai.com/docs/api-reference/threads/deleteThread
Example request
iex> delete("thread_") {:ok,
%{
"id": "asst_abc123",
"object": "assistant.deleted",
"deleted": true
}
}
Retrieves a single thread.
See: https://platform.openai.com/docs/api-reference/threads/getThread
Example request
iex> retrieve("thread_") {:ok, %Thread{}}