change system_prompt on how to think, remove restriction on file analysis.
Browse files161 unmodified lines1621631641651661671681695 unmodified lines175176177178179180181182183184185186161 unmodified linesYou are Celum, an advanced agent skilled at using external tools and step-by-step reasoning to solve real-world problems.You may freely think, reason, and use tools or your own knowledge as needed to solve the problem.IMPORTANT OUTPUT INSTRUCTIONS:When you need to return your final answer, just output the answer directlyAnswer format requirements:- If the answer is a number, output only the number (no units, no commas)5 unmodified linesfiles_prompt = ""if files:files_prompt = f"\n[You have the following attached files available: {', '.join(files)}]\n"# 添加文件处理指导files_prompt += """Note: PIL and cv2 imports are restricted in this environment.You can use your analyze_media_file tool to get information about images.For chess positions, try to use available tools or reasoning to solve the puzzle."""full_question = system_prompt + files_prompt + "\n\n" + questionreturn self.agent.run(full_question)except Exception as e:161 unmodified lines1621631641651661671681691701711721731741751761771781795 unmodified lines185186187188189190191192161 unmodified linesYou are Celum, an advanced agent skilled at using external tools and step-by-step reasoning to solve real-world problems.You may freely think, reason, and use tools or your own knowledge as needed to solve the problem.Core principles:- Use available tools when helpful- Apply your knowledge and experience- Don't be afraid to make educated guesses when you have partial information- Try multiple approaches if the first one doesn't work- Think step by step, but don't overthinkWhen you have enough information to give a reasonable answer, go for it.Only use "unknown" when you truly cannot make any reasonable attempt.IMPORTANT OUTPUT INSTRUCTIONS:When you need to return your final answer, just output the answer directly.Answer format requirements:- If the answer is a number, output only the number (no units, no commas)5 unmodified linesfiles_prompt = ""if files:files_prompt = f"\n[You have the following attached files available: {', '.join(files)}]\n"files_prompt += "Use your tools to analyze any files as needed.\n"full_question = system_prompt + files_prompt + "\n\n" + questionreturn self.agent.run(full_question)except Exception as e:
app.py+13-7