From 24fa4ada612e66b23c9c6a8f3c601ddabe232ce5 Mon Sep 17 00:00:00 2001 From: egutierrez Date: Wed, 7 May 2025 00:22:43 +0200 Subject: [PATCH] feat: Update favicon path and enhance Home page content; adjust CSS for improved layout --- frontend/index.html | 2 +- .../components/Appshell/Appshell.module.css | 16 +++++----- frontend/src/components/Appshell/Appshell.tsx | 4 +-- frontend/src/components/HoloShader.tsx | 30 ++++++++++--------- frontend/src/pages/Home.page.tsx | 10 ++++++- frontend/{ => src}/public/favicon.svg | 0 src/Llms/Agente.py | 10 +++++-- 7 files changed, 45 insertions(+), 27 deletions(-) rename frontend/{ => src}/public/favicon.svg (100%) diff --git a/frontend/index.html b/frontend/index.html index fba7afc..992a270 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,7 +2,7 @@ - + { setManualActiveTab(link.label); - if (isMobile) closeMobile(); + }} className={classes.mainLink} data-active={link.label === active || undefined} @@ -154,7 +154,7 @@ import { - Logo + Logo diff --git a/frontend/src/components/HoloShader.tsx b/frontend/src/components/HoloShader.tsx index c686bef..6217ff0 100644 --- a/frontend/src/components/HoloShader.tsx +++ b/frontend/src/components/HoloShader.tsx @@ -120,20 +120,22 @@ export function MantineCardWithShader() { - - 404 - + + 404 + ); diff --git a/frontend/src/pages/Home.page.tsx b/frontend/src/pages/Home.page.tsx index b913978..a188224 100644 --- a/frontend/src/pages/Home.page.tsx +++ b/frontend/src/pages/Home.page.tsx @@ -1,10 +1,18 @@ import { AppShellWithMenu } from '../components/Appshell/Appshell'; - +import { Welcome } from '@/components/Welcome/Welcome'; export function HomePage() { return ( + + +
+

Welcome to the Home Page

+

This is the home page content.

+
+ +
); } \ No newline at end of file diff --git a/frontend/public/favicon.svg b/frontend/src/public/favicon.svg similarity index 100% rename from frontend/public/favicon.svg rename to frontend/src/public/favicon.svg diff --git a/src/Llms/Agente.py b/src/Llms/Agente.py index cc30b39..34f6afc 100644 --- a/src/Llms/Agente.py +++ b/src/Llms/Agente.py @@ -55,9 +55,13 @@ class AgenteAI: herramientas = self._obtener_descripcion_tools() if herramientas: - partes.append("Estas son tus herramientas disponibles:\n") + partes.append("Estas son tus herramientas disponibles:") partes.extend(herramientas) - partes.append("Úsalas cuando creas oportuno.\n") + partes.append( + "Cuando consideres necesario, utiliza las herramientas disponibles " + "para responder de manera más precisa o realizar tareas específicas. " + "Indica claramente qué herramienta estás utilizando y por qué." + ) partes.append(self.system_prompt) @@ -146,6 +150,8 @@ class AgenteAI: "\n\nIMPORTANTE:\n" "Si al revisar tu última respuesta y mi pregunta inicial consideras que has terminado, " "di alguna de estas frases: " + "En caso contrario, responde a la pregunta original " + "y añade información relevante que no hayas mencionado antes.\n\n" ) contexto = historial + [{"role": "user", "content": prompt_actual}]