Skip to main content

forget

Method
This is a method of the Memory class in the memory module.
Delete memories by id or matching query; returns count deleted. Convenience wrapper over :meth:delete_memory / :meth:delete_memories_matching. Provide exactly one of memory_id or query.

Signature

Returns

int
The result of the operation.

Uses

  • ValueError
  • delete_memory
  • kwargs.setdefault
  • delete_memories_matching

Used By

Source

View on GitHub

praisonaiagents/memory/memory.py at line 1492