Skip to main content

estimate_messages

Method
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]]) -> int

Parameters

messages
List
required
No description available.

Returns

Returns
int
The result of the operation.