logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AiPromptTemplateRenderer

    Pure {{TOKEN_NAME}} substitution — deliberately no template control flow. Any conditional content is the caller's job: build the multi-line token value in C# before rendering. An unresolved token becomes an empty string plus a warning, never a silent gap in the generated prompt.

    Inheritance
    object
    AiPromptTemplateRenderer
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Editor.AiPromptBuilder
    Assembly: Serenity.AiPromptBuilder.Editor.dll
    Syntax
    public static class AiPromptTemplateRenderer

    Methods

    Render(string, IReadOnlyDictionary<string, string>, IList<string>)

    Declaration
    public static string Render(string templateText, IReadOnlyDictionary<string, string> tokenValues, IList<string> warnings)
    Parameters
    Type Name Description
    string templateText
    IReadOnlyDictionary<string, string> tokenValues
    IList<string> warnings
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved