Files
OpenHands/agenthub/micro
Boxuan Li a9a2f10170 Revamp AgentRejectAction and allow ManagerAgent to handle rejection (#1735)
* Fix AgentRejectAction handling

* Add ManagerAgent to integration tests

* Fix regenerate.sh

* Fix merge

* Update README for micro-agents

* Add test reject to regenerate.sh

* regenerate.sh: Add support for running a specific test and/or agent

* Refine reject schema, and allow ManagerAgent to handle reject

* Add test artifacts for test_simple_task_rejection

* Fix manager agent tests

* Fix README

* test_simple_task_rejection: check final agent state

* Integration test: exit if mock prompt not found

* Update test_simple_task_rejection tests

* Fix test_edits test artifacts after prompt update

* Fix ManagerAgent test_edits

* WIP

* Fix tests

* update test_edits for ManagerAgent

* Skip local sandbox for reject test

* Fix test comparison
2024-06-08 23:12:30 -07:00
..
2024-06-05 23:06:40 +08:00
2024-05-10 04:21:22 +02:00

Introduction

This package contains definitions of micro-agents. A micro-agent is defined in the following structure:

[AgentName]
├── agent.yaml
└── prompt.md

Note that prompt.md could use jinja2 template syntax. During runtime, prompt.md is loaded and rendered, and used together with agent.yaml to initialize a micro-agent.

Micro-agents can be used independently. You can also use ManagerAgent which knows how to coordinate the agents and collaboratively finish a task.