Memory

org.llm4s.agent.memory.Memory
See theMemory companion class
object Memory

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Memory.type

Members list

Type members

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 forEntity(entityId: EntityId, entityName: String, fact: String, entityType: String): Memory

Create an entity memory.

Create an entity memory.

Attributes

def fromConversation(content: String, role: String, conversationId: Option[String]): Memory

Create a conversation memory from a message.

Create a conversation memory from a message.

Attributes

def fromKnowledge(content: String, source: String, chunkIndex: Option[Int]): Memory

Create a knowledge memory from a document chunk.

Create a knowledge memory from a document chunk.

Attributes

def fromTask(taskDescription: String, outcome: String, success: Boolean): Memory

Create a task completion memory.

Create a task completion memory.

Attributes

def userFact(fact: String, userId: Option[String]): Memory

Create a user fact memory.

Create a user fact memory.

Attributes