From 658f7cd580c3c03c896b7be21c303be79eb7defe Mon Sep 17 00:00:00 2001 From: opencode Date: Mon, 23 Mar 2026 17:49:19 +0100 Subject: [PATCH] debug: aggiunge print esplicito --- ollama_agent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ollama_agent.py b/ollama_agent.py index 53c0f77..97b115d 100644 --- a/ollama_agent.py +++ b/ollama_agent.py @@ -403,11 +403,14 @@ For other questions, just answer normally without tools.""" else: user_content = str(user_message) + print(f"OLLAMA_AGENT: user_content='{user_content}'") + # Aggiungi il messaggio utente alla cronologia self.messages.append(HumanMessage(content=user_content)) # Try to detect intent directly first detected_tool = self._detect_intent(user_content) + print(f"OLLAMA_AGENT: detected_tool={detected_tool}") if detected_tool: result = self._execute_tool(detected_tool)