Search Results for

    Show / Hide Table of Contents

    Class FileService

    Inheritance
    object
    CrudServiceBase<AnthropicClient>
    FileService
    Implements
    ICrudService
    Inherited Members
    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 FileService : CrudServiceBase<AnthropicClient>, ICrudService

    Constructors

    | Edit this page View Source

    FileService(AnthropicClient)

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

    Methods

    | Edit this page View Source

    DeleteAsync(string, RequestOptions)

    Declaration
    public UniTask<DeletionStatus> DeleteAsync(string fileId, RequestOptions options = null)
    Parameters
    Type Name Description
    string fileId
    RequestOptions options
    Returns
    Type Description
    UniTask<DeletionStatus>
    | Edit this page View Source

    DownloadAsync(string, RequestOptions)

    Declaration
    public UniTask<AnthropicFile> DownloadAsync(string fileId, RequestOptions options = null)
    Parameters
    Type Name Description
    string fileId
    RequestOptions options
    Returns
    Type Description
    UniTask<AnthropicFile>
    | Edit this page View Source

    ListAsync(CursorQuery, RequestOptions)

    Declaration
    public UniTask<Queried<AnthropicFile>> ListAsync(CursorQuery query = null, RequestOptions options = null)
    Parameters
    Type Name Description
    CursorQuery query
    RequestOptions options
    Returns
    Type Description
    UniTask<Queried<AnthropicFile>>
    | Edit this page View Source

    RetrieveAsync(string, RequestOptions)

    Declaration
    public UniTask<AnthropicFile> RetrieveAsync(string fileId, RequestOptions options = null)
    Parameters
    Type Name Description
    string fileId
    RequestOptions options
    Returns
    Type Description
    UniTask<AnthropicFile>
    | Edit this page View Source

    UploadAsync(IFile, RequestOptions)

    Declaration
    public UniTask<AnthropicFile> UploadAsync(IFile file, RequestOptions options = null)
    Parameters
    Type Name Description
    IFile file
    RequestOptions options
    Returns
    Type Description
    UniTask<AnthropicFile>
    | Edit this page View Source

    UploadAsync(FileUploadRequest, RequestOptions)

    Declaration
    public UniTask<AnthropicFile> UploadAsync(FileUploadRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    FileUploadRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<AnthropicFile>

    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