Search Results for

    Show / Hide Table of Contents

    Interface IGenerativeService<TInput, TOutput, TSettings>

    Represents a generative AI service that produces a final output from an input.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public interface IGenerativeService<TInput, TOutput, in TSettings> : IDisposable where TOutput : class where TSettings : IGenerationOptions
    Type Parameters
    Name Description
    TInput

    The input type.

    TOutput

    The final output type.

    TSettings

    The request settings type.

    Methods

    | Edit this page View Source

    GenerateAsync(TInput, TSettings, CancellationToken)

    Generates a final output asynchronously.

    Declaration
    UniTask<Generated<TOutput>> GenerateAsync(TInput input, TSettings settings, CancellationToken ct = default)
    Parameters
    Type Name Description
    TInput input

    The input data.

    TSettings settings

    The generation settings.

    CancellationToken ct

    The cancellation token.

    Returns
    Type Description
    UniTask<Generated<TOutput>>

    The generated result.

    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