Class ThreadService
Inheritance
ThreadService
Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
Syntax
public sealed class ThreadService : CrudServiceBase<OpenAIClient>, ICrudService, IBetaService
Constructors
|
Edit this page
View Source
ThreadService(OpenAIClient)
Declaration
public ThreadService(OpenAIClient client)
Parameters
Properties
|
Edit this page
View Source
Messages
Create messages within threads
Declaration
public MessageService Messages { get; }
Property Value
|
Edit this page
View Source
Runs
Represents an execution run on a thread.
Declaration
public RunService Runs { get; }
Property Value
Methods
|
Edit this page
View Source
CreateAsync(RequestOptions)
Declaration
public UniTask<Thread> CreateAsync(RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| UniTask<Thread> |
|
|
Edit this page
View Source
CreateAsync(string, RequestOptions)
Declaration
public UniTask<Thread> CreateAsync(string agentId, RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| UniTask<Thread> |
|
|
Edit this page
View Source
DeleteAsync(string, RequestOptions)
Declaration
public UniTask<bool> DeleteAsync(string threadId, RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| UniTask<bool> |
|
|
Edit this page
View Source
GetList(string)
Declaration
public List<Thread> GetList(string assistantId = null)
Parameters
| Type |
Name |
Description |
| string |
assistantId |
|
Returns
|
Edit this page
View Source
RetrieveAsync(string, RequestOptions)
Declaration
public UniTask<Thread> RetrieveAsync(string threadId, RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| UniTask<Thread> |
|
|
Edit this page
View Source
UpdateAsync(Thread, RequestOptions)
Declaration
public UniTask<Thread> UpdateAsync(Thread thread, RequestOptions options = null)
Parameters
Returns
| Type |
Description |
| UniTask<Thread> |
|
Implements
Extension Methods