min_tokens_reached

min_tokens_reached(messages: list[dict], 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]
min_tokensType: int | None