Browse Source

[Fix] Fixed the inputs to the ManagerAgent (#4427)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Xingyao Wang <xingyao@all-hands.dev>
Co-authored-by: mamoodi <mamoodiha@gmail.com>
Co-authored-by: tofarr <tofarr@gmail.com>
Co-authored-by: Robert Brennan <contact@rbren.io>
Alejandro Cuadron Lafuente 1 year ago
parent
commit
bb416009c5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      openhands/agenthub/micro/manager/prompt.md

+ 2 - 1
openhands/agenthub/micro/manager/prompt.md

@@ -1,6 +1,7 @@
 # Task
 You are in charge of accomplishing the following task:
-{{ latest_user_message }}
+{% set goal = latest_user_message if latest_user_message is not none else state.inputs.task %}
+{{ goal }}
 
 In order to accomplish this goal, you must delegate tasks to one or more agents, who
 can do the actual work. A description of each agent is provided below. You MUST