Class GenerationRecordOptions
Options that control how a GenerationRecord is created and stored after an AI generation request completes.
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public sealed class GenerationRecordOptions
Properties
| Edit this page View SourceArchive
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 |
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 |
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> |
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 |
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 |
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 |