SemanticMemoryMiddleware

org.llm4s.agent.harness.memory.SemanticMemoryMiddleware
See theSemanticMemoryMiddleware companion class
@Experimental

Attributes

Companion
class
Source
SemanticMemoryMiddleware.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete fields

The default middleware id.

The default middleware id.

Attributes

Source
SemanticMemoryMiddleware.scala

The default most tenants whose stores are held open at once.

The default most tenants whose stores are held open at once.

Attributes

Source
SemanticMemoryMiddleware.scala

The metadata key holding the principal of the run that recorded a memory (RunConfig.principal), when it had one: MemoryRecall.byPrincipal recalls by it, and an erasure of a user's memories selects by it (#3040).

The metadata key holding the principal of the run that recorded a memory (RunConfig.principal), when it had one: MemoryRecall.byPrincipal recalls by it, and an erasure of a user's memories selects by it (#3040).

Attributes

Source
SemanticMemoryMiddleware.scala

What the turn's recall found, cut to maxRecallTokens * 4 characters: written by beforeAgent (removed when it found nothing) and removed by afterAgent as the turn ends, so a thread at rest holds no entry. Its initial value means "nothing recalled", so a thread checkpointed before the middleware was added restores (design §4.29), and one checkpointed with it restores after it is removed. One key for every instance, registered only by an agent family with a SemanticMemoryMiddleware.

What the turn's recall found, cut to maxRecallTokens * 4 characters: written by beforeAgent (removed when it found nothing) and removed by afterAgent as the turn ends, so a thread at rest holds no entry. Its initial value means "nothing recalled", so a thread checkpointed before the middleware was added restores (design §4.29), and one checkpointed with it restores after it is removed. One key for every instance, registered only by an agent family with a SemanticMemoryMiddleware.

Attributes

Source
SemanticMemoryMiddleware.scala

The prompt section's id.

The prompt section's id.

Attributes

Source
SemanticMemoryMiddleware.scala

The metadata key marking a memory the middleware wrote - a recorded turn or a consolidation's summary - with the middleware's id as its value. Its bounds count only memories so marked, so it never evicts another writer's.

The metadata key marking a memory the middleware wrote - a recorded turn or a consolidation's summary - with the middleware's id as its value. Its bounds count only memories so marked, so it never evicts another writer's.

Attributes

Source
SemanticMemoryMiddleware.scala

The default release of a tenant's store: close it if it is AutoCloseable.

The default release of a tenant's store: close it if it is AutoCloseable.

Attributes

Source
SemanticMemoryMiddleware.scala