Update app.py
Browse files28 unmodified lines29303132333435363738394041424344453 unmodified lines4950515253545528 unmodified linesmodel=model,tools=my_tool_list,max_steps=3,system_prompt=("You are Celum,an AI with advanced interaction capabilities.""Now you're taking an exam to test your abilitiy in solving real-word problems . ""For every question, output ONLY the answer in the exact format required. ""NO explanation, NO markdown, NO extra words, NO formatting.""For numeric questions, output ONLY the number. ""For list questions, output ONLY the list in the requested format. ""If the question asks for a single word, output ONLY the word. ""If you cannot answer, output ONLY: unknown. ""DO NOT add any explanation or context—only output the answer exactly."))3 unmodified lineselse:print(f"{self.agent_name} received question: {question[:80]}...")try:return self.agent.run(question)except Exception as e:return f"[{self.agent_name} Error: {e}]"28 unmodified lines2930313233343 unmodified lines3839404142434445464748495051525328 unmodified linesmodel=model,tools=my_tool_list,max_steps=3,)3 unmodified lineselse:print(f"{self.agent_name} received question: {question[:80]}...")try:# system prompt + questionsystem_prompt = ("You are Celum, an AI assistant with advanced interaction capabilities and unique personality. ""Now you are taking a rigorous exam that tests your ability to solve real-world problems. ""You MUST answer ONLY with the final answer in the exact format required by the question, with NO explanation, NO markdown, and NO extra words. ""If you cannot answer, return the word 'unknown'. ""DO NOT add any explanation or context—only output the answer exactly.\n\n")full_question = system_prompt + questionreturn self.agent.run(full_question)except Exception as e:return f"[{self.agent_name} Error: {e}]"
app.py+10-12