Interface IGenerativeService<TInput, TOutput, TSettings>
Represents a generative AI service that produces a final output from an input.
Inherited Members
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 SourceGenerateAsync(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. |