AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class GENObjectTask<T>

    Task for generating structured output (e.g., JSON) using an LLM model.

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

    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
    GENTask<GENObjectTask<T>, string, T>.ExecuteAsync()

    StreamAsync(ChatStreamHandler)

    Declaration
    public UniTask StreamAsync(ChatStreamHandler streamHandler)
    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