estimate_tokens
Method
This is a method of the ContextManager class in the manager module.Estimate tokens with optional validation.
Signature
Parameters
Text to estimate
Whether to validate against accurate count
Returns
Tuple of (token_count, metrics)
Source
View on GitHub
praisonaiagents/context/manager.py at line 707
