Skip to main content

Documentation Index

Fetch the complete documentation index at: https://private-04b27de1.mintlify.app/llms.txt

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

min_tokens_reached

min_tokens_reached(messages: list[dict[str, Any]], min_tokens: int | None) -> bool
Returns True if the total number of tokens in the messages is greater than or equal to the specified value.
Parameters:
NameDescription
messagesA list of messages to check.

Type: list[dict[str, typing.Any]]
min_tokensThe minimum number of tokens to check for.

Type: int | None