We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e036d3 commit 86ac39eCopy full SHA for 86ac39e
libs/core/langchain_core/utils/strings.py
@@ -30,10 +30,7 @@ def stringify_dict(data: dict) -> str:
30
Returns:
31
The stringified dictionary.
32
"""
33
- text = ""
34
- for key, value in data.items():
35
- text += key + ": " + stringify_value(value) + "\n"
36
- return text
+ return "".join(f"{key}: {stringify_value(value)}\n" for key, value in data.items())
37
38
39
def comma_list(items: list[Any]) -> str:
0 commit comments