MemoryType

org.llm4s.agent.memory.MemoryType
See theMemoryType companion trait
object MemoryType

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
MemoryType.type

Members list

Type members

Classlikes

case object Conversation extends MemoryType

Memories from conversation history. These are automatically captured from agent interactions.

Memories from conversation history. These are automatically captured from agent interactions.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait MemoryType
class Object
trait Matchable
class Any
Show all
Self type
final case class Custom(name: String) extends MemoryType

Custom memory type for domain-specific use cases.

Custom memory type for domain-specific use cases.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait MemoryType
class Object
trait Matchable
class Any
Show all
case object Entity extends MemoryType

Facts about entities (people, organizations, concepts). Tracked across conversations for contextual awareness.

Facts about entities (people, organizations, concepts). Tracked across conversations for contextual awareness.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait MemoryType
class Object
trait Matchable
class Any
Show all
Self type
Entity.type
case object Knowledge extends MemoryType

Knowledge from external documents or knowledge bases. Used for RAG-style retrieval.

Knowledge from external documents or knowledge bases. Used for RAG-style retrieval.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait MemoryType
class Object
trait Matchable
class Any
Show all
Self type
Knowledge.type
case object Task extends MemoryType

Memories of completed tasks and their outcomes. Useful for learning from past executions.

Memories of completed tasks and their outcomes. Useful for learning from past executions.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait MemoryType
class Object
trait Matchable
class Any
Show all
Self type
Task.type
case object UserFact extends MemoryType

Facts learned about the user. Preferences, background, prior interactions.

Facts learned about the user. Preferences, background, prior interactions.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait MemoryType
class Object
trait Matchable
class Any
Show all
Self type
UserFact.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def fromString(s: String): MemoryType

Parse a memory type from string.

Parse a memory type from string.

Attributes

Concrete fields

val builtIn: Set[MemoryType]

All built-in memory types.

All built-in memory types.

Attributes