MemorySettings
AgentPrism.Abstractions.dllDetermines the memory providers bound to an agent.
public sealed record MemorySettings : IEquatable<MemorySettings>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”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”The ChatHistoryMemoryProvider of MAF (vector-based in-session memory) is
deliberately absent here, and must not be confused with
MemorySettings.EnableVectorSearch — that one opens a semantic search tool over a
persistent knowledge base and does not bind that particular MAF contract. reason
and boundary:
Constructors
Section titled “Constructors”MemorySettings()
Section titled “ MemorySettings()”public MemorySettings()Properties
Section titled “Properties”EnableFileMemory
Section titled “ EnableFileMemory”Gets a value that turns on file-based memory. In this phase it works only with the in-memory store; the persistent version is left to a later phase.
public bool EnableFileMemory { get; init; }Property Value
Section titled “Property Value”EnableTextSearch
Section titled “ EnableTextSearch”Gets a value that turns on text search over the file store. The search runs over
the registered AgentFileStore, which in this phase is the in-memory store
by default.
public bool EnableTextSearch { get; init; }Property Value
Section titled “Property Value”EnableTodo
Section titled “ EnableTodo”Gets a value that turns on todo tracking.
public bool EnableTodo { get; init; }Property Value
Section titled “Property Value”EnableVectorSearch
Section titled “ EnableVectorSearch”Gets a value that turns on the search_knowledge tool.
PostgreSQL only: the single concrete implementation of
IVectorSearchStore lives in AgentPrism.PostgreSql. When this
flag is turned on while another provider is registered, the build stops with
AgentPrismCompilationException; it does not silently return an
empty result.
public bool EnableVectorSearch { get; init; }Property Value
Section titled “Property Value”VectorCollection
Section titled “ VectorCollection”Gets the name of the collection to search. The agent name is used when it is empty.
public string? VectorCollection { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(MemorySettings?)
Section titled “ Equals(MemorySettings?)”public bool Equals(MemorySettings? other)Parameters
Section titled “Parameters”other MemorySettings?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(MemorySettings?, MemorySettings?)
Section titled “ operator ==(MemorySettings?, MemorySettings?)”public static bool operator ==(MemorySettings? left, MemorySettings? right)Parameters
Section titled “Parameters”left MemorySettings?
right MemorySettings?
Returns
Section titled “Returns”operator !=(MemorySettings?, MemorySettings?)
Section titled “ operator !=(MemorySettings?, MemorySettings?)”public static bool operator !=(MemorySettings? left, MemorySettings? right)Parameters
Section titled “Parameters”left MemorySettings?
right MemorySettings?