langchain.callbacks.utils.hash_string

langchain.callbacks.utils.hash_string(s: str) str[source]

Hash a string using sha1.

Parameters

s (str) – The string to hash.

Returns

The hashed string.

Return type

(str)