Class ThreadService
public class ThreadService : CrudServiceBase<OpenAIClient>, IBetaApi
- Inheritance
-
objectThreadService
- Implements
-
IBetaApi
Constructors
ThreadService(OpenAIClient)
public ThreadService(OpenAIClient client)
Parameters
clientOpenAIClient
Properties
Messages
Create messages within threads
public MessageService Messages { get; }
Property Value
Runs
Represents an execution run on a thread.
public RunService Runs { get; }
Property Value
Methods
CreateAsync(RESTOptions)
public UniTask<Thread> CreateAsync(RESTOptions options = null)
Parameters
optionsRESTOptions
Returns
- UniTask<Thread>
CreateAsync(string, RESTOptions)
public UniTask<Thread> CreateAsync(string agentId, RESTOptions options = null)
Parameters
agentIdstringoptionsRESTOptions
Returns
- UniTask<Thread>
DeleteAsync(string, RESTOptions)
public UniTask<bool> DeleteAsync(string threadId, RESTOptions options = null)
Parameters
threadIdstringoptionsRESTOptions
Returns
- UniTask<bool>
GetList(string)
public List<Thread> GetList(string assistantId = null)
Parameters
assistantIdstring
Returns
- List<Thread>
RetrieveAsync(string, RESTOptions)
public UniTask<Thread> RetrieveAsync(string threadId, RESTOptions options = null)
Parameters
threadIdstringoptionsRESTOptions
Returns
- UniTask<Thread>
UpdateAsync(Thread, RESTOptions)
public UniTask<Thread> UpdateAsync(Thread thread, RESTOptions options = null)
Parameters
threadThreadoptionsRESTOptions
Returns
- UniTask<Thread>