change system_prompt on how to think, remove restriction on file analysis.
Browse files161 unmodified lines1621631641651661671681691701711721731741751661761771781795 unmodified lines185186187178179180181182183188189190191192161 unmodified lines You 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 overthink When 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 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 lines files_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. """ files_prompt += "Use your tools to analyze any files as needed.\n" full_question = system_prompt + files_prompt + "\n\n" + question return self.agent.run(full_question) except Exception as e:app.py+13-7