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, Object)
Declaration
public GENImageTask(string prompt, UnityEngine.Object target = null)
Parameters
Type |
Name |
Description |
string |
prompt |
|
Object |
target |
|
Properties
outputMimeType
Declaration
public override MIMEType outputMimeType { get; set; }
Property Value
Type |
Description |
MIMEType |
|
Overrides
Methods
ExecuteAsync()
Executes the task and returns the generated result.
Declaration
public override UniTask<GeneratedImage> ExecuteAsync()
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