Class BetaService.AssistantService
Assistants: https: //platform.openai.com/docs/api-reference/assistants
Inherited Members
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>._endpoint
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>._endpointWithId
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>.CreateAsync(RESTRequestOptions)
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>.CreateAsync(Assistant, RESTRequestOptions)
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>.RetrieveAsync(string, RESTRequestOptions)
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>.UpdateAsync(string, Assistant, RESTRequestOptions)
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>.UpdateAsync(string, IEnumerable<UpdateMask>, RESTRequestOptions)
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>.DeleteAsync(string, RESTRequestOptions)
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>.ListAsync(CursorQuery, RESTRequestOptions)
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>.ThrowIfTRequestIsObject(CRUDOperation)
CRUDService<OpenAI, Assistant, Assistant, CursorQuery>.ThrowIfTQueryIsObject()
CRUDServiceBase<OpenAI>.client
CRUDServiceBase<OpenAI>.IsBetaService
CRUDServiceBase<OpenAI>.CustomApiKey
CRUDServiceBase<OpenAI>.CustomBetaHeaders
Namespace: Glitch9.AIDevKit.OpenAI.Services
Assembly: .dll
Syntax
public class BetaService.AssistantService : CRUDService<OpenAI, Assistant, Assistant, CursorQuery>
Constructors
AssistantService(OpenAI, params RESTHeader[])
Declaration
public AssistantService(OpenAI client, params RESTHeader[] betaHeaders)
Parameters
Type | Name | Description |
---|---|---|
OpenAI | client | |
RESTHeader[] | betaHeaders |
Methods
UpdateAsync(string, Assistant, RESTRequestOptions)
Updates an existing resource on the server using the specified identifier and request body.
Declaration
public override UniTask<Assistant> UpdateAsync(string id, Assistant req, RESTRequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | The identifier of the resource to update. |
Assistant | req | The data to send in the update request. |
RESTRequestOptions | options | Optional request options. |
Returns
Type | Description |
---|---|
UniTask<Assistant> | The updated resource. |
Overrides
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if Assistant is set to object. |