AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class GENContentTask

    Task for generating text using an LLM model. Supports instructions and role-based prompts.

    Inheritance
    object
    GENTask<GENContentTask, Prompt, GeneratedContent>
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>
    GENContentTask
    Implements
    IGENTask
    Inherited Members
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.streamHandler
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.AddAttachment(string)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.AddAttachment(Texture2D)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.AddAttachment(AudioClip)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.AddAttachment(IUniFile)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.SetInstruction(string)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.SetModelOptions(ModelOptions)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.SetReasoningEffort(ReasoningEffort)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.SetSpeechOutput(SpeechOutputOptions)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.SetWebSearchOptions(WebSearchOptions)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.OnStreamText(Action<string>)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.OnStreamError(Action<string>)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.OnStreamDOne(Action<ChatCompletion>)
    GENCompletionTask<GENContentTask, Prompt, GeneratedContent>.OnStreamToolCalls(Action<ToolCall[]>)
    GENTask<GENContentTask, Prompt, GeneratedContent>.token
    GENTask<GENContentTask, Prompt, GeneratedContent>.enableHistory
    GENTask<GENContentTask, Prompt, GeneratedContent>.isCanceled
    GENTask<GENContentTask, Prompt, GeneratedContent>.outputMimeType
    GENTask<GENContentTask, Prompt, GeneratedContent>.Cancel()
    GENTask<GENContentTask, Prompt, GeneratedContent>.SetOption(string, object)
    GENTask<GENContentTask, Prompt, GeneratedContent>.TryGetOption<T>(string, out T)
    GENTask<GENContentTask, Prompt, GeneratedContent>.SetModel(Model)
    GENTask<GENContentTask, Prompt, GeneratedContent>.SetCount(int)
    GENTask<GENContentTask, Prompt, GeneratedContent>.SetOutputPath(string)
    GENTask<GENContentTask, Prompt, GeneratedContent>.SetSender(string)
    GENTask<GENContentTask, Prompt, GeneratedContent>.SetIgnoreLogs(bool)
    GENTask<GENContentTask, Prompt, GeneratedContent>.EnablePromptHistory(bool)
    GENTask<GENContentTask, Prompt, GeneratedContent>.SetTextToTarget(GeneratedText)
    GENTask<GENContentTask, Prompt, GeneratedContent>.SetImageToTarget(GeneratedImage)
    GENTask<GENContentTask, Prompt, GeneratedContent>.SetAudioToTarget(GeneratedAudio)
    GENTask<GENContentTask, Prompt, GeneratedContent>.ExecuteAsync()
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class GENContentTask : GENCompletionTask<GENContentTask, Prompt, GeneratedContent>, IGENTask

    Constructors

    GENContentTask(Prompt, Object)

    Declaration
    public GENContentTask(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<GeneratedContent> ExecuteAsync()
    Returns
    Type Description
    UniTask<GeneratedContent>
    Overrides
    GENTask<GENContentTask, Prompt, GeneratedContent>.ExecuteAsync()

    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

    Implements

    IGENTask

    Extension Methods

    FluentAPIExtensions.SetAspectRatio<TTask>(TTask, AspectRatio)
    FluentAPIExtensions.SetPersonGeneration<TTask>(TTask, PersonGeneration)
    FluentAPIExtensions.SetSize<T>(T, ImageSize)
    In this article
    Back to top Generated by DocFX