Estimate Messages • AI Agent SDK
estimate_messages: Estimate tokens for a list of messages.
estimate_messages
Method
</div>
This is a method of the TokenEstimator class in the models module.
Estimate tokens for a list of messages.
Signature
def estimate_messages(messages: List[Dict[str, Any]]) -> intParameters
ParamField
ListNo description available.
Returns
ResponseField
intThe result of the operation.
Source
View on GitHubpraisonaiagents/context/models.py at line 457