Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.praison.ai/llms.txt

Use this file to discover all available pages before exploring further.

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.

Source

View on GitHub

praisonaiagents/context/models.py at line 451