Class GENObjectTask<T>
Task for generating structured output (e.g., JSON) using an LLM model.
Inheritance
object
GENObjectTask<T>
Assembly: .dll
Syntax
public class GENObjectTask<T> : GENCompletionTask<GENObjectTask<T>, string, T>, IGENTask
Type Parameters
Constructors
GENObjectTask(string)
Declaration
public GENObjectTask(string prompt)
Parameters
Type |
Name |
Description |
string |
prompt |
|
Methods
ExecuteAsync()
Executes the task and returns the generated result.
Declaration
public override UniTask<T> ExecuteAsync()
Returns
Type |
Description |
UniTask<T> |
|
Overrides
StreamAsync(ChatStreamHandler)
Declaration
public UniTask StreamAsync(ChatStreamHandler streamHandler)
Parameters
Returns
Implements
Extension Methods