Commit Graph

18 Commits (f0a5250da5d8893ba8ec7318384d4e2996f98df4)

Author SHA1 Message Date
Erik Peterson 0594ba33a2
Pass agent to commands instead of config (#4645)
* Add config as attribute to Agent, rename old config to ai_config

* Code review: Pass ai_config

* Pass agent to commands instead of config

* Lint

* Fix merge error

* Fix memory challenge a

---------

Co-authored-by: Nicholas Tindle <nick@ntindle.com>
Co-authored-by: merwanehamadi <merwanehamadi@gmail.com>
2023-06-10 15:48:50 -07:00
Nicholas Tindle acfd966aa4
Pass Configs to Commands and remove CFG = Config() in the commands/ folder (#4328)
* feat: pass config to call_ai_functions in coimmands

* feat: config for read_audio_from_file

* feat: file operations cfg

NOTE: we replaced the CFG in the command enable with TRUE b/c not sure how to handle this yet

* feat: git command conversion

* feat: google search

* feat: image generation

* feat: extract cfg from browser commands

* feat: remove cfg from execute code commands

* fix: file operation related tests

* fix: linting

* fix: tests for read_audio

* fix: test error

* feat: update cassettes

* fix: linting

* fix: test typechecking

* fix: google_search errors if unexpected kw arg is passed

* fix: pass config param to google search test

* fix: agent commands were broken + cassettes

* fix: agent test

* feat: cassettes

* feat: enable/disable logic for commands

* fix: some commands threw errors

* feat: fix tests

* Add new cassettes

* Add new cassettes

* ci: trigger ci

* Update autogpt/commands/execute_code.py

Co-authored-by: Reinier van der Leer <github@pwuts.nl>

* fix prompt

* fix prompt + rebase

* add config remove useless imports

* put back CFG just for download file

* lint

* The signature should be mandatory in the decorator

* black isort

* fix: remove the CFG

* fix: non typed arg

* lint: type some args

* lint: add types for libraries

* Add new cassettes

* fix: windows compatibility

* fix: add config access to decorator

* fix: remove twitter mention

* DDGS search works at 3.0.2 version

* ci: linting

---------

Co-authored-by: Auto-GPT-Bot <github-bot@agpt.co>
Co-authored-by: merwanehamadi <merwanehamadi@gmail.com>
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
Co-authored-by: kinance <kinance@gmail.com>
2023-05-26 08:39:25 -07:00
Steven Baumann 9c6494aca7
Fix `clone_repository` to conform to URL validation (#3150)
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-04-29 14:57:48 +02:00
Eddie Cohen 40a75c804c
Validate URLs in web commands before execution (#2616)
Co-authored-by: Reinier van der Leer <github@pwuts.nl>
2023-04-24 12:33:44 +02:00
James Collins dcd6aa912b
Add workspace abstraction (#2982)
* Add workspace abstraction

* Remove old workspace implementation

* Extract path resolution to a helper function

* Add api key requirements to new tests
2023-04-23 14:36:04 -05:00
lengweiping1983 63c2182870
Fix typo's (#2735)
Co-authored-by: lengweiping <lengweiping@vinotar.com>
2023-04-21 06:09:17 +02:00
BillSchumacher d7679d755f
Fix all commands and cleanup 2023-04-19 18:17:04 -05:00
BillSchumacher 085842d43c
Merge branch 'master' of https://github.com/BillSchumacher/Auto-GPT into plugin-support 2023-04-18 18:44:40 -05:00
Merwane Hamadi cf9a94a8b6 isort implemented 2023-04-17 13:42:01 -07:00
H-jj-R 8dadf79614 Spelling fixes 2023-04-17 13:25:49 +01:00
BillSchumacher 03c137741a
Merge branch 'master' of https://github.com/BillSchumacher/Auto-GPT into plugin-support 2023-04-16 22:13:37 -05:00
BillSchumacher c110f3489d
Finish integrating command registry 2023-04-16 21:51:36 -05:00
Chris Cheney 15059c2090 ensure git operations occur in the working directory 2023-04-17 00:31:54 +01:00
Yue Liu ca47a58a5d Catch exception of repository clone 2023-04-16 13:47:13 +08:00
BillSchumacher 11d6dabe37
Quality update 2023-04-15 14:55:13 -05:00
Richard Beales c8c4e2b59c Fix invalid config import in git_operations 2023-04-15 19:28:48 +01:00
Eddie Cohen 71abd6f2e4 linting 2023-04-15 11:15:18 -04:00
Eddie Cohen 99c4f93ee3 fix rebasing 2023-04-15 10:59:40 -04:00