Search Results for

    Show / Hide Table of Contents

    Class GenerationRecordOptions

    Options that control how a GenerationRecord is created and stored after an AI generation request completes.

    Inheritance
    object
    GenerationRecordOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public sealed class GenerationRecordOptions

    Properties

    | Edit this page View Source

    Archive

    If true, the saved record will be marked as archived (hidden from default views) after it is written to storage.

    Declaration
    public bool Archive { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    MergeOptions

    Optional merge configuration. When set, the new record will be merged into an existing record using the specified Merger delegate.

    Declaration
    public GenerationRecordOptions.GenerationMergeOptions MergeOptions { get; set; }
    Property Value
    Type Description
    GenerationRecordOptions.GenerationMergeOptions
    | Edit this page View Source

    OnRecordCreated

    Optional callback invoked when a generation record is created or merged.

    Declaration
    public Action<GenerationRecord> OnRecordCreated { get; set; }
    Property Value
    Type Description
    Action<GenerationRecord>
    | Edit this page View Source

    PromptText

    An optional override for the prompt text stored in the record. If not set, the prompt text is derived from the request itself.

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

    RecordId

    Explicitly sets the record ID for this request. If not set, a new unique ID will be generated automatically.

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

    Write

    Whether the generation history should be written to storage for this request. Defaults to the value of SavePromptHistoryOnRuntime.

    Declaration
    public bool Write { get; set; }
    Property Value
    Type Description
    bool

    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