Search Results for

    Show / Hide Table of Contents

    Class AdaptiveInstructionsSettings

    Inheritance
    object
    AdaptiveInstructionsSettings
    Implements
    IDefaultInstructionsUpdaterSettings
    IInstructionsUpdaterSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Agents
    Assembly: Glitch9.AIDevKit.Agent.dll
    Syntax
    [Serializable]
    public sealed class AdaptiveInstructionsSettings : IDefaultInstructionsUpdaterSettings, IInstructionsUpdaterSettings

    Properties

    | Edit this page View Source

    EmbeddingModel

    Declaration
    public Model EmbeddingModel { get; }
    Property Value
    Type Description
    Model
    | Edit this page View Source

    GenerationModel

    Declaration
    public Model GenerationModel { get; }
    Property Value
    Type Description
    Model
    | Edit this page View Source

    MaxTokens

    Maximum number of tokens for the generated system instructions. Default 400.

    Declaration
    public int MaxTokens { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    MetaInstructions

    Additional context describing the agent's role and purpose, provided to the LLM. When null, only the default meta prompt is used.

    Declaration
    public string MetaInstructions { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    MinMessageLength

    Minimum total character length of a message to be considered non-trivial. Default 8.

    Declaration
    public int MinMessageLength { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    MinQuestionLength

    Minimum character length for a question (ending with '?') to be considered non-trivial. Default 8.

    Declaration
    public int MinQuestionLength { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    TopicShiftThreshold

    Cosine similarity lower bound (0??) below which a topic shift is declared. Default 0.82. When similarity falls below this threshold, the LLM is called to regenerate instructions.

    Declaration
    public float TopicShiftThreshold { get; }
    Property Value
    Type Description
    float

    Methods

    | Edit this page View Source

    Build(ILogger)

    Creates a DefaultInstructionsUpdater from these options, or returns null when disabled or required models are not set.

    Declaration
    public IInstructionsUpdater Build(ILogger logger = null)
    Parameters
    Type Name Description
    ILogger logger
    Returns
    Type Description
    IInstructionsUpdater

    Implements

    IDefaultInstructionsUpdaterSettings
    IInstructionsUpdaterSettings

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation