langchain_community.utilities.sql_database
.truncate_wordΒΆ
- langchain_community.utilities.sql_database.truncate_word(content: Any, *, length: int, suffix: str = '...') str [source]ΒΆ
Truncate a string to a certain number of words, based on the max string length.
- Parameters
content (Any) β
length (int) β
suffix (str) β
- Return type
str