Skip to main content

SessionDeduplicationCache

Defined in the manager module.
AI Agent Thread-safe session-level content deduplication cache. Tracks content hashes across all agents in a workflow session to prevent duplicate content from being sent to LLM.

Constructor

max_size
int
default:"1000"
No description available.

Methods

check_and_add()

Check if content hash exists and add if new.

get_stats()

Get deduplication statistics.

clear()

Clear the cache.

Source

View on GitHub

praisonaiagents/context/manager.py at line 37

Session Management

Sessions Feature

Session Persistence

Caching Concept