A programming framework for agentic AI
fix mathproxyagent bug (#1124)
Yiran Wuac7c4138e78c
diff --git a/flaml/autogen/agent/math_user_proxy_agent.py b/flaml/autogen/agent/math_user_proxy_agent.pyindex 3514478af..bcd18977b 100644--- a/flaml/autogen/agent/math_user_proxy_agent.py+++ b/flaml/autogen/agent/math_user_proxy_agent.py@@ -314,6 +314,9 @@ class MathUserProxyAgent(UserProxyAgent):output, is_success = self._execute_one_python_code(code)elif lang == "wolfram":output, is_success = self._execute_one_wolfram_query(code)+ else:+ output = "Error: Unknown language."+ is_success = Falsereply += output + "\n"if not is_success: