Anush Kumar V
8f76587e5c
docs: updated docstrings using ruff's autofix feature ( #2923 )
...
* Updated documentation using ruff's autofix feature
* Updated pyproject.toml to include docstring validations
* Updated documentation using ruff's autofix feature
* Updated pyproject.toml to include docstring validations
* Updated docstrings using ruff's autfix feature
* Deleted opendevin/runtime/utils/soource.py, Keeping in sync with main
---------
Co-authored-by: Graham Neubig <neubig@gmail.com >
2024-07-16 01:35:33 +00:00
adragos
5f61885e44
feat: Implement user confirmation mode, request confirmation when running bash/python code in this mode ( #2774 )
...
* [feat] confirmation mode for bash actions
* feat: Add modal setting for Confirmation Mode
* fix: frontend tests for confirmation mode switch
* fix: add missing CONFIRMATION_MODE value in SettingsModal.test.tsx
* fix: update test to integrate new setting
* feat: Implement user confirmation for running bash/python code
* fix: don't display rejected actions
* fix: linting, rename/refactor based on feedback
* fix: add property only to commands, pass serialization tests
* fix: package-lock.json, lint test_action_serialization.py
* test: add is_confirmed to integration test outputs
---------
Co-authored-by: Mislav Balunovic <mislav.balunovic@gmail.com >
2024-07-11 14:57:21 +03:00
Engel Nyst
d37b2973b2
Refactoring: event stream based agent history ( #2709 )
...
* add to event stream sync
* remove async from tests
* small logging spam fix
* remove swe agent
* arch refactoring: use history from the event stream
* refactor agents
* monologue agent
* ruff
* planner agent
* micro-agents
* refactor history in evaluations
* evals history refactoring
* adapt evals and tests
* unit testing stuck
* testing micro agents, event stream
* fix planner agent
* fix tests
* fix stuck after rename
* fix test
* small clean up
* fix merge
* fix merge issue
* fix integration tests
* Update agenthub/dummy_agent/agent.py
* fix tests
* rename more clearly; add todo; clean up
2024-07-07 21:04:23 +00:00
மனோஜ்குமார் பழனிச்சாமி
adf1a0d556
Bugfix: add missing f-string for logging debug message in task creation ( #2836 )
2024-07-07 17:36:19 +02:00
Xingyao Wang
a47713ecb0
[Arch] Remove supports for Background Commands ( #2803 )
...
* depracting docker exec box
* remove doc exec from workflow and docs
* remove background commands
* Update tests/unit/test_sandbox.py
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
* replace for-loop with assignment
* fix integration tests
* fix integration tests for shell script
* fix integration tests
* increase max iter to fix some monologue agent issue
* fix integration test again
* fix integration tests (seems related to run_user issue)
---------
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com >
2024-07-06 03:38:05 +08:00
Leo
c2f557edde
refactor: multiple code improvements ( #2771 )
2024-07-04 18:51:22 +08:00
Boxuan Li
8dae1f9307
Bypass MAX_ITERATIONS and MAX_BUDGET_PER_TASK on web GUI ( #2697 )
...
Closes #1493
Introduced TRAFFIC_CONTROL_STATE to allow OpenDevin to switch between normal traffic limiting mode and temporarily disabled mode.
2024-06-30 13:19:45 -07:00
Engel Nyst
2d9bb56763
Add ability to restore the cli session (optional) ( #2699 )
...
* add ability to restore the main session
* add quick log
* rename to cli session
2024-06-30 06:56:55 +00:00
Boxuan Li
e45b311c35
Remove MAX_CHARS traffic control ( #2694 )
...
* Remove MAX_CHARS limiting
* More cleanup
2024-06-29 12:59:41 -07:00
Engel Nyst
b2307db010
Document, rename Agent* exceptions to LLM* ( #2508 )
...
* rename "Agent" exceptions to LLM*, document
* LLMResponseError
2024-06-18 22:30:22 +00:00
Boxuan Li
9b371b1b5f
Refactor agent delegation and tweak micro agents ( #1910 )
...
This PR fixes #1897 . In addition, this PR fixes and tweaks a few micro-agents.
For the first time, I am able to use ManagerAgent to complete test_write_simple_script and test_edits tasks in integration tests, so this PR also adds ManagerAgent as part of integration tests. test_write_simple_script involves delegation to CoderAgent while test_edits involves delegation to TypoFixerAgent.
Also for the first time, I am able to use DelegateAgent to complete test_write_simple_script and test_edits tasks in integration tests, so this PR also adds DelegateAgent as part of integration tests. It involves delegation to StudyRepoForTaskAgent, CoderAgent and VerifierAgent.
This PR is a blocker for #1735 and likely #1945 .
2024-05-28 20:01:16 -07:00
Robert Brennan
ea9c785075
fix session state after resuming ( #1999 )
...
* fix state resuming
* fix session reconnection
* fix lint
2024-05-23 11:47:36 -04:00
Engel Nyst
b9a5be2569
Add ruff for shared mutable defaults (B) ( #1938 )
...
* Add ruff for shared mutable defaults (B)
* Apply B006, B008 on current files, except fast API
* Update agenthub/SWE_agent/prompts.py
Co-authored-by: Graham Neubig <neubig@gmail.com >
* fix unintended behavior change
* this is correct, tell Ruff to leave it alone
---------
Co-authored-by: Graham Neubig <neubig@gmail.com >
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
2024-05-22 20:06:00 -07:00
Yufan Song
d18e6c85a0
feat: add metrics related to cost for better observability ( #1944 )
...
* add metrics for total_cost
* make lint
* refact codeact
* change metrics into llm
* add costs list, add into state
* refactor log completion
* refactor and test others
* make lint
* Update opendevin/core/metrics.py
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
* Update opendevin/llm/llm.py
Co-authored-by: Xingyao Wang <xingyao6@illinois.edu >
* refactor
* add code
---------
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
Co-authored-by: Xingyao Wang <xingyao6@illinois.edu >
2024-05-22 08:53:31 +00:00
Robert Brennan
110b878dd9
fix up serialization and deserialization of events ( #1850 )
...
* fix up serialization and deserialization of events
* fix tests
* remove prints
* fix test
* regenerate tests
* add try blocks
2024-05-17 01:09:15 +00:00
Xingyao Wang
d1fd277ad4
Support return final task states for evaluation ( #1755 )
...
* support returning states at the end of controller
* remove return None
* fix issue of overriding final state
* return the final state on close
* merge AgentState with State
* fix integration test
* add ChangeAgentStateAction to history in attempt to fix integration
* add back set agent state
* update tests
* update tests
* directly return get state
* add back the missing .close()
* Update typo in opendevin/core/main.py
---------
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
2024-05-15 03:43:01 +00:00
Robert Brennan
82a798990c
refactor remind_iterations ( #1760 )
...
* refactor remind_iterations
* regenerate tests
* concatenate iteration message
* fix merge issues
* update integration tests
2024-05-14 08:27:12 -04: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
Jim Su
f8d4b1ab0d
Use generic types ( #1680 )
2024-05-10 04:21:22 +02:00
Robert Brennan
fadcdc117e
Migrate to new folder structure in preparation for refactor ( #1531 )
...
* fix up folder structure
* update docs
* fix imports
* fix imports
* fix imoprt
* fix imports
* fix imports
* fix imports
* fix test import
* fix tests
* fix main import
2024-05-02 17:01:54 +00:00