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_tokensType: int | None