Skip to content

MemorySettings

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

Determines the memory providers bound to an agent.

public sealed record MemorySettings : IEquatable<MemorySettings>

objectMemorySettings

IEquatable<MemorySettings>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

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:

public MemorySettings()

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; }

bool

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; }

bool

Gets a value that turns on todo tracking.

public bool EnableTodo { get; init; }

bool

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; }

bool

Gets the name of the collection to search. The agent name is used when it is empty.

public string? VectorCollection { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(MemorySettings? other)

other MemorySettings?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(MemorySettings?, MemorySettings?)

Section titled “ operator ==(MemorySettings?, MemorySettings?)”
public static bool operator ==(MemorySettings? left, MemorySettings? right)

left MemorySettings?

right MemorySettings?

bool

operator !=(MemorySettings?, MemorySettings?)

Section titled “ operator !=(MemorySettings?, MemorySettings?)”
public static bool operator !=(MemorySettings? left, MemorySettings? right)

left MemorySettings?

right MemorySettings?

bool