SemanticMemoryMiddleware

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

Attributes

Companion
class
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

val RecalledKey: StateKey[String, String]

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

val SectionId: String

The prompt section's id.

The prompt section's id.

Attributes