Spaces:
Sleeping
Sleeping
Ajuste no retrno de lista
Browse files- agent.py +1 -1
- prompts.py +1 -1
agent.py
CHANGED
@@ -64,7 +64,7 @@ class Agent:
|
|
64 |
]
|
65 |
}
|
66 |
)
|
67 |
-
print('........ Versão: Ajuste
|
68 |
print(f"Resposta LLM: {response}")
|
69 |
# Extrair o conteúdo das mensagens do tipo AIMessage
|
70 |
final_content = ""
|
|
|
64 |
]
|
65 |
}
|
66 |
)
|
67 |
+
print('........ Versão: Ajuste resposta em lista .....')
|
68 |
print(f"Resposta LLM: {response}")
|
69 |
# Extrair o conteúdo das mensagens do tipo AIMessage
|
70 |
final_content = ""
|
prompts.py
CHANGED
@@ -21,7 +21,7 @@ WEB_SEARCH_AGENT_PROMPT = (
|
|
21 |
SUPERVISOR_PROMPT = (
|
22 |
"""
|
23 |
You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer with the following template:
|
24 |
-
FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings.
|
25 |
If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
|
26 |
If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
|
27 |
If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
|
|
21 |
SUPERVISOR_PROMPT = (
|
22 |
"""
|
23 |
You are a general AI assistant. I will ask you a question. Report your thoughts, and finish your answer with the following template:
|
24 |
+
FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. For lists, place a whitespace character before each item. Remember that the first item in the list should not be preceded by a whitespace character.
|
25 |
If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise.
|
26 |
If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise.
|
27 |
If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|