Get Learn Context • AI Agent SDK

get_learn_context: Get learning context suitable for injection into system prompt.

get_learn_context

Method

</div>

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

python
def get_learn_context() -> str

Returns

ResponseField str

The result of the operation.

Uses

  • to_system_prompt_context

Used By

Source

View on GitHub

praisonaiagents/memory/memory.py at line 2517


Related Documentation