Search Results for

    Show / Hide Table of Contents

    Class DefaultImageGenerationService

    Inheritance
    object
    GenerativeServiceBase
    DefaultImageGenerationService
    Implements
    IImageGenerationService
    IGenerativeService<string, IImageAsset, IImageGenerationOptions>
    IStreamingImageGenerationService
    IImageGeneration
    IStreamingGenerativeService<string, Delta<IImageChunk>, IImageAsset, IImageGenerationOptions>
    IDisposable
    Inherited Members
    GenerativeServiceBase.CancelAsync()
    GenerativeServiceBase.Dispose()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class DefaultImageGenerationService : GenerativeServiceBase, IImageGenerationService, IGenerativeService<string, IImageAsset, IImageGenerationOptions>, IStreamingImageGenerationService, IImageGeneration, IStreamingGenerativeService<string, Delta<IImageChunk>, IImageAsset, IImageGenerationOptions>, IDisposable

    Methods

    | Edit this page View Source

    GenerateAsync(string, IImageGenerationOptions, CancellationToken)

    Generates a final output asynchronously.

    Declaration
    public UniTask<Generated<IImageAsset>> GenerateAsync(string input, IImageGenerationOptions @params, CancellationToken ct = default)
    Parameters
    Type Name Description
    string input

    The input data.

    IImageGenerationOptions params
    CancellationToken ct

    The cancellation token.

    Returns
    Type Description
    UniTask<Generated<IImageAsset>>

    The generated result.

    | Edit this page View Source

    StreamAsync(string, IImageGenerationOptions, CancellationToken)

    Starts a streaming generation request asynchronously.

    Declaration
    public UniTask<IGenerativeStream<Delta<IImageChunk>, IImageAsset>> StreamAsync(string input, IImageGenerationOptions @params, CancellationToken ct = default)
    Parameters
    Type Name Description
    string input

    The input data.

    IImageGenerationOptions params
    CancellationToken ct

    The cancellation token.

    Returns
    Type Description
    UniTask<IGenerativeStream<Delta<IImageChunk>, IImageAsset>>

    A stream handle that emits deltas and eventually provides the final output.

    Implements

    IImageGenerationService
    IGenerativeService<TInput, TOutput, TSettings>
    IStreamingImageGenerationService
    IImageGeneration
    IStreamingGenerativeService<TInput, TDelta, TOutput, TSettings>
    IDisposable

    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.TryDispose(IDisposable)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation