Skip to content

Commit a7d1f2f

Browse files
Dh-5567/reformat
1 parent 6196e2d commit a7d1f2f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dataherald/sql_generator/__init__.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ def construct_intermediate_steps(
137137

138138
def truncate_observations(self, obervarion: str, max_length: int = 2000) -> str:
139139
"""Truncate the tool input."""
140-
return obervarion[:max_length] + "... (truncated)" if len(obervarion) > max_length else obervarion
140+
return (
141+
obervarion[:max_length] + "... (truncated)"
142+
if len(obervarion) > max_length
143+
else obervarion
144+
)
141145

142146
@abstractmethod
143147
def generate_response(

0 commit comments

Comments
 (0)