Session Deduplication Cache • AI Agent SDK
SessionDeduplicationCache: Thread-safe session-level content deduplication cache.
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
ParamField
intNo 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 GitHubpraisonaiagents/context/manager.py at line 39