Update app.py
Browse files28 unmodified lines29303132333435363738394041423233343 unmodified lines383940414243444546474849525051525328 unmodified lines model=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 lines else: print(f"{self.agent_name} received question: {question[:80]}...") try: # system prompt + question system_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 + question return self.agent.run(question) return self.agent.run(full_question) except Exception as e: return f"[{self.agent_name} Error: {e}]" app.py+10-12