AI DevKit
Search Results for

    Show / Hide Table of Contents

    Class Weighted<T>

    A weighted prompt that can be used to pass a prompt with a specific weight.
    This is useful for tasks where you want to pass multiple prompts with different weights.
    The weight can be used to control the influence of the prompt on the model's output.

    Inheritance
    object
    PromptBase
    Weighted<T>
    Implements
    IPrompt
    Inherited Members
    PromptBase.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: .dll
    Syntax
    public class Weighted<T> : PromptBase, IPrompt
    Type Parameters
    Name Description
    T

    Constructors

    Weighted(T, float?)

    Declaration
    public Weighted(T prompt, float? weight = null)
    Parameters
    Type Name Description
    T prompt
    float? weight

    Fields

    prompt

    Declaration
    public T prompt
    Field Value
    Type Description
    T

    weight

    Declaration
    public float? weight
    Field Value
    Type Description
    float?

    Methods

    GetText()

    Declaration
    public override string GetText()
    Returns
    Type Description
    string
    Overrides
    PromptBase.GetText()

    Operators

    implicit operator T(Weighted<T>)

    Declaration
    public static implicit operator T(Weighted<T> weightedPrompt)
    Parameters
    Type Name Description
    Weighted<T> weightedPrompt
    Returns
    Type Description
    T

    implicit operator Weighted<T>(T)

    Declaration
    public static implicit operator Weighted<T>(T prompt)
    Parameters
    Type Name Description
    T prompt
    Returns
    Type Description
    Weighted<T>

    Implements

    IPrompt
    In this article
    Back to top Generated by DocFX