Search Results for

    Show / Hide Table of Contents

    Class ModelService

    Inheritance
    object
    CrudServiceBase<AnthropicClient>
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>
    ModelService
    Implements
    ICrudService
    Inherited Members
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.CreateAsync(RequestOptions)
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.CreateAsync(AnthropicModelRequest, RequestOptions)
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.RetrieveAsync(string, RequestOptions)
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.ReplaceAsync(string, AnthropicModelRequest, RequestOptions)
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.UpdateAsync(string, IEnumerable<UpdateMask>, RequestOptions)
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.DeleteAsync(string, RequestOptions)
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.ListAsync(CursorQuery, RequestOptions)
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.PrepareRequest(AnthropicModelRequest)
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.GetRequestParams()
    CrudServiceBase<AnthropicClient>.client
    CrudServiceBase<AnthropicClient>.ApiKey
    CrudServiceBase<AnthropicClient>.GetUrl(params string[])
    CrudServiceBase<AnthropicClient>.GetChildUrl(string, params string[])
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Anthropic.Services
    Assembly: Glitch9.AIDevKit.Provider.Anthropic.dll
    Syntax
    public class ModelService : CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>, ICrudService

    Constructors

    | Edit this page View Source

    ModelService(AnthropicClient)

    Declaration
    public ModelService(AnthropicClient client)
    Parameters
    Type Name Description
    AnthropicClient client

    Methods

    | Edit this page View Source

    CreateAsync(AnthropicModelRequest, RequestOptions)

    POST. Creates a new resource on the server using the specified request body.

    Declaration
    public override UniTask<AnthropicModelInfo> CreateAsync(AnthropicModelRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    AnthropicModelRequest request
    RequestOptions options

    Optional request options.

    Returns
    Type Description
    UniTask<AnthropicModelInfo>

    The created resource.

    Overrides
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.CreateAsync(AnthropicModelRequest, RequestOptions)
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if AnthropicModelRequest is set to object.

    | Edit this page View Source

    DeleteAsync(string, RequestOptions)

    DELETE. Deletes a resource and returns deletion status.

    Declaration
    public override UniTask<DeletionStatus> DeleteAsync(string id, RequestOptions options = null)
    Parameters
    Type Name Description
    string id
    RequestOptions options
    Returns
    Type Description
    UniTask<DeletionStatus>

    Deletion status implementing IDeletionStatus.

    Overrides
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.DeleteAsync(string, RequestOptions)
    | Edit this page View Source

    ReplaceAsync(string, AnthropicModelRequest, RequestOptions)

    POST. Updates an existing resource on the server using the specified identifier and request body.

    Declaration
    public override UniTask<AnthropicModelInfo> ReplaceAsync(string id, AnthropicModelRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    string id

    The identifier of the resource to update.

    AnthropicModelRequest request
    RequestOptions options

    Optional request options.

    Returns
    Type Description
    UniTask<AnthropicModelInfo>

    The updated resource.

    Overrides
    CrudService<AnthropicClient, AnthropicModelRequest, AnthropicModelInfo, DeletionStatus, CursorQuery>.ReplaceAsync(string, AnthropicModelRequest, RequestOptions)
    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if AnthropicModelRequest is set to object.

    Implements

    ICrudService

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation