truncate_word#
- langchain_ibm.utilities.sql_database.truncate_word(
- content: Any,
- *,
- length: int,
- suffix: str = '...',
Truncate a string to a certain number of characters, based on the max string length.
Based on the analogous function from langchain_common.utilities.sql_database.py
- Parameters:
content (Any)
length (int)
suffix (str)
- Return type:
str