> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.agentchat.contrib.capabilities.transforms_util.min_tokens_reached

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### min\_tokens\_reached

```python theme={null}
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.<br />

<b>Parameters:</b>

| Name         | Description                                                                     |
| ------------ | ------------------------------------------------------------------------------- |
| `messages`   | A list of messages to check.<br /><br />**Type:** list\[dict\[str, typing.Any]] |
| `min_tokens` | The minimum number of tokens to check for.<br /><br />**Type:** int \| None     |

<br />
