AI Dev Kit
Search Results for

    Show / Hide Table of Contents

    Class GENCompletionTask<TSelf, TOutput>

    Base class for GENTasks which utilize a CompletionRequest or a ChatCompletionRequest.

    Inheritance
    object
    GENTask<TSelf, string, TOutput>
    GENCompletionTask<TSelf, TOutput>
    GENResponseTask
    GENStructTask<T>
    Implements
    IGENTask
    Inherited Members
    GENTask<TSelf, string, TOutput>.token
    GENTask<TSelf, string, TOutput>.enableHistory
    GENTask<TSelf, string, TOutput>.isCanceled
    GENTask<TSelf, string, TOutput>.outputMimeType
    GENTask<TSelf, string, TOutput>.Cancel()
    GENTask<TSelf, string, TOutput>.SetOption(string, object)
    GENTask<TSelf, string, TOutput>.TryGetOption<T>(string, out T)
    GENTask<TSelf, string, TOutput>.SetModel(Model)
    GENTask<TSelf, string, TOutput>.SetCount(int)
    GENTask<TSelf, string, TOutput>.SetOutputPath(string)
    GENTask<TSelf, string, TOutput>.SetSender(string)
    GENTask<TSelf, string, TOutput>.SetIgnoreLogs(bool)
    GENTask<TSelf, string, TOutput>.EnablePromptHistory(bool)
    GENTask<TSelf, string, TOutput>.SetCancellationToken(CancellationToken)
    GENTask<TSelf, string, TOutput>.ExecuteAsyncINTERNAL()
    GENTask<TSelf, string, TOutput>.ExecuteAsync()
    GENTask<TSelf, string, TOutput>.ExecuteAsync<T>()
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public abstract class GENCompletionTask<TSelf, TOutput> : GENTask<TSelf, string, TOutput>, IGENTask where TSelf : GENCompletionTask<TSelf, TOutput>
    Type Parameters
    Name Description
    TSelf
    TOutput

    Constructors

    GENCompletionTask(string)

    Declaration
    protected GENCompletionTask(string prompt)
    Parameters
    Type Name Description
    string prompt

    Methods

    AddFunctions(params FunctionCall[])

    Declaration
    public TSelf AddFunctions(params FunctionCall[] functions)
    Parameters
    Type Name Description
    FunctionCall[] functions
    Returns
    Type Description
    TSelf

    AddMessages(params ChatMessage[])

    Declaration
    public TSelf AddMessages(params ChatMessage[] messages)
    Parameters
    Type Name Description
    ChatMessage[] messages
    Returns
    Type Description
    TSelf

    AddTools(params ToolCall[])

    Declaration
    public TSelf AddTools(params ToolCall[] tools)
    Parameters
    Type Name Description
    ToolCall[] tools
    Returns
    Type Description
    TSelf

    Attach(params AudioClip[])

    Declaration
    public TSelf Attach(params AudioClip[] audioClips)
    Parameters
    Type Name Description
    AudioClip[] audioClips
    Returns
    Type Description
    TSelf

    Attach(params IFile[])

    Declaration
    public TSelf Attach(params IFile[] files)
    Parameters
    Type Name Description
    IFile[] files
    Returns
    Type Description
    TSelf

    Attach(params FileInfo[])

    Declaration
    public TSelf Attach(params FileInfo[] fileInfos)
    Parameters
    Type Name Description
    FileInfo[] fileInfos
    Returns
    Type Description
    TSelf

    Attach(params string[])

    Declaration
    public TSelf Attach(params string[] filePaths)
    Parameters
    Type Name Description
    string[] filePaths
    Returns
    Type Description
    TSelf

    Attach(params Texture2D[])

    Declaration
    public TSelf Attach(params Texture2D[] textures)
    Parameters
    Type Name Description
    Texture2D[] textures
    Returns
    Type Description
    TSelf

    SetFunctions(params FunctionCall[])

    Declaration
    public TSelf SetFunctions(params FunctionCall[] functions)
    Parameters
    Type Name Description
    FunctionCall[] functions
    Returns
    Type Description
    TSelf

    SetInstruction(string)

    Sets the instruction for the task. This is a specific command or request for the model to follow.

    Declaration
    public TSelf SetInstruction(string instruction)
    Parameters
    Type Name Description
    string instruction
    Returns
    Type Description
    TSelf

    SetMessages(params ChatMessage[])

    Declaration
    public TSelf SetMessages(params ChatMessage[] messages)
    Parameters
    Type Name Description
    ChatMessage[] messages
    Returns
    Type Description
    TSelf

    SetModelSettings(ModelSettings)

    Sets the generation options for the task.

    Declaration
    public TSelf SetModelSettings(ModelSettings settings)
    Parameters
    Type Name Description
    ModelSettings settings
    Returns
    Type Description
    TSelf

    SetModeration(ModerationOptions)

    Declaration
    public TSelf SetModeration(ModerationOptions options)
    Parameters
    Type Name Description
    ModerationOptions options
    Returns
    Type Description
    TSelf

    SetReasoning(ReasoningEffort)

    Declaration
    public TSelf SetReasoning(ReasoningEffort effort)
    Parameters
    Type Name Description
    ReasoningEffort effort
    Returns
    Type Description
    TSelf

    SetReasoning(ReasoningOptions)

    Declaration
    public TSelf SetReasoning(ReasoningOptions options)
    Parameters
    Type Name Description
    ReasoningOptions options
    Returns
    Type Description
    TSelf

    SetSpeechOutput(SpeechOutputOptions)

    Declaration
    public TSelf SetSpeechOutput(SpeechOutputOptions options = null)
    Parameters
    Type Name Description
    SpeechOutputOptions options
    Returns
    Type Description
    TSelf

    SetStartingMessage(string)

    Declaration
    public TSelf SetStartingMessage(string startingMessage)
    Parameters
    Type Name Description
    string startingMessage
    Returns
    Type Description
    TSelf

    SetTools(params ToolCall[])

    Declaration
    public TSelf SetTools(params ToolCall[] tools)
    Parameters
    Type Name Description
    ToolCall[] tools
    Returns
    Type Description
    TSelf

    SetWebSearchOptions(WebSearchOptions)

    Declaration
    public TSelf SetWebSearchOptions(WebSearchOptions webSearchOptions)
    Parameters
    Type Name Description
    WebSearchOptions webSearchOptions
    Returns
    Type Description
    TSelf

    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