Xingyao Wang
4db4a84e2e
Simply Jupyter execution via heredoc ( #1728 )
...
* simply jupyter execution via heredoc
* make sure /tmp always exists
* add integration test for jupyter exec
2024-05-13 04:57:06 +08:00
Boxuan Li
49de262577
opendevin/core/main.py: Graceful shutdown ( #1731 )
...
* opendevin/core/main.py: Graceful shutdown
* Shutdown controller at exit
* Update opendevin/core/main.py
---------
Co-authored-by: Yufan Song <33971064+yufansong@users.noreply.github.com >
Co-authored-by: Graham Neubig <neubig@gmail.com >
2024-05-12 13:56:35 -07:00
Engel Nyst
e5f1dbf5e7
Move json utility to the custom json parsing; apply it to the monologue-like agents ( #1740 )
2024-05-12 13:39:38 -04:00
Aleksandar
f861db6675
Enhance API Documentation ( #1727 )
...
* Add Server Interaction Guide
* Fix style
* Remove the server_interaction.md and add docstrings doc
* Remove very specific setup for the token from the doc
* Fix mdx expression failure
* Fix all examples
* Fix missing empty args {}
* Fix the run example to have and background
2024-05-12 08:58:01 -07:00
Robert Brennan
efd0d61e70
Fix the tests ( #1737 )
...
* fix config patching
* revert tests
2024-05-12 11:02:10 -04:00
Robert Brennan
d94b575cd4
Sandbox: adjust whitespace processing ( #1474 )
...
* adjust whitespace processing
* revert ssh_box
* adjust tests
* change lstrip to remove prefix
* run tests on exec box
* remove lstrips
* fix multiline
* remove stripping logic
* fix single multiline commands
* fix imports
* fix multiline echo
* better command splitter
* fix merge issue
2024-05-12 14:41:50 +00:00
Xingyao Wang
8bfae8413e
Support passing sandbox as argument and iteration reminder ( #1730 )
...
* support custom sandbox;
add iteration_reminder
* Enable iteration reminder in CodeActAgent integration test
* Don't remove numbers when comparing prompts
* Update tests/integration/README.md
---------
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
2024-05-12 07:57:33 +00:00
Xingyao Wang
1d58917bc8
remove swe-bench build workflow ( #1726 )
2024-05-12 06:56:20 +08:00
Jens Roland
6a18cafa40
docs: fixed typo in launch command ( #1724 )
...
The argument `--add-host host.docker.internal:host-gateway` should be `--add-host host.docker.internal=host-gateway` (with an `=` character).
Solves `Error creating controller: Could not establish connection to host` errors.
Co-authored-by: Jim Su <jimsu@protonmail.com >
2024-05-11 17:48:45 -04:00
Jim Su
3abdc231c4
Highlight currently selected file ( #1725 )
...
* Highlight selected file
* Don't recompute context on every render
* Fix lint errors
2024-05-12 00:36:55 +03:00
Natu Lauchande
c997289eb7
Update troubleshooting Docker error in a Mac ( #1722 )
2024-05-11 19:38:00 +00:00
Boxuan Li
316a772849
CodeAct: Emphasize open before edit ( #1709 )
...
Co-authored-by: Yufan Song <33971064+yufansong@users.noreply.github.com >
2024-05-11 12:20:14 -07:00
Temo
93fe31a490
Updated poetry.lock again ( #1721 )
2024-05-11 18:06:41 +00:00
Engel Nyst
98adbf54ec
Small refactoring ( #1614 )
...
* move MemoryCondenser, LongTermMemory, json, out of the monologue
* PlannerAgent and Microagents use the custom json.loads/dumps
* Move short term history out of monologue agent...
* move memory in their package
* add __init__
2024-05-11 17:15:19 +02:00
mzyddd
5277c43c49
refactor : delete useless messages.json messages ( #1706 )
0.5.3
2024-05-11 11:59:05 +00:00
Xia Zhenhua
4477f08e6d
fix: a critical bug of sharing _subscribers and _events between class not obj instance, when multi agent running(several browsers opened at the same time), the state management will be messed up. ( #1713 )
2024-05-11 11:26:41 +00:00
மனோஜ்குமார் பழனிச்சாமி
24e61ead65
Fixed bool config having int value ( #1708 )
...
like DEBUG=1
2024-05-11 09:46:11 +00:00
Xia Zhenhua
5244a34a1d
feat: skip deploy-decs in folk repos. ( #1703 )
...
Co-authored-by: aaren.xzh <aaren.xzh@antfin.com >
2024-05-11 01:44:25 -07:00
Boxuan Li
bde12f4a09
CodeActAgent: Fix hack for multiple edits in same command ( #1684 )
...
* Fix edit hack for multiple edits in same command
This PR changes ([\s\S]*) to ([\s\S]*?) to make the capturing
group non-greedy. This change ensures that the regex captures
the smallest set of characters that extends up to the first
end_of_edit it encounters, rather than extending across multiple
edit commands.
Without the fix, a bash command consisting of multiple edits
would be corrupt and lead to unexpected edit results.
2024-05-10 23:32:09 -07:00
Graham Neubig
1787a7304e
Disable ChromaDB telemetry ( #1699 )
2024-05-11 01:25:19 +02:00
Xingyao Wang
33e141e626
fix: do not raise error when failed to delete ~/.bashrc ( #1701 )
2024-05-11 00:08:44 +02:00
mzyddd
e1a1c9a00c
perf : optimizations to send event logging performance ( #1635 )
...
Co-authored-by: mengziyi.mzy <mengziyi.mzy@alibaba-inc.com >
2024-05-10 23:54:22 +02:00
மனோஜ்குமார் பழனிச்சாமி
b4cdebec06
Ignore any warnings LiteLLM might emit on import ( #1687 )
2024-05-10 16:42:08 -04:00
Robert Brennan
1cbb16cfc2
allow running app as root ( #1651 )
...
* allow running app as root
* better entrypoint mgmt
* add nosetup option
* remove comments
* create docker group if it doesnt exist
* better docker group mgmt
* cast bools better
* fix playwright
* fix playwright for root
* fix root source ~/.bashrc hangs by create clean bashrc
---------
Co-authored-by: Xingyao Wang <xingyao6@illinois.edu >
2024-05-10 20:41:25 +00:00
Xia Zhenhua
968b4d71bd
feat: auto clean inactive sessions for a long time. ( #1644 )
...
* feat: auto clean inactive sessions for a long time.
* feat: new delegate stuck check.
---------
Co-authored-by: aaren.xzh <aaren.xzh@antfin.com >
2024-05-10 20:09:36 +00:00
Bart Shappee
78cd2e5b47
fix: Issue where CodeAct agent was trying to log cost on local llm and throwing Undefined Model execption out of litellm ( #1666 )
...
* fix: Issue where CodeAct agent was trying to log cost on local llm and throwing Undefined Model execption out of litellm
* Review Feedback
* Missing None Check
* Review feedback and improved error handling
---------
Co-authored-by: Robert Brennan <accounts@rbren.io >
2024-05-10 13:57:37 -04:00
மனோஜ்குமார் பழனிச்சாமி
18e6b0b2d0
Removed logging output of plugin installation ( #1690 )
...
* Removed logging output of plugin installation
2024-05-10 16:09:49 +00:00
Zhou Hang
0cf94a2718
feat: add continue button ( #1508 )
...
* feat: add-continue-button
* feat: control the visibility of continue button
* feat: reset input status
* feat: update continue button UI
* feat: add test
* fix: fix lint issues
* feat: update ui
* feat: remove continue button to the parent and update icon
* fix: remove empty file
---------
Co-authored-by: sp.wack <83104063+amanape@users.noreply.github.com >
2024-05-10 10:26:39 +00:00
Jim Su
f8d4b1ab0d
Use generic types ( #1680 )
2024-05-10 04:21:22 +02:00
Engel Nyst
a17308108c
make runnable a class var ( #1679 )
2024-05-09 22:12:19 -04:00
Xia Zhenhua
10b971c612
feat: new delegate stuck check. ( #1677 )
...
Co-authored-by: aaren.xzh <aaren.xzh@antfin.com >
2024-05-09 21:06:20 -04:00
Robert Brennan
e63910263c
cast bools better ( #1678 )
2024-05-09 21:05:15 -04:00
Robert Brennan
96151d9147
fix e2b env ( #1670 )
2024-05-09 23:14:44 +00:00
Aleksandar
657b177b4e
Default to less expensive gpt-3.5-turbo model ( #1675 )
2024-05-09 19:11:27 -04:00
Ammar Ladhani
564739d1db
Removes upper-case 'List' imports from typing and replaces them with lower-case 'list' ( #1676 )
2024-05-09 19:05:46 -04:00
Robert Brennan
26d82841d5
Create runtime implementation ( #1626 )
...
* first pass at moving runtime
* fix import
* remove github refs
* remove unnecessary import
* remove unnecessary import
* add e2b
* refactor read and write file ops
* remove github test
* rm action
* revert permissions
* regenerate tests
* re-delete file operations
* regenerate integration tests
* Update opendevin/runtime/runtime.py
Co-authored-by: Graham Neubig <neubig@gmail.com >
* fix ref
* add docs
* remove logspam
---------
Co-authored-by: Graham Neubig <neubig@gmail.com >
2024-05-09 19:04:49 -04:00
Engel Nyst
446eaec1e6
Refactor config to dataclasses ( #1552 )
...
* mypy is invaluable
* fix config, add test
* Add new-style toml support
* add singleton, small doc fixes
* fix some cases of loading toml, clean up, try to make it clearer
* Add defaults_dict for UI
* allow config to be mutable
error handling
fix toml parsing
* remove debug stuff
* Adapt Makefile
* Add defaults for temperature and top_p
* update to CodeActAgent
* comments
* fix unit tests
* implement groups of llm settings (CLI)
* fix merge issue
* small fix sandboxes, small refactoring
* adapt LLM init to accept overrides at runtime
* reading config is enough
* Encapsulate minimally embeddings initialization
* agent bug fix; fix tests
* fix sandboxes tests
* refactor globals in sandboxes to properties
2024-05-09 22:48:29 +02:00
மனோஜ்குமார் பழனிச்சாமி
73693ba416
Mentioned LLM logs directory ( #1587 )
...
* Update bug_template.yml
* Pythonized
* updated configs type
* updated opendevin_logger
* fixed bool config
* fixed bool config
2024-05-09 13:31:14 -04:00
Frank Xu
ae7f208d51
Fix browser env leak after resetting agent ( #1589 )
...
* add more teardown
* add browser process teardown logic in agent controller
* remove testing code
---------
Co-authored-by: Robert Brennan <accounts@rbren.io >
2024-05-09 13:17:16 -04:00
Boxuan Li
a60a6a40d6
Only regenerate integratio tests for failed ones ( #1661 )
2024-05-09 09:32:00 -04:00
Arno.Edwards
06aae67fed
feat(makefile): add capability to skip Docker image pull ( #1664 )
2024-05-09 09:06:26 -04:00
Xia Zhenhua
4a72e83938
fix: AgentThinkAction deleted caused bug. ( #1662 )
...
* fix: AgentThinkAction deleted caused bug.
* fix: AgentThinkAction deleted caused bug in plannerAgent.
* fix: plan content-not-changed caused frontend crash bug.
---------
Co-authored-by: aaren.xzh <aaren.xzh@antfin.com >
2024-05-09 09:04:02 -04:00
808vita
780db1e906
Rename CodeOfConduct.md to CODE_OF_CONDUCT.md ( #1665 )
2024-05-09 10:38:24 +00:00
Xingyao Wang
21fe8dc1eb
Align codeact with swebench eval ( #1612 )
...
* align codeact agent with the slight adjustment on eval branch
* update integration test for new prompt
* Regenerate test artifacts for CodeActAgent
---------
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
2024-05-09 00:42:07 -07:00
Robert Brennan
45d1b6969a
Allow setting env vars inside sandboxes ( #1652 )
...
* add env to all sandboxes
* add unit tests
2024-05-09 15:39:31 +08:00
Shimada666
73e180638e
feat: support for stopping automatic scrolling to bottom and add "to bottom" button ( #1656 )
...
Co-authored-by: sp.wack <83104063+amanape@users.noreply.github.com >
2024-05-09 06:23:32 +00:00
Robert Brennan
09e8b11451
Update integration test instructions ( #1645 )
...
* Update README.md
* Update tests/integration/README.md
* Apply suggestions from code review
---------
Co-authored-by: Boxuan Li <liboxuan@connect.hku.hk >
2024-05-09 02:56:33 +00:00
Ikko Eltociear Ashimine
4cc462cc18
Update codeact_agent.py ( #1653 )
...
splited -> splitted
2024-05-08 13:55:40 -04:00
Boxuan Li
af5bdf67aa
Add AgentRejectAction across multiple modules ( #1615 )
...
* Add AgentRejectAction across multiple modules
This commit introduces the AgentRejectAction class and integrates it across various modules and actions. It includes updates to READMEs, action definitions, and agent controllers to handle the new 'reject' action. This functionality will allow agents to properly signal task rejection.
* Fix unit test
* Remove wrong generates attributes from a few micro-agents
2024-05-08 10:03:14 -07:00
AJ (@techfren)
c2868985e4
add sandbox_user_id to run command which is neccesary ( #1641 )
2024-05-08 12:20:31 +00:00