Package com.tnsai.memory
Record Class AgentMemoryResolver.MemoryResolution
java.lang.Object
java.lang.Record
com.tnsai.memory.AgentMemoryResolver.MemoryResolution
- Record Components:
memoryStore- the resolved memory storeconsolidation- the consolidation pipeline, or null if not configurednamespace- the memory namespace, or empty string
- Enclosing class:
AgentMemoryResolver
public static record AgentMemoryResolver.MemoryResolution(MemoryStore memoryStore, MemoryConsolidationPipeline consolidation, String namespace)
extends Record
Result of memory resolution containing the configured store and optional consolidation pipeline.
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryResolution(MemoryStore memoryStore, MemoryConsolidationPipeline consolidation, String namespace) Creates an instance of aMemoryResolutionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconsolidationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thememoryStorerecord component.Returns the value of thenamespacerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MemoryResolution
public MemoryResolution(MemoryStore memoryStore, MemoryConsolidationPipeline consolidation, String namespace) Creates an instance of aMemoryResolutionrecord class.- Parameters:
memoryStore- the value for thememoryStorerecord componentconsolidation- the value for theconsolidationrecord componentnamespace- the value for thenamespacerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
memoryStore
Returns the value of thememoryStorerecord component.- Returns:
- the value of the
memoryStorerecord component
-
consolidation
Returns the value of theconsolidationrecord component.- Returns:
- the value of the
consolidationrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-