cache_key

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.

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

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

Type: ‘collections.abc.Hashable’