Search Results for

    Show / Hide Table of Contents

    Interface IInstructionsUpdater

    Dynamically updates system instructions before each request is sent to the LLM. Implement this interface to adapt the agent's behaviour based on conversation history or any external context (user state, scene data, game phase, etc.).

    Namespace: Glitch9.AIDevKit.Agents
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public interface IInstructionsUpdater

    Methods

    | Edit this page View Source

    ShouldSkip(string)

    Declaration
    bool ShouldSkip(string lastUserMessage)
    Parameters
    Type Name Description
    string lastUserMessage
    Returns
    Type Description
    bool
    | Edit this page View Source

    UpdateInstructionsAsync(string, CancellationToken)

    Returns updated system instructions for the next request. Called automatically before every SendAsync(string, int, CancellationToken) call. Return null to keep the current instructions unchanged.

    Declaration
    UniTask<string> UpdateInstructionsAsync(string lastUserMessage, CancellationToken ct = default)
    Parameters
    Type Name Description
    string lastUserMessage

    The user's message that triggered this request.

    CancellationToken ct

    Cancellation token.

    Returns
    Type Description
    UniTask<string>

    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