Spaces:
Runtime error
Runtime error
kkk
Browse files- my_tools.py +4 -1
my_tools.py
CHANGED
|
@@ -238,7 +238,10 @@ all_tools = [search_tool, scrape_tool, table_tool, code_tool, excel_tool, botani
|
|
| 238 |
# Construir descripciones de herramientas
|
| 239 |
# Cada FunctionTool tiene .name y .tool_config.description
|
| 240 |
tool_descriptions = "
|
| 241 |
-
".join([
|
|
|
|
|
|
|
|
|
|
| 242 |
|
| 243 |
# Prompt de sistema final
|
| 244 |
system_prompt = f"""Eres Alfred, un agente ReAct eficiente y preciso. Tu objetivo es responder preguntas de forma correcta.
|
|
|
|
| 238 |
# Construir descripciones de herramientas
|
| 239 |
# Cada FunctionTool tiene .name y .tool_config.description
|
| 240 |
tool_descriptions = "
|
| 241 |
+
".join([
|
| 242 |
+
f"{t.name}: {t.tool_config.description}"
|
| 243 |
+
for t in all_tools
|
| 244 |
+
])
|
| 245 |
|
| 246 |
# Prompt de sistema final
|
| 247 |
system_prompt = f"""Eres Alfred, un agente ReAct eficiente y preciso. Tu objetivo es responder preguntas de forma correcta.
|