learn • AI Agent SDK

learn: Get the LearnManager for continuous learning capabilities.

learn

Method

</div>

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

python
def learn() -> Any

Returns

ResponseField Any

The result of the operation.

Usage

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

Uses

  • LearnConfig
  • LearnManager

Source

View on GitHub

praisonaiagents/memory/memory.py at line 2484


Related Documentation