Class GENTextTask
Inheritance
object
GENTextTask
Implements
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: .dll
Syntax
public class GENTextTask : GENCompletionTask<GENTextTask, Prompt, GeneratedText>, IGENTask
Constructors
GENTextTask(Prompt, Object)
Declaration
public GENTextTask(Prompt prompt, UnityEngine.Object target = null)
Parameters
Type | Name | Description |
---|---|---|
Prompt | prompt | |
Object | target |
Methods
ExecuteAsync()
Executes the text generation and returns the full response as a string.
Declaration
public override UniTask<GeneratedText> ExecuteAsync()
Returns
Type | Description |
---|---|
UniTask<GeneratedText> |
Overrides
StreamAsync(ChatStreamHandler)
Streams text generation output in real time as it's received from the model.
Declaration
public UniTask StreamAsync(ChatStreamHandler streamHandler = null)
Parameters
Type | Name | Description |
---|---|---|
ChatStreamHandler | streamHandler |
Returns
Type | Description |
---|---|
UniTask |