Skip to main content

learn

Method
This is a method of the Memory class in the memory module.
Get the LearnManager for continuous learning capabilities. Returns None if learn is not enabled in config.

Signature

def learn() -> Any

Returns

Returns
Any
The result of the operation.

Usage

memory = Memory({"learn": True})
    memory.learn.capture_persona("User prefers concise responses")
    memory.learn.capture_insight("User works in data science")