Upload code/agentic_chat.py with huggingface_hub
Browse files165 unmodified lines166167168169170171169170171172173174175176177177178179180180181182183165 unmodified lines print(f"{CYAN} Result length: {len(pre_result)} chars{RESET}\n") if pre_result and "No results" not in pre_result and "timed out" not in pre_result: prompt = ( f"System: You are helpful assistant. Always think deeply (80+ words) and give detailed answer (150+ words).\n" f"User: {message}\n" f"Assistant:\n" f"<|user|>\n" f"{message}<|endofturn|>\n" f"<|assistant|>\n" f"<search>{message}</search>\n" f"<search_result>\n{pre_result}\n</search_result>\n" ) full_reply_text = "" else: prompt = f"System: You are helpful assistant. Always think deeply (80+ words) and give detailed answer (150+ words).\nUser: {message}\nAssistant:\n" prompt = f"<|user|>\n{message}<|endofturn|>\n<|assistant|>\n" full_reply_text = "" else: prompt = f"System: You are helpful assistant. Always think deeply (80+ words) and give detailed answer (150+ words).\nUser: {message}\nAssistant:\n" prompt = f"<|user|>\n{message}<|endofturn|>\n<|assistant|>\n" full_reply_text = "" # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
code/agentic_chat.py+5-5