optimize
Method
This is a method of the ContextOptimizer class in the models module.Optimize messages to fit within target tokens.
Signature
Parameters
List
required
No description available.
int
required
No description available.
ContextLedger
required
No description available.
Returns
tuple[List[Dict[str, Any]], OptimizationResult]
The result of the operation.
Source
View on GitHub
praisonaiagents/context/models.py at line 466
