AgentPrismRetentionOptions
AgentPrism.Core.dllDefines data retention and archival options.
public sealed class AgentPrismRetentionOptionsInheritance
Section titled “Inheritance”object ← AgentPrismRetentionOptions
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”Read from the AgentPrism:Retention configuration section. This class
carries only configuration-based defaults; the source of
truth is the retention_policies database table through
IRetentionPolicyStore. These settings are ignored when a
database record exists for a target.
AgentPrismRetentionOptions.Enabled defaults to false. A package upgrade must not delete data before a consumer adds configuration. This flag must explicitly be true before configuration defaults apply.
Constructors
Section titled “Constructors”AgentPrismRetentionOptions()
Section titled “ AgentPrismRetentionOptions()”public AgentPrismRetentionOptions()Fields
Section titled “Fields”SectionName
Section titled “ SectionName”Gets the configuration section name.
public const string SectionName = "AgentPrism:Retention"Field Value
Section titled “Field Value”Properties
Section titled “Properties”Attachments
Section titled “ Attachments”Gets the default for orphaned RetentionTargets.Attachments.
public RetentionTargetOptions Attachments { get; }Property Value
Section titled “Property Value”BatchDelay
Section titled “ BatchDelay”Gets or sets the delay between batches to avoid saturating production load.
public TimeSpan BatchDelay { get; set; }Property Value
Section titled “Property Value”BatchSize
Section titled “ BatchSize”Gets or sets the maximum row count in a deletion batch.
public int BatchSize { get; set; }Property Value
Section titled “Property Value”Conversations
Section titled “ Conversations”Gets the default for RetentionTargets.Conversations. Its RetentionTargetOptions.MaxAgeDays defaults to null: this is user data, supported but disabled.
public RetentionTargetOptions Conversations { get; }Property Value
Section titled “Property Value”DocumentEmbeddings
Section titled “ DocumentEmbeddings”Gets the default for RetentionTargets.DocumentEmbeddings. RetentionTargetOptions.MaxAgeDays defaults to null: knowledge-base content is reference data uploaded by the user, not a log or event. Automatic deletion must be explicitly enabled.
public RetentionTargetOptions DocumentEmbeddings { get; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Gets or sets whether configuration-based defaults are enabled. When disabled, no data is deleted even if target settings below are read; only explicit database policies apply.
public bool Enabled { get; set; }Property Value
Section titled “Property Value”EvalCaseResults
Section titled “ EvalCaseResults”Gets the default for RetentionTargets.EvalCaseResults.
public RetentionTargetOptions EvalCaseResults { get; }Property Value
Section titled “Property Value”IdempotencyKeys
Section titled “ IdempotencyKeys”Gets the default for RetentionTargets.IdempotencyKeys. The stored response was already sent to the client, so it does not expose new data, but its lifetime is still bounded (43.5).
public RetentionTargetOptions IdempotencyKeys { get; }Property Value
Section titled “Property Value”Gets the default for RetentionTargets.Jobs, limited to completed jobs.
public RetentionTargetOptions Jobs { get; }Property Value
Section titled “Property Value”RunEvents
Section titled “ RunEvents”Gets the default for RetentionTargets.RunEvents.
public RetentionTargetOptions RunEvents { get; }Property Value
Section titled “Property Value”RunInputs
Section titled “ RunInputs”Gets the default for RetentionTargets.RunInputs. It is not user data; see the note on RetentionTargets.RunInputs. It is absent from RetentionTargets.UserDataTargets, so the configuration-based default applies.
public RetentionTargetOptions RunInputs { get; }Property Value
Section titled “Property Value”RunScores
Section titled “ RunScores”Gets the default for RetentionTargets.RunScores. It has the same lifetime class as AgentPrismRetentionOptions.EvalCaseResults: evaluation history.
public RetentionTargetOptions RunScores { get; }Property Value
Section titled “Property Value”Sessions
Section titled “ Sessions”Gets the default for RetentionTargets.Sessions. Its RetentionTargetOptions.MaxAgeDays defaults to null: this is user data, supported but disabled.
public RetentionTargetOptions Sessions { get; }Property Value
Section titled “Property Value”SkillScriptGrants
Section titled “ SkillScriptGrants”Gets the default for expired or revoked RetentionTargets.SkillScriptGrants.
public RetentionTargetOptions SkillScriptGrants { get; }Property Value
Section titled “Property Value”Gets the default for RetentionTargets.Traces, including traces and spans.
public RetentionTargetOptions Spans { get; }Property Value
Section titled “Property Value”ToolInvocations
Section titled “ ToolInvocations”Gets the default for RetentionTargets.ToolInvocations.
public RetentionTargetOptions ToolInvocations { get; }Property Value
Section titled “Property Value”VoiceSessions
Section titled “ VoiceSessions”Gets the default for RetentionTargets.VoiceSessions. The record contains summary metrics only, not audio bytes; see the target note.
public RetentionTargetOptions VoiceSessions { get; }Property Value
Section titled “Property Value”WebhookDeliveries
Section titled “ WebhookDeliveries”Gets the default for RetentionTargets.WebhookDeliveries, limited to delivered webhooks.
public RetentionTargetOptions WebhookDeliveries { get; }Property Value
Section titled “Property Value”WorkflowCheckpoints
Section titled “ WorkflowCheckpoints”Gets the default for RetentionTargets.WorkflowCheckpoints after a run completes.
public RetentionTargetOptions WorkflowCheckpoints { get; }