> ## 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.cache_key

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

#### cache\_key

```python theme={null}
cache_key(content: str | list[dict[str, Any] | str] | None, *args: <class 'Hashable'>) -> str
```

Calculates the cache key for the given message content and any other hashable args.<br />

<b>Parameters:</b>

| Name      | Description                                                                                                                  |
| --------- | ---------------------------------------------------------------------------------------------------------------------------- |
| `content` | The message content to calculate the cache key for.<br /><br />**Type:** str \| list\[dict\[str, typing.Any] \| str] \| None |
| `*args`   | Any additional hashable args to include in the cache key.<br /><br />**Type:** 'collections.abc.Hashable'                    |

<br />
