Class GENImageTask
Task for generating image(s) from text using supported models (e.g., OpenAI DALLĀ·E, Google Imagen).
Inheritance
object
GENImageTask
Assembly: .dll
Syntax
public class GENImageTask : GENTask<GENImageTask, string, GeneratedImage>, IGENTask
Constructors
GENImageTask(string)
Declaration
public GENImageTask(string prompt)
Parameters
Type |
Name |
Description |
string |
prompt |
|
Properties
outputMimeType
Declaration
public override MIMEType outputMimeType { get; set; }
Property Value
Type |
Description |
MIMEType |
|
Overrides
Methods
ExecuteAsyncINTERNAL()
Executes the task and returns the generated result.
Declaration
protected override UniTask<GeneratedImage> ExecuteAsyncINTERNAL()
Returns
Overrides
YieldAsync()
Allows to set N more than the selected model allows.
This is useful for streaming the images one by one.
Declaration
public IAsyncEnumerable<GeneratedImage> YieldAsync()
Returns
Implements
Extension Methods