AgentPrismPostgreSqlOptions
AgentPrism.PostgreSql.dllSettings for AgentPrism’s PostgreSQL persistence layer.
public sealed class AgentPrismPostgreSqlOptionsInheritance
Section titled “Inheritance”object ← AgentPrismPostgreSqlOptions
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”Validation is done by hand in AgentPrismPostgreSqlOptionsValidator;
DataAnnotations is not used.
Constructors
Section titled “Constructors”AgentPrismPostgreSqlOptions()
Section titled “ AgentPrismPostgreSqlOptions()”public AgentPrismPostgreSqlOptions()Fields
Section titled “Fields”SectionName
Section titled “ SectionName”The full path of the configuration section settings are read from.
public const string SectionName = "AgentPrism:PostgreSql"Field Value
Section titled “Field Value”Properties
Section titled “Properties”AutoApplyMigrations
Section titled “ AutoApplyMigrations”Whether pending migrations are applied automatically at application startup.
public bool AutoApplyMigrations { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Can be set to false in production and MigrationRunner run as a separate deployment step, so a long-running migration does not block application startup.
CommandTimeoutSeconds
Section titled “ CommandTimeoutSeconds”The upper time limit for a single SQL command (seconds). 0 means unlimited.
public int CommandTimeoutSeconds { get; set; }Property Value
Section titled “Property Value”ConnectionString
Section titled “ ConnectionString”The PostgreSQL connection string.
public string? ConnectionString { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”This value is a secret and is never written to a file. Use
dotnet user-secrets, an environment variable, or a secret manager.
EnableKnowledge
Section titled “ EnableKnowledge”Whether the “knowledge” migration set is applied. Default false.
public bool EnableKnowledge { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”The knowledge set needs the pgvector extension; a
consumer on a managed PostgreSQL without permission to install
extensions never sees it unless this is turned on. While it is
false, no IVectorSearchStore is
registered — an agent definition that requests vector search fails
compilation with a clear error instead of a database error at run
time.
SchemaName
Section titled “ SchemaName”The schema AgentPrism’s tables are created in. The consumer’s public
schema is never touched, under any circumstances.
public string SchemaName { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Must follow the rules for an unquoted PostgreSQL identifier: starts with a lowercase letter or underscore, contains lowercase letters, digits, and underscores, at most 63 characters.