Reset Short Term • AI Agent SDK

reset_short_term: Clear this adapter's memory.

reset_short_term

Method

</div>

This is a method of the ChromaMemoryAdapter class in the factories module.

Clear this adapter’s memory.

NOTE: this adapter stores short-term and long-term in a single shared collection (`store_short_term/search_short_term delegate to their long-term counterparts and no memory_type` tag is recorded), so per-tier scoping is not possible here — resetting short-term also clears long-term. Use a tier-aware backend (e.g. the Dakera adapter) if you need to erase a single tier.

Signature

python
def reset_short_term() -> None

Used By

Source

View on GitHub

praisonaiagents/memory/adapters/factories.py at line 406