logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AiPromptCompositionResult

    The outcome of Compose(AiPromptCompositionRequest): either a rendered prompt with its supporting data, or a set of blocking Errors and no prompt.

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

    Constructors

    AiPromptCompositionResult(string, IReadOnlyList<string>, IReadOnlyList<string>, IReadOnlyList<AiPromptConflictFinding>, IReadOnlyList<string>)

    Declaration
    public AiPromptCompositionResult(string promptText, IReadOnlyList<string> errors, IReadOnlyList<string> warnings, IReadOnlyList<AiPromptConflictFinding> conflicts, IReadOnlyList<string> referencedDocumentationPaths)
    Parameters
    Type Name Description
    string promptText
    IReadOnlyList<string> errors
    IReadOnlyList<string> warnings
    IReadOnlyList<AiPromptConflictFinding> conflicts
    IReadOnlyList<string> referencedDocumentationPaths

    Properties

    Conflicts

    Declaration
    public IReadOnlyList<AiPromptConflictFinding> Conflicts { get; }
    Property Value
    Type Description
    IReadOnlyList<AiPromptConflictFinding>

    Contradictions the detector found across the selected intents' declared outcomes.

    Errors

    Declaration
    public IReadOnlyList<string> Errors { get; }
    Property Value
    Type Description
    IReadOnlyList<string>

    Blocking problems that prevented a prompt from being produced; empty on success.

    PromptText

    Declaration
    public string PromptText { get; }
    Property Value
    Type Description
    string

    The full rendered prompt, or null when Errors is non-empty.

    ReferencedDocumentationPaths

    Declaration
    public IReadOnlyList<string> ReferencedDocumentationPaths { get; }
    Property Value
    Type Description
    IReadOnlyList<string>

    The deduped, sorted set of cookbook doc paths every selected intent referenced.

    Warnings

    Declaration
    public IReadOnlyList<string> Warnings { get; }
    Property Value
    Type Description
    IReadOnlyList<string>

    Non-blocking issues encountered while rendering (unresolved tokens, missing scan matches).

    In this article
    © 2026 Serenity. All Rights Reserved