Reset Entity Only • AI Agent SDK

reset_entity_only: If you only want to drop entity items from LTM, you'd do a custom

reset_entity_only

Method

</div>

This is a method of the Memory class in the memory module.

If you only want to drop entity items from LTM, you’d do a custom delete from local DB where meta LIKE ‘%category=entity%’. For brevity, we do a full LTM reset here.

Signature

python
def reset_entity_only() -> Any

Returns

ResponseField Any

The result of the operation.

Uses

  • reset_long_term

Source

View on GitHub

praisonaiagents/memory/memory.py at line 1783