AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class ModelService

    Inheritance
    object
    CRUDServiceBase<Anthropic>
    CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>
    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
    CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.CreateAsync(AnthropicModelRequest, RESTRequestOptions)
    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>

    true if the resource was deleted successfully; otherwise, false.

    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
    CRUDService<Anthropic, AnthropicModelData, AnthropicModelRequest, CursorQuery>.UpdateAsync(string, AnthropicModelRequest, RESTRequestOptions)
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if AnthropicModelRequest is set to object.

    In this article
    Back to top Generated by DocFX