Search Results for

    Show / Hide Table of Contents

    Class FileService

    Inheritance
    object
    CrudServiceBase<GroqCloudClient>
    FileService
    Implements
    ICrudService
    Inherited Members
    CrudServiceBase<GroqCloudClient>.client
    CrudServiceBase<GroqCloudClient>.ApiKey
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.GroqCloud
    Assembly: Glitch9.AIDevKit.Provider.GroqCloud.dll
    Syntax
    public sealed class FileService : CrudServiceBase<GroqCloudClient>, ICrudService

    Constructors

    | Edit this page View Source

    FileService(GroqCloudClient)

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

    Methods

    | Edit this page View Source

    DeleteAsync(string, RequestOptions)

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

    DownloadAsync(string, RequestOptions)

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

    ListAsync(CursorQuery, RequestOptions)

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

    RetrieveAsync(string, RequestOptions)

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

    UploadAsync(AIFileUploadRequest, RequestOptions)

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

    UploadAsync(IFile, UploadPurpose, RequestOptions)

    Declaration
    public UniTask<GroqCloudFile> UploadAsync(IFile file, UploadPurpose purpose, RequestOptions options = null)
    Parameters
    Type Name Description
    IFile file
    UploadPurpose purpose
    RequestOptions options
    Returns
    Type Description
    UniTask<GroqCloudFile>

    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