From e88402d4f467f1cdbcea78ecd000759f31db6ac5 Mon Sep 17 00:00:00 2001 From: Adam Fourney Date: Mon, 11 Dec 2023 22:35:12 -0800 Subject: [PATCH 1/2] Refined the user_proxy description in cases where it is fully automated. Too often, other agents assumed it could answer on behalf of a user in human_input=NEVER mode, but it cannot. --- autogen/agentchat/user_proxy_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen/agentchat/user_proxy_agent.py b/autogen/agentchat/user_proxy_agent.py index 4d053f67d91..401558be812 100644 --- a/autogen/agentchat/user_proxy_agent.py +++ b/autogen/agentchat/user_proxy_agent.py @@ -20,7 +20,7 @@ class UserProxyAgent(ConversableAgent): DEFAULT_USER_PROXY_AGENT_DESCRIPTIONS = { "ALWAYS": "An attentive HUMAN user who can answer questions about the task, and can perform tasks such as running Python code or inputting command line commands at a Linux terminal and reporting back the execution results.", "TERMINATE": "A user that can run Python code or input command line commands at a Linux terminal and report back the execution results.", - "NEVER": "A user that can run Python code or input command line commands at a Linux terminal and report back the execution results.", + "NEVER": "A user that CANNOT WRITE CODE, or answer other questions, but CAN EXECUTE PYTHON CODE and CAN INPUT COMMAND LINE sh COMMANDS at a Linux terminal, and REPORT BACK THE EXECUTION RESULTS.", } def __init__( From 71c64206512da60e26cae95a27fcb00b3bf60ecd Mon Sep 17 00:00:00 2001 From: Adam Fourney Date: Tue, 12 Dec 2023 20:01:03 -0800 Subject: [PATCH 2/2] Refined prompt further as per discussion. --- autogen/agentchat/user_proxy_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen/agentchat/user_proxy_agent.py b/autogen/agentchat/user_proxy_agent.py index 401558be812..97af776aa7a 100644 --- a/autogen/agentchat/user_proxy_agent.py +++ b/autogen/agentchat/user_proxy_agent.py @@ -20,7 +20,7 @@ class UserProxyAgent(ConversableAgent): DEFAULT_USER_PROXY_AGENT_DESCRIPTIONS = { "ALWAYS": "An attentive HUMAN user who can answer questions about the task, and can perform tasks such as running Python code or inputting command line commands at a Linux terminal and reporting back the execution results.", "TERMINATE": "A user that can run Python code or input command line commands at a Linux terminal and report back the execution results.", - "NEVER": "A user that CANNOT WRITE CODE, or answer other questions, but CAN EXECUTE PYTHON CODE and CAN INPUT COMMAND LINE sh COMMANDS at a Linux terminal, and REPORT BACK THE EXECUTION RESULTS.", + "NEVER": "A computer terminal that performs no other action than running Python scripts (provided to it quoted in ```python code blocks), or sh shell scripts (provided to it quoted in ```sh code blocks).", } def __init__(