Skip to main content

delete_short_term

Method
This is a method of the Memory class in the memory module.
Delete a specific short-term memory by ID.

Signature

def delete_short_term(memory_id: str) -> bool

Parameters

memory_id
str
required
The unique ID of the memory to delete

Returns

Returns
bool
True if memory was found and deleted, False otherwise

Uses

  • sqlite3.connect
  • conn.execute
  • conn.commit
  • conn.close
  • delete_one

Used By

Source

View on GitHub

praisonaiagents/memory/memory.py at line 1074