Skip to main content

get_learn_context

Method
This is a method of the Memory class in the memory module.
Get learning context suitable for injection into system prompt. Returns empty string if learn is not enabled.

Signature

Returns

Returns
str
The result of the operation.

Uses

  • to_system_prompt_context

Used By

Source

View on GitHub

praisonaiagents/memory/memory.py at line 1865

Context Concept

Context Management

Context Strategies

Agent Learn

Learn Configuration