Skip to content

Commit

Permalink
adding newline for excute sql query
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadrezaPourreza authored and Juan Valacco committed Apr 4, 2024
1 parent ed249f6 commit 4b34085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dataherald/sql_generator/dataherald_finetuning_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ class QuerySQLDataBaseTool(BaseSQLDatabaseTool, BaseTool):
Input: A SQL query between ```sql and ``` tags.
Output: Result from the database or an error message if the query is incorrect.
Use this tool to execute the SQL query on the database, and return the results.
Add newline after both ```sql and ``` tags.
"""
args_schema: Type[BaseModel] = SQLInput

Expand Down
1 change: 1 addition & 0 deletions dataherald/sql_generator/dataherald_sqlagent.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class QuerySQLDataBaseTool(BaseSQLDatabaseTool, BaseTool):
Output: Result from the database or an error message if the query is incorrect.
If an error occurs, rewrite the query and retry.
Use this tool to execute SQL queries.
Add newline after both ```sql and ``` tags.
"""

@catch_exceptions()
Expand Down

0 comments on commit 4b34085

Please sign in to comment.