cache_key

cache_key(content: str | list[dict | str] | None, *args: <class 'collections.abc.Hashable'>) -> str

Calculates the cache key for the given message content and any other hashable args.

Parameters:
NameDescription
contentThe message content to calculate the cache key for.

Type: str | list[dict | str] | None
*argsAny additional hashable args to include in the cache key.

Type: <class 'collections.abc.Hashable'>