ExStreamClient.Operations.Chat.Threads (ExStreamClient v0.1.1)
View SourceModules for interacting with the `chat/threads` group of OpenAI APIs
API Reference: https://platform.openai.com/docs/api-reference/chat/threads
Summary
Functions
@spec get_thread(String.t(), member_limit: integer(), participant_limit: integer(), reply_limit: integer() ) :: {:ok, ExStreamClient.Model.GetThreadResponse.t()} | {:error, any()}
Return a specific thread
### Required Arguments:
- `message_id`
### Optional Arguments:
- `reply_limit`
- `participant_limit`
- `member_limit`
@spec query_threads(ExStreamClient.Model.QueryThreadsRequest.t()) :: {:ok, ExStreamClient.Model.QueryThreadsResponse.t()} | {:error, any()}
Returns the list of threads for specific user
### Required Arguments:
- `payload`: QueryThreadsRequest
@spec update_thread_partial( String.t(), ExStreamClient.Model.UpdateThreadPartialRequest.t() ) :: {:ok, ExStreamClient.Model.UpdateThreadPartialResponse.t()} | {:error, any()}
Updates certain fields of the thread
Sends events:
thread.updated
thread.updated
### Required Arguments:
- `message_id` - `payload`: UpdateThreadPartialRequest