Class ThreadProvider
Simplifies implementation of HTTP operations for handling Thread for AssistantsAPIv2.
Implements
IObjectProvider<Thread>
Inherited Members
ObjectProvider<Thread>.OnCreate
ObjectProvider<Thread>.OnRetrieve
ObjectProvider<Thread>.OnUpdate
ObjectProvider<Thread>.OnList
ObjectProvider<Thread>.OnDelete
ObjectProvider<Thread>.CreateAsync(params object[])
ObjectProvider<Thread>.RetrieveAsync(string, params object[])
ObjectProvider<Thread>.RetrieveOrCreateAsync(string, params object[])
ObjectProvider<Thread>.UpdateAsync(string, params object[])
ObjectProvider<Thread>.ListAsync(params object[])
ObjectProvider<Thread>.DeleteAsync(string, params object[])
Namespace: Glitch9.AIDevKit.OpenAI.Assistants
Assembly: .dll
Syntax
public class ThreadProvider : AssistantProviderBase<Thread>, IObjectProvider<Thread>
Constructors
ThreadProvider(AssistantsAPIv2)
Declaration
public ThreadProvider(AssistantsAPIv2 api)
Parameters
Type | Name | Description |
---|---|---|
AssistantsAPIv2 | api |
Methods
CreateInternalAsync(params object[])
Declaration
protected override UniTask<Thread> CreateInternalAsync(params object[] args)
Parameters
Type | Name | Description |
---|---|---|
object[] | args |
Returns
Type | Description |
---|---|
UniTask<Thread> |
Overrides
Glitch9.IO.Networking.RESTApi.ObjectProvider<Glitch9.AIDevKit.OpenAI.Thread>.CreateInternalAsync(params object[])
DeleteInternalAsync(string, params object[])
Declaration
protected override UniTask<bool> DeleteInternalAsync(string id, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
string | id | |
object[] | args |
Returns
Type | Description |
---|---|
UniTask<bool> |
Overrides
Glitch9.IO.Networking.RESTApi.ObjectProvider<Glitch9.AIDevKit.OpenAI.Thread>.DeleteInternalAsync(string, params object[])
ListInternalAsync(params object[])
Declaration
protected override UniTask<Thread[]> ListInternalAsync(params object[] args)
Parameters
Type | Name | Description |
---|---|---|
object[] | args |
Returns
Type | Description |
---|---|
UniTask<Thread[]> |
Overrides
Glitch9.IO.Networking.RESTApi.ObjectProvider<Glitch9.AIDevKit.OpenAI.Thread>.ListInternalAsync(params object[])
RetrieveInternalAsync(string, params object[])
Declaration
protected override UniTask<Thread> RetrieveInternalAsync(string id, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
string | id | |
object[] | args |
Returns
Type | Description |
---|---|
UniTask<Thread> |
Overrides
Glitch9.IO.Networking.RESTApi.ObjectProvider<Glitch9.AIDevKit.OpenAI.Thread>.RetrieveInternalAsync(string, params object[])
UpdateInternalAsync(string, params object[])
Declaration
protected override UniTask<Thread> UpdateInternalAsync(string id, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
string | id | |
object[] | args |
Returns
Type | Description |
---|---|
UniTask<Thread> |
Overrides
Glitch9.IO.Networking.RESTApi.ObjectProvider<Glitch9.AIDevKit.OpenAI.Thread>.UpdateInternalAsync(string, params object[])
Implements
Glitch9.IO.Networking.RESTApi.IObjectProvider<T>