check_and_add
Method
This is a method of the SessionDeduplicationCache class in the manager module.Check if content hash exists and add if new.
Signature
Parameters
str
required
Hash of the content
str
required
Name of the agent adding this content
int
default:"0"
Estimated tokens in this content
Returns
bool
True if duplicate (already exists), False if new
Source
View on GitHub
praisonaiagents/context/manager.py at line 57
