Class ModelService
Inherited Members
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>._endpoint
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>._endpointWithId
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.CreateAsync(RESTRequestOptions)
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.CreateAsync(AnthropicModelRequest, RESTRequestOptions)
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.RetrieveAsync(string, RESTRequestOptions)
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.UpdateAsync(string, AnthropicModelRequest, RESTRequestOptions)
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.UpdateAsync(string, IEnumerable<UpdateMask>, RESTRequestOptions)
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.DeleteAsync(string, RESTRequestOptions)
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.ListAsync(CursorQuery, RESTRequestOptions)
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.ThrowIfTRequestIsObject(CRUDOperation)
CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.ThrowIfTQueryIsObject()
CRUDServiceBase<Anthropic>.client
CRUDServiceBase<Anthropic>.IsBetaService
CRUDServiceBase<Anthropic>.CustomApiKey
CRUDServiceBase<Anthropic>.CustomBetaHeaders
Namespace: Glitch9.AIDevKit.Anthropic.Services
Assembly: .dll
Syntax
public class ModelService : CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>
Constructors
ModelService(Anthropic)
Declaration
public ModelService(Anthropic client)
Parameters
Type | Name | Description |
---|---|---|
Anthropic | client |
Methods
CreateAsync(AnthropicModelRequest, RESTRequestOptions)
Creates a new resource on the server using the specified request body.
Declaration
public override UniTask<AnthropicModelData> CreateAsync(AnthropicModelRequest req, RESTRequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
AnthropicModelRequest | req | The data to send in the creation request. |
RESTRequestOptions | options | Optional request options. |
Returns
Type | Description |
---|---|
UniTask<AnthropicModelData> | The created resource. |
Overrides
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if AnthropicModelRequest is set to object. |
DeleteAsync(string, RESTRequestOptions)
Deletes a resource from the server using the specified identifier.
Declaration
public override UniTask<bool> DeleteAsync(string id, RESTRequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | The identifier of the resource to delete. |
RESTRequestOptions | options | Optional request options. |
Returns
Type | Description |
---|---|
UniTask<bool> |
|
Overrides
Glitch9.IO.Networking.RESTApi.CRUDService<Glitch9.AIDevKit.Anthropic.Anthropic, Glitch9.AIDevKit.Anthropic.AnthropicModelData, Glitch9.AIDevKit.Anthropic.AnthropicModelRequest, Glitch9.IO.Networking.RESTApi.CursorQuery>.DeleteAsync(string, Glitch9.IO.Networking.RESTApi.RESTRequestOptions)
UpdateAsync(string, AnthropicModelRequest, RESTRequestOptions)
Updates an existing resource on the server using the specified identifier and request body.
Declaration
public override UniTask<AnthropicModelData> UpdateAsync(string id, AnthropicModelRequest req, RESTRequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | The identifier of the resource to update. |
AnthropicModelRequest | req | The data to send in the update request. |
RESTRequestOptions | options | Optional request options. |
Returns
Type | Description |
---|---|
UniTask<AnthropicModelData> | The updated resource. |
Overrides
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown if AnthropicModelRequest is set to object. |