Expand description
String utilities.
Adapted from langchain_core/utils/strings.py
Functionsยง
- comma_
list - Convert a list to a comma-separated string.
- comma_
list_ display - Convert items that implement Display to a comma-separated string.
- indent
- Indent each line of text.
- sanitize_
for_ postgres - Sanitize text by removing NUL bytes that are incompatible with PostgreSQL.
- stringify_
dict - Stringify a dictionary.
- stringify_
json_ dict - Stringify a JSON object.
- stringify_
value - Stringify a value.
- strip_
lines - Remove leading and trailing whitespace from each line.
- truncate
- Truncate a string to a maximum length.