Boxuan Li
8bce806dce
Tweak prompts of ManagerAgent and CommitWriterAgent ( #2609 )
...
* Tweak prompts of ManagerAgent and CommitWriterAgent
* Fix prompts
2024-06-24 00:14:28 -07:00
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
Xia Zhenhua
76abca361c
feat: simplify state.history with to_memory call in micro-agent. Or the call to LLM may exceed the token limit. ( #1806 )
...
* feat: simplify state.history with to_memory call in micro-agent.
* feat: merge master and replace to_memory with event_to_memory.
---------
Co-authored-by: aaren.xzh <aaren.xzh@antfin.com >
2024-05-15 14:47:37 +02:00
Robert Brennan
b028bd46bb
Use messages to drive tasks ( #1688 )
...
* finish is working
* start reworking main_goal
* remove main_goal from microagents
* remove main_goal from other agents
* fix issues
* revert codeact line
* make plan a subclass of task
* fix frontend for new plan setup
* lint
* fix type
* more lint
* fix build issues
* fix codeact mgs
* fix edge case in regen script
* fix task validation errors
* regenerate integration tests
* fix up tests
* fix sweagent
* revert codeact prompt
* update integration tests
* update integration tests
* handle loading state
* Update agenthub/codeact_agent/codeact_agent.py
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
* Update opendevin/controller/agent_controller.py
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
* Update agenthub/codeact_agent/codeact_agent.py
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
* Update opendevin/controller/state/plan.py
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
* update docs
* regenerate tests
* remove none from state type
* revert test files
* update integration tests
* rename plan to root_task
* revert plugin perms
* regen integration tests
* tweak integration script
* prettier
* fix test
* set workspace up for regeneration
* regenerate tests
* Change directory of copy
* Updated tests
* Disable PlannerAgent test
* Fix listen
* Updated prompts
* Disable planner again
* Make codecov more lenient
* Update agenthub/README.md
* Update opendevin/server/README.md
* re-enable planner tests
* finish top level tasks
* regen planner
* fix root task factory
---------
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
Co-authored-by: Xingyao Wang <xingyao6@illinois.edu >
Co-authored-by: Graham Neubig <neubig@gmail.com >
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
2024-05-13 23:14:15 +00:00
Boxuan Li
319b9ac0f3
Fix micro-agents schema bug ( #1424 )
...
* Fix micro agents definitions
* Add tests for micro agents
* Add to CI
* Revert "Add to CI"
This reverts commit 94f3b4e7c8 .
* Remove test artifacts for ManagerAgent
---------
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
2024-04-29 10:34:03 -04:00
Robert Brennan
1e95fa435d
Microagents and Delegation ( #1238 )
...
* basic microagent structure
* start on jinja
* add instructions parser
* add action instructions
* add history instructions
* fix a few issues
* fix a few issues
* fix issues
* fix agent encoding
* fix up anon class
* prompt to fix errors
* less debug info when errors happen
* add another traceback
* add output to finish
* fix math prompt
* fix pg prompt
* fix up json prompt
* fix math prompt
* fix math prompt
* fix repo prompt
* fix up repo explorer
* update lock
* revert changes to agent_controller
* refactor microagent registration a bit
* create delegate action
* delegation working
* add finish action to manager
* fix tests
* rename microagents registry
* rename fn
* logspam
* add metadata to manager agent
* fix message
* move repo_explorer
* add delegator agent
* rename agent_definition
* fix up input-output plumbing
* fix tests
* Update agenthub/micro/math_agent/agent.yaml
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
* Update agenthub/delegator_agent/prompt.py
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
* Update agenthub/delegator_agent/prompt.py
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
* remove prompt.py
* fix lint
* Update agenthub/micro/postgres_agent/agent.yaml
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
* Update agenthub/micro/postgres_agent/agent.yaml
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
* fix error
---------
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
2024-04-24 17:46:14 -04:00