AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Added cli tool for setting up and running the project
SwiftyOS74c46bae7a69
diff --git a/autogpts/forge/agbenchmark_config/config.json b/autogpts/forge/agbenchmark_config/config.jsonindex 8b36185562..f0b660833b 100644--- a/autogpts/forge/agbenchmark_config/config.json+++ b/autogpts/forge/agbenchmark_config/config.json@@ -1,4 +1,4 @@{- "workspace": {"input": "workspace", "output": "workspace"},+ "workspace": {"input": "agbenchmark_config/workspace", "output": "agbenchmark_config/workspace"},"host": "http://localhost:8000"}diff --git a/autogpts/forge/poetry.lock b/autogpts/forge/poetry.lockindex 22f3bd96fc..123f2b4ced 100644--- a/autogpts/forge/poetry.lock+++ b/autogpts/forge/poetry.lock@@ -1,4 +1,4 @@-# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand.+# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand.[[package]]name = "aenum"@@ -1665,58 +1665,39 @@ files = [[[package]]name = "matplotlib"-version = "3.7.3"+version = "3.8.0"description = "Python plotting package"optional = false-python-versions = ">=3.8"+python-versions = ">=3.9"files = [- {file = "matplotlib-3.7.3-cp310-cp310-macosx_10_12_universal2.whl", hash = "sha256:085c33b27561d9c04386789d5aa5eb4a932ddef43cfcdd0e01735f9a6e85ce0c"},- {file = "matplotlib-3.7.3-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:c568e80e1c17f68a727f30f591926751b97b98314d8e59804f54f86ae6fa6a22"},- {file = "matplotlib-3.7.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:7baf98c5ad59c5c4743ea884bb025cbffa52dacdfdac0da3e6021a285a90377e"},- {file = "matplotlib-3.7.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:236024f582e40dac39bca592258888b38ae47a9fed7b8de652d68d3d02d47d2b"},- {file = "matplotlib-3.7.3-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:12b4f6795efea037ce2d41e7c417ad8bd02d5719c6ad4a8450a0708f4a1cfb89"},- {file = "matplotlib-3.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78b2136cc6c5415b78977e0e8c608647d597204b05b1d9089ccf513c7d913733"},- {file = "matplotlib-3.7.3-cp310-cp310-win32.whl", hash = "sha256:122dcbf9be0086e2a95d9e5e0632dbf3bd5b65eaa68c369363310a6c87753059"},- {file = "matplotlib-3.7.3-cp310-cp310-win_amd64.whl", hash = "sha256:4aab27d9e33293389e3c1d7c881d414a72bdfda0fedc3a6bf46c6fa88d9b8015"},- {file = "matplotlib-3.7.3-cp311-cp311-macosx_10_12_universal2.whl", hash = "sha256:d5adc743de91e8e0b13df60deb1b1c285b8effea3d66223afceb14b63c9b05de"},- {file = "matplotlib-3.7.3-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:55de4cf7cd0071b8ebf203981b53ab64f988a0a1f897a2dff300a1124e8bcd8b"},- {file = "matplotlib-3.7.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ac03377fd908aaee2312d0b11735753e907adb6f4d1d102de5e2425249693f6c"},- {file = "matplotlib-3.7.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:755bafc10a46918ce9a39980009b54b02dd249594e5adf52f9c56acfddb5d0b7"},- {file = "matplotlib-3.7.3-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1a6094c6f8e8d18db631754df4fe9a34dec3caf074f6869a7db09f18f9b1d6b2"},- {file = "matplotlib-3.7.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:272dba2f1b107790ed78ebf5385b8d14b27ad9e90419de340364b49fe549a993"},- {file = "matplotlib-3.7.3-cp311-cp311-win32.whl", hash = "sha256:591c123bed1cb4b9996fb60b41a6d89c2ec4943244540776c5f1283fb6960a53"},- {file = "matplotlib-3.7.3-cp311-cp311-win_amd64.whl", hash = "sha256:3bf3a178c6504694cee8b88b353df0051583f2f6f8faa146f67115c27c856881"},- {file = "matplotlib-3.7.3-cp312-cp312-macosx_10_12_universal2.whl", hash = "sha256:edf54cac8ee3603f3093616b40a931e8c063969756a4d78a86e82c2fea9659f7"},- {file = "matplotlib-3.7.3-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:91e36a85ea639a1ba9f91427041eac064b04829945fe331a92617b6cb21d27e5"},- {file = "matplotlib-3.7.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:caf5eaaf7c68f8d7df269dfbcaf46f48a70ff482bfcebdcc97519671023f2a7d"},- {file = "matplotlib-3.7.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:74bf57f505efea376097e948b7cdd87191a7ce8180616390aef496639edf601f"},- {file = "matplotlib-3.7.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ee152a88a0da527840a426535514b6ed8ac4240eb856b1da92cf48124320e346"},- {file = "matplotlib-3.7.3-cp312-cp312-win_amd64.whl", hash = "sha256:67a410a9c9e07cbc83581eeea144bbe298870bf0ac0ee2f2e10a015ab7efee19"},- {file = "matplotlib-3.7.3-cp38-cp38-macosx_10_12_universal2.whl", hash = "sha256:259999c05285cb993d7f2a419cea547863fa215379eda81f7254c9e932963729"},- {file = "matplotlib-3.7.3-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:3f4e7fd5a6157e1d018ce2166ec8e531a481dd4a36f035b5c23edfe05a25419a"},- {file = "matplotlib-3.7.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:faa3d12d8811d08d14080a8b7b9caea9a457dc495350166b56df0db4b9909ef5"},- {file = "matplotlib-3.7.3-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.whl", hash = "sha256:336e88900c11441e458da01c8414fc57e04e17f9d3bb94958a76faa2652bcf6b"},- {file = "matplotlib-3.7.3-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:12f4c0dd8aa280d796c8772ea8265a14f11a04319baa3a16daa5556065e8baea"},- {file = "matplotlib-3.7.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1990955b11e7918d256cf3b956b10997f405b7917a3f1c7d8e69c1d15c7b1930"},- {file = "matplotlib-3.7.3-cp38-cp38-win32.whl", hash = "sha256:e78707b751260b42b721507ad7aa60fe4026d7f51c74cca6b9cd8b123ebb633a"},- {file = "matplotlib-3.7.3-cp38-cp38-win_amd64.whl", hash = "sha256:e594ee43c59ea39ca5c6244667cac9d017a3527febc31f5532ad9135cf7469ec"},- {file = "matplotlib-3.7.3-cp39-cp39-macosx_10_12_universal2.whl", hash = "sha256:6eaa1cf0e94c936a26b78f6d756c5fbc12e0a58c8a68b7248a2a31456ce4e234"},- {file = "matplotlib-3.7.3-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:0a97af9d22e8ebedc9f00b043d9bbd29a375e9e10b656982012dded44c10fd77"},- {file = "matplotlib-3.7.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:1f9c6c16597af660433ab330b59ee2934b832ee1fabcaf5cbde7b2add840f31e"},- {file = "matplotlib-3.7.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a7240259b4b9cbc62381f6378cff4d57af539162a18e832c1e48042fabc40b6b"},- {file = "matplotlib-3.7.3-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:747c6191d2e88ae854809e69aa358dbf852ff1a5738401b85c1cc9012309897a"},- {file = "matplotlib-3.7.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec726b08a5275d827aa91bb951e68234a4423adb91cf65bc0fcdc0f2777663f7"},- {file = "matplotlib-3.7.3-cp39-cp39-win32.whl", hash = "sha256:40e3b9b450c6534f07278310c4e34caff41c2a42377e4b9d47b0f8d3ac1083a2"},- {file = "matplotlib-3.7.3-cp39-cp39-win_amd64.whl", hash = "sha256:dfc118642903a23e309b1da32886bb39a4314147d013e820c86b5fb4cb2e36d0"},- {file = "matplotlib-3.7.3-pp38-pypy38_pp73-macosx_10_12_x86_64.whl", hash = "sha256:165c8082bf8fc0360c24aa4724a22eaadbfd8c28bf1ccf7e94d685cad48261e4"},- {file = "matplotlib-3.7.3-pp38-pypy38_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ebd8470cc2a3594746ff0513aecbfa2c55ff6f58e6cef2efb1a54eb87c88ffa2"},- {file = "matplotlib-3.7.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7153453669c9672b52095119fd21dd032d19225d48413a2871519b17db4b0fde"},- {file = "matplotlib-3.7.3-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:498a08267dc69dd8f24c4b5d7423fa584d7ce0027ba71f7881df05fc09b89bb7"},- {file = "matplotlib-3.7.3-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:d48999c4b19b5a0c058c9cd828ff6fc7748390679f6cf9a2ad653a3e802c87d3"},- {file = "matplotlib-3.7.3-pp39-pypy39_pp73-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:22d65d18b4ee8070a5fea5761d59293f1f9e2fac37ec9ce090463b0e629432fd"},- {file = "matplotlib-3.7.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c40cde976c36693cc0767e27cf5f443f91c23520060bd9496678364adfafe9c"},- {file = "matplotlib-3.7.3-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:39018a2b17592448fbfdf4b8352955e6c3905359939791d4ff429296494d1a0c"},- {file = "matplotlib-3.7.3.tar.gz", hash = "sha256:f09b3dd6bdeb588de91f853bbb2d6f0ff8ab693485b0c49035eaa510cb4f142e"},+ {file = "matplotlib-3.8.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:c4940bad88a932ddc69734274f6fb047207e008389489f2b6f77d9ca485f0e7a"},+ {file = "matplotlib-3.8.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a33bd3045c7452ca1fa65676d88ba940867880e13e2546abb143035fa9072a9d"},+ {file = "matplotlib-3.8.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2ea6886e93401c22e534bbfd39201ce8931b75502895cfb115cbdbbe2d31f287"},+ {file = "matplotlib-3.8.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d670b9348e712ec176de225d425f150dc8e37b13010d85233c539b547da0be39"},+ {file = "matplotlib-3.8.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:7b37b74f00c4cb6af908cb9a00779d97d294e89fd2145ad43f0cdc23f635760c"},+ {file = "matplotlib-3.8.0-cp310-cp310-win_amd64.whl", hash = "sha256:0e723f5b96f3cd4aad99103dc93e9e3cdc4f18afdcc76951f4857b46f8e39d2d"},+ {file = "matplotlib-3.8.0-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:5dc945a9cb2deb7d197ba23eb4c210e591d52d77bf0ba27c35fc82dec9fa78d4"},+ {file = "matplotlib-3.8.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f8b5a1bf27d078453aa7b5b27f52580e16360d02df6d3dc9504f3d2ce11f6309"},+ {file = "matplotlib-3.8.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6f25ffb6ad972cdffa7df8e5be4b1e3cadd2f8d43fc72085feb1518006178394"},+ {file = "matplotlib-3.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eee482731c8c17d86d9ddb5194d38621f9b0f0d53c99006275a12523ab021732"},+ {file = "matplotlib-3.8.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:36eafe2128772195b373e1242df28d1b7ec6c04c15b090b8d9e335d55a323900"},+ {file = "matplotlib-3.8.0-cp311-cp311-win_amd64.whl", hash = "sha256:061ee58facb3580cd2d046a6d227fb77e9295599c5ec6ad069f06b5821ad1cfc"},+ {file = "matplotlib-3.8.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:3cc3776836d0f4f22654a7f2d2ec2004618d5cf86b7185318381f73b80fd8a2d"},+ {file = "matplotlib-3.8.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:6c49a2bd6981264bddcb8c317b6bd25febcece9e2ebfcbc34e7f4c0c867c09dc"},+ {file = "matplotlib-3.8.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23ed11654fc83cd6cfdf6170b453e437674a050a452133a064d47f2f1371f8d3"},+ {file = "matplotlib-3.8.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dae97fdd6996b3a25da8ee43e3fc734fff502f396801063c6b76c20b56683196"},+ {file = "matplotlib-3.8.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:87df75f528020a6299f76a1d986c0ed4406e3b2bd44bc5e306e46bca7d45e53e"},+ {file = "matplotlib-3.8.0-cp312-cp312-win_amd64.whl", hash = "sha256:90d74a95fe055f73a6cd737beecc1b81c26f2893b7a3751d52b53ff06ca53f36"},+ {file = "matplotlib-3.8.0-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:c3499c312f5def8f362a2bf761d04fa2d452b333f3a9a3f58805273719bf20d9"},+ {file = "matplotlib-3.8.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:31e793c8bd4ea268cc5d3a695c27b30650ec35238626961d73085d5e94b6ab68"},+ {file = "matplotlib-3.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0d5ee602ef517a89d1f2c508ca189cfc395dd0b4a08284fb1b97a78eec354644"},+ {file = "matplotlib-3.8.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5de39dc61ca35342cf409e031f70f18219f2c48380d3886c1cf5ad9f17898e06"},+ {file = "matplotlib-3.8.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:dd386c80a98b5f51571b9484bf6c6976de383cd2a8cd972b6a9562d85c6d2087"},+ {file = "matplotlib-3.8.0-cp39-cp39-win_amd64.whl", hash = "sha256:f691b4ef47c7384d0936b2e8ebdeb5d526c81d004ad9403dfb9d4c76b9979a93"},+ {file = "matplotlib-3.8.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:0b11f354aae62a2aa53ec5bb09946f5f06fc41793e351a04ff60223ea9162955"},+ {file = "matplotlib-3.8.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7f54b9fb87ca5acbcdd0f286021bedc162e1425fa5555ebf3b3dfc167b955ad9"},+ {file = "matplotlib-3.8.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:60a6e04dfd77c0d3bcfee61c3cd335fff1b917c2f303b32524cd1235e194ef99"},+ {file = "matplotlib-3.8.0.tar.gz", hash = "sha256:df8505e1c19d5c2c26aff3497a7cbd3ccfc2e97043d1e4db3e76afa399164b69"},][package.dependencies]@@ -1724,7 +1705,7 @@ contourpy = ">=1.0.1"cycler = ">=0.10"fonttools = ">=4.22.0"kiwisolver = ">=1.0.1"-numpy = ">=1.20,<2"+numpy = ">=1.21,<2"packaging = ">=20.0"pillow = ">=6.2.0"pyparsing = ">=2.3.1"@@ -2769,6 +2750,7 @@ files = [{file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938"},{file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d"},{file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515"},+ {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"},{file = "PyYAML-6.0.1-cp310-cp310-win32.whl", hash = "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924"},{file = "PyYAML-6.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d"},{file = "PyYAML-6.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007"},@@ -2776,8 +2758,15 @@ files = [{file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d"},{file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc"},{file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673"},+ {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"},{file = "PyYAML-6.0.1-cp311-cp311-win32.whl", hash = "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741"},{file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"},+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},+ {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},+ {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},+ {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},+ {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},+ {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"},{file = "PyYAML-6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47"},{file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98"},{file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c"},@@ -2794,6 +2783,7 @@ files = [{file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5"},{file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696"},{file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735"},+ {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"},{file = "PyYAML-6.0.1-cp38-cp38-win32.whl", hash = "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206"},{file = "PyYAML-6.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62"},{file = "PyYAML-6.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8"},@@ -2801,6 +2791,7 @@ files = [{file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6"},{file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0"},{file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c"},+ {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"},{file = "PyYAML-6.0.1-cp39-cp39-win32.whl", hash = "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c"},{file = "PyYAML-6.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486"},{file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"},@@ -2976,7 +2967,7 @@ files = [][package.dependencies]-greenlet = {version = "!=0.4.17", markers = "platform_machine == \"win32\" or platform_machine == \"WIN32\" or platform_machine == \"AMD64\" or platform_machine == \"amd64\" or platform_machine == \"x86_64\" or platform_machine == \"ppc64le\" or platform_machine == \"aarch64\""}+greenlet = {version = "!=0.4.17", markers = "platform_machine == \"aarch64\" or platform_machine == \"ppc64le\" or platform_machine == \"x86_64\" or platform_machine == \"amd64\" or platform_machine == \"AMD64\" or platform_machine == \"win32\" or platform_machine == \"WIN32\""}typing-extensions = ">=4.2.0"[package.extras]diff --git a/autogpts/forge/run_benchmark.sh b/autogpts/forge/run_benchmark.shnew file mode 100755index 0000000000..f1fc0ae0dd--- /dev/null+++ b/autogpts/forge/run_benchmark.sh@@ -0,0 +1,10 @@+#!/bin/bash+++kill $(lsof -t -i :8000)+poetry install+poetry run pip3 uninstall agbenchmark --yes+poetry run pip3 install -e ../../benchmark+poetry run python3 -m forge &+export PYTHONPATH=$PYTHONPATH:../../benchmark/agbenchmark+poetry run python3 -m agbenchmark start "$@"diff --git a/cli.py b/cli.pynew file mode 100644index 0000000000..3b5c58e168--- /dev/null+++ b/cli.py@@ -0,0 +1,280 @@+try:+ import click+except ImportError:+ import os+ os.system('pip3 install click')+ import click+++def cli():+ pass++def setup():+ """Setup command"""+ import os+ import subprocess+ script_dir = os.path.dirname(os.path.realpath(__file__))+ setup_script = os.path.join(script_dir, 'setup.sh')+ if os.path.exists(setup_script):+ subprocess.Popen([setup_script], cwd=script_dir)+ click.echo("Setup initiated")+ else:+ click.echo("Error: setup.sh does not exist in the current directory.")++def agents():+ """Agents group command"""+ pass+[email protected]('agent_name')+def create(agent_name):+ """Create's a new agent with the agent name provieded"""+ import os+ import shutil+ import re+ if not re.match("^[a-zA-Z0-9_-]*$", agent_name):+ click.echo(click.style(f"π Agent name '{agent_name}' is not valid. It should not contain spaces or special characters other than -_", fg='red'))+ return+ try:+ new_agent_dir = f'./autogpts/{agent_name}'+ if not os.path.exists(new_agent_dir):+ shutil.copytree('./autogpts/forge', new_agent_dir)+ click.echo(click.style(f"π New agent '{agent_name}' created and switched to the new directory in autogpts folder.", fg='green'))+ else:+ click.echo(click.style(f"π Agent '{agent_name}' already exists. Enter a different name for your agent", fg='red'))+ except Exception as e:+ click.echo(click.style(f"π’ An error occurred: {e}", fg='red'))++[email protected]('agent_name')+def start(agent_name):+ """Start agent command"""+ import os+ import subprocess+ script_dir = os.path.dirname(os.path.realpath(__file__))+ agent_dir = os.path.join(script_dir, f'autogpts/{agent_name}')+ run_command = os.path.join(agent_dir, 'run')+ if os.path.exists(agent_dir) and os.path.isfile(run_command):+ os.chdir(agent_dir)+ subprocess.Popen(["./run"], cwd=agent_dir)+ click.echo(f"Agent '{agent_name}' started")+ elif not os.path.exists(agent_dir):+ click.echo(click.style(f"π Agent '{agent_name}' does not exist. Please create the agent first.", fg='red'))+ else:+ click.echo(click.style(f"π Run command does not exist in the agent '{agent_name}' directory.", fg='red'))++def stop():+ """Stop agent command"""+ import subprocess+ import os+ import signal+ try:+ pid = int(subprocess.check_output(["lsof", "-t", "-i", ":8000"]))+ os.kill(pid, signal.SIGTERM)+ click.echo("Agent stopped")+ except subprocess.CalledProcessError as e:+ click.echo("Error: Unexpected error occurred.")+ except ProcessLookupError:+ click.echo("Error: No process with the specified PID was found.")+++def list():+ """List agents command"""+ import os+ try:+ agents_dir = './autogpts'+ agents_list = [d for d in os.listdir(agents_dir) if os.path.isdir(os.path.join(agents_dir, d))]+ if agents_list:+ click.echo(click.style('Available agents: π€', fg='green'))+ for agent in agents_list:+ click.echo(click.style(f"\tπ {agent}", fg='blue'))+ else:+ click.echo(click.style("No agents found π", fg='red'))+ except FileNotFoundError:+ click.echo(click.style("The autogpts directory does not exist π’", fg='red'))+ except Exception as e:+ click.echo(click.style(f"An error occurred: {e} π’", fg='red'))+++def benchmark():+ """Benchmark group command"""+ pass+[email protected](context_settings=dict(+ ignore_unknown_options=True,+))[email protected]('agent_name')[email protected]('subprocess_args', nargs=-1, type=click.UNPROCESSED)+def start(agent_name, subprocess_args):+ """Starts the benchmark command"""+ import os+ import subprocess+ script_dir = os.path.dirname(os.path.realpath(__file__))+ agent_dir = os.path.join(script_dir, f'autogpts/{agent_name}')+ benchmark_script = os.path.join(agent_dir, 'run_benchmark.sh')+ if os.path.exists(agent_dir) and os.path.isfile(benchmark_script):+ os.chdir(agent_dir)+ subprocess.Popen([benchmark_script, *subprocess_args], cwd=agent_dir)+ click.echo(click.style(f"π Running benchmark for '{agent_name}' with subprocess arguments: {' '.join(subprocess_args)}", fg='green'))+ else:+ click.echo(click.style(f"π Agent '{agent_name}' does not exist. Please create the agent first.", fg='red'))++[email protected](name='categories')+def benchmark_categories():+ """Benchmark categories group command"""+ pass++@benchmark_categories.command(name='list')+def benchmark_categories_list():+ """List benchmark categories command"""+ import os+ import json+ import glob+ categories = set()++ # Get the directory of this file+ this_dir = os.path.dirname(os.path.abspath(__file__))++ glob_path = os.path.join(this_dir, "./benchmark/agbenchmark/challenges/**/[!deprecated]*/data.json")+ # Use it as the base for the glob pattern, excluding 'deprecated' directory+ for data_file in glob.glob(glob_path, recursive=True):+ with open(data_file, "r") as f:+ try:+ data = json.load(f)+ categories.update(data.get("category", []))+ except json.JSONDecodeError:+ print(f"Error: {data_file} is not a valid JSON file.")+ continue+ except IOError:+ print(f"IOError: file could not be read: {data_file}")+ continue++ if categories:+ click.echo(click.style('Available categories: π', fg='green'))+ for category in categories:+ click.echo(click.style(f"\tπ {category}", fg='blue'))+ else:+ click.echo(click.style("No categories found π", fg='red'))+[email protected](name='tests')+def benchmark_tests():+ """Benchmark tests group command"""+ pass++@benchmark_tests.command(name='list')+def benchmark_tests_list():+ """List benchmark tests command"""+ import os+ import json+ import glob+ import re+ tests = {}++ # Get the directory of this file+ this_dir = os.path.dirname(os.path.abspath(__file__))++ glob_path = os.path.join(this_dir, "./benchmark/agbenchmark/challenges/**/[!deprecated]*/data.json")+ # Use it as the base for the glob pattern, excluding 'deprecated' directory+ for data_file in glob.glob(glob_path, recursive=True):+ with open(data_file, "r") as f:+ try:+ data = json.load(f)+ category = data.get("category", [])+ test_name = data.get("name", "")+ if category and test_name:+ if category[0] not in tests:+ tests[category[0]] = []+ tests[category[0]].append(test_name)+ except json.JSONDecodeError:+ print(f"Error: {data_file} is not a valid JSON file.")+ continue+ except IOError:+ print(f"IOError: file could not be read: {data_file}")+ continue++ if tests:+ click.echo(click.style('Available tests: π', fg='green'))+ for category, test_list in tests.items():+ click.echo(click.style(f"\tπ {category}", fg='blue'))+ for test in sorted(test_list):+ test_name = ' '.join(word for word in re.split('([A-Z][a-z]*)', test) if word).replace('_', '').replace('C L I', 'CLI')[5:].replace(' ', ' ')+ test_name_padded = f"{test_name:<40}"+ click.echo(click.style(f"\t\tπ¬ {test_name_padded} - {test}", fg='cyan'))+ else:+ click.echo(click.style("No tests found π", fg='red'))++@benchmark_tests.command(name='details')[email protected]('test_name')+def benchmark_tests_details(test_name):+ """Benchmark test details command"""+ import os+ import json+ import glob++ # Get the directory of this file+ this_dir = os.path.dirname(os.path.abspath(__file__))++ glob_path = os.path.join(this_dir, "./benchmark/agbenchmark/challenges/**/[!deprecated]*/data.json")+ # Use it as the base for the glob pattern, excluding 'deprecated' directory+ for data_file in glob.glob(glob_path, recursive=True):+ with open(data_file, "r") as f:+ try:+ data = json.load(f)+ if data.get("name") == test_name:+ click.echo(click.style(f"\n{data.get('name')}\n{'-'*len(data.get('name'))}\n", fg='blue'))+ click.echo(click.style(f"\tCategory: {', '.join(data.get('category'))}", fg='green'))+ click.echo(click.style(f"\tTask: {data.get('task')}", fg='green'))+ click.echo(click.style(f"\tDependencies: {', '.join(data.get('dependencies')) if data.get('dependencies') else 'None'}", fg='green'))+ click.echo(click.style(f"\tCutoff: {data.get('cutoff')}\n", fg='green'))+ click.echo(click.style("\tTest Conditions\n\t-------", fg='magenta'))+ click.echo(click.style(f"\t\tAnswer: {data.get('ground').get('answer')}", fg='magenta'))+ click.echo(click.style(f"\t\tShould Contain: {', '.join(data.get('ground').get('should_contain'))}", fg='magenta'))+ click.echo(click.style(f"\t\tShould Not Contain: {', '.join(data.get('ground').get('should_not_contain'))}", fg='magenta'))+ click.echo(click.style(f"\t\tFiles: {', '.join(data.get('ground').get('files'))}", fg='magenta'))+ click.echo(click.style(f"\t\tEval: {data.get('ground').get('eval').get('type')}\n", fg='magenta'))+ click.echo(click.style("\tInfo\n\t-------", fg='yellow'))+ click.echo(click.style(f"\t\tDifficulty: {data.get('info').get('difficulty')}", fg='yellow'))+ click.echo(click.style(f"\t\tDescription: {data.get('info').get('description')}", fg='yellow'))+ click.echo(click.style(f"\t\tSide Effects: {', '.join(data.get('info').get('side_effects'))}", fg='yellow'))+ break+++ except json.JSONDecodeError:+ print(f"Error: {data_file} is not a valid JSON file.")+ continue+ except IOError:+ print(f"IOError: file could not be read: {data_file}")+ continue+def frontend():+ """Frontend command group"""+ import os+ import subprocess+ import socket+ try:+ output = subprocess.check_output(["lsof", "-t", "-i", ":8000"])+ if output:+ click.echo("Agent is running.")+ else:+ click.echo("Error: Agent is not running. Please start an agent first.")+ except subprocess.CalledProcessError as e:+ click.echo("Error: Unexpected error occurred.")+ return+ frontend_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'frontend')+ run_file = os.path.join(frontend_dir, 'run')+ if os.path.exists(frontend_dir) and os.path.isfile(run_file):+ subprocess.Popen(["./run"], cwd=frontend_dir)+ click.echo("Launching frontend")+ else:+ click.echo("Error: Frontend directory or run file does not exist.")++if __name__ == '__main__':+ cli()diff --git a/frontend/run b/frontend/runnew file mode 100755index 0000000000..660f9adfa8--- /dev/null+++ b/frontend/run@@ -0,0 +1,5 @@+#!/bin/bash++kill $(lsof -t -i :5000)++flutter run -d chrome --web-port 5000diff --git a/run b/runnew file mode 100755index 0000000000..55966d1782--- /dev/null+++ b/run@@ -0,0 +1,3 @@+#!/bin/bash++python3 cli.py "$@"diff --git a/setup.sh b/setup.shnew file mode 100755index 0000000000..e5cde976e7--- /dev/null+++ b/setup.sh@@ -0,0 +1,55 @@+#!/bin/bash++if ! command -v python3 &> /dev/null+then+ echo "python3 could not be found"+ echo "Installing python3 using pyenv..."+ if ! command -v pyenv &> /dev/null+ then+ echo "pyenv could not be found"+ echo "Installing pyenv..."+ curl https://pyenv.run | bash+ fi+ pyenv install 3.11.5+ pyenv global 3.11.5+fi++if ! command -v poetry &> /dev/null+then+ echo "poetry could not be found"+ echo "Installing poetry..."+ curl -sSL https://install.python-poetry.org | python3 -+fi++if ! command -v flutter &> /dev/null+then+ echo "flutter could not be found"+ echo "Installing flutter..."+ git clone https://github.com/flutter/flutter.git+ export PATH="$PATH:`pwd`/flutter/bin"+fi+if [[ "$OSTYPE" == "linux-gnu"* ]]; then+ if ! command -v google-chrome-stable &> /dev/null+ then+ echo "Google Chrome could not be found"+ echo "Installing Google Chrome..."+ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb+ sudo dpkg -i google-chrome-stable_current_amd64.deb+ fi+elif [[ "$OSTYPE" == "darwin"* ]]; then+ if ! command -v /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome &> /dev/null+ then+ echo "Google Chrome could not be found"+ echo "Please install Google Chrome manually from https://www.google.com/chrome/"+ fi+elif [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "win32" ]]; then+ if ! command -v /c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe &> /dev/null+ then+ echo "Google Chrome could not be found"+ echo "Please install Google Chrome manually from https://www.google.com/chrome/"+ fi+else+ echo "Unsupported OS. Please install Google Chrome manually from https://www.google.com/chrome/"+fi++echo "Installation has been completed."