Update agents/tools.py
Browse files- agents/tools.py +0 -8
agents/tools.py
CHANGED
|
@@ -142,14 +142,6 @@ def prepare_sql_context(user_query: str, db_sample: pd.DataFrame) -> str:
|
|
| 142 |
|
| 143 |
REGRAS OBRIGATORIAS:
|
| 144 |
- “Retorne os resultados da consulta em formato legível, sem incluir o texto da query SQL.”
|
| 145 |
-
|
| 146 |
-
IMPORTANTE:
|
| 147 |
-
- Responda SEMPRE em português brasileiro, independentemente do idioma da pergunta.
|
| 148 |
-
- Mantenha suas respostas consistentes, claras e objetivas.
|
| 149 |
-
- O nome da tabela é "tabela".
|
| 150 |
-
- Realize TODOS os cálculos aritméticos diretamente dentro da query SQL.
|
| 151 |
-
- NÃO realize cálculos fora da query.
|
| 152 |
-
- Use funções SQL como AVG, SUM, COUNT, MAX, MIN, CASE WHEN, etc., conforme necessário.
|
| 153 |
"""
|
| 154 |
"\n\n"
|
| 155 |
f"**PERGUNTA DO USUÁRIO**:\n{user_query}"
|
|
|
|
| 142 |
|
| 143 |
REGRAS OBRIGATORIAS:
|
| 144 |
- “Retorne os resultados da consulta em formato legível, sem incluir o texto da query SQL.”
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
"""
|
| 146 |
"\n\n"
|
| 147 |
f"**PERGUNTA DO USUÁRIO**:\n{user_query}"
|