Fix to allowed_tools (#235)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-05-02 14:55:14 +00:00 committed by GitHub
commit 211c875c19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 108 additions and 105 deletions

122
poetry.lock generated
View file

@ -3568,72 +3568,72 @@ cffi = {version = "*", markers = "implementation_name == \"pypy\""}
[[package]]
name = "regex"
version = "2023.3.23"
version = "2023.5.2"
description = "Alternative regular expression module, to replace re."
category = "main"
optional = false
python-versions = ">=3.8"
files = [
{file = "regex-2023.3.23-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:845a5e2d84389c4ddada1a9b95c055320070f18bb76512608374aca00d22eca8"},
{file = "regex-2023.3.23-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:87d9951f5a538dd1d016bdc0dcae59241d15fa94860964833a54d18197fcd134"},
{file = "regex-2023.3.23-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:37ae17d3be44c0b3f782c28ae9edd8b47c1f1776d4cabe87edc0b98e1f12b021"},
{file = "regex-2023.3.23-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:0b8eb1e3bca6b48dc721818a60ae83b8264d4089a4a41d62be6d05316ec38e15"},
{file = "regex-2023.3.23-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:df45fac182ebc3c494460c644e853515cc24f5ad9da05f8ffb91da891bfee879"},
{file = "regex-2023.3.23-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b7006105b10b59971d3b248ad75acc3651c7e4cf54d81694df5a5130a3c3f7ea"},
{file = "regex-2023.3.23-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:93f3f1aa608380fe294aa4cb82e2afda07a7598e828d0341e124b8fd9327c715"},
{file = "regex-2023.3.23-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:787954f541ab95d8195d97b0b8cf1dc304424adb1e07365967e656b92b38a699"},
{file = "regex-2023.3.23-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:20abe0bdf03630fe92ccafc45a599bca8b3501f48d1de4f7d121153350a2f77d"},
{file = "regex-2023.3.23-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:11d00c31aeab9a6e0503bc77e73ed9f4527b3984279d997eb145d7c7be6268fd"},
{file = "regex-2023.3.23-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:d5bbe0e1511b844794a3be43d6c145001626ba9a6c1db8f84bdc724e91131d9d"},
{file = "regex-2023.3.23-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:ea3c0cb56eadbf4ab2277e7a095676370b3e46dbfc74d5c383bd87b0d6317910"},
{file = "regex-2023.3.23-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:d895b4c863059a4934d3e874b90998df774644a41b349ebb330f85f11b4ef2c0"},
{file = "regex-2023.3.23-cp310-cp310-win32.whl", hash = "sha256:9d764514d19b4edcc75fd8cb1423448ef393e8b6cbd94f38cab983ab1b75855d"},
{file = "regex-2023.3.23-cp310-cp310-win_amd64.whl", hash = "sha256:11d1f2b7a0696dc0310de0efb51b1f4d813ad4401fe368e83c0c62f344429f98"},
{file = "regex-2023.3.23-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:8a9c63cde0eaa345795c0fdeb19dc62d22e378c50b0bc67bf4667cd5b482d98b"},
{file = "regex-2023.3.23-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:dd7200b4c27b68cf9c9646da01647141c6db09f48cc5b51bc588deaf8e98a797"},
{file = "regex-2023.3.23-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22720024b90a6ba673a725dcc62e10fb1111b889305d7c6b887ac7466b74bedb"},
{file = "regex-2023.3.23-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6b190a339090e6af25f4a5fd9e77591f6d911cc7b96ecbb2114890b061be0ac1"},
{file = "regex-2023.3.23-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e76b6fc0d8e9efa39100369a9b3379ce35e20f6c75365653cf58d282ad290f6f"},
{file = "regex-2023.3.23-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7868b8f218bf69a2a15402fde08b08712213a1f4b85a156d90473a6fb6b12b09"},
{file = "regex-2023.3.23-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2472428efc4127374f494e570e36b30bb5e6b37d9a754f7667f7073e43b0abdd"},
{file = "regex-2023.3.23-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:c37df2a060cb476d94c047b18572ee2b37c31f831df126c0da3cd9227b39253d"},
{file = "regex-2023.3.23-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:4479f9e2abc03362df4045b1332d4a2b7885b245a30d4f4b051c4083b97d95d8"},
{file = "regex-2023.3.23-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:e2396e0678167f2d0c197da942b0b3fb48fee2f0b5915a0feb84d11b6686afe6"},
{file = "regex-2023.3.23-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:75f288c60232a5339e0ff2fa05779a5e9c74e9fc085c81e931d4a264501e745b"},
{file = "regex-2023.3.23-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:c869260aa62cee21c5eb171a466c0572b5e809213612ef8d495268cd2e34f20d"},
{file = "regex-2023.3.23-cp311-cp311-win32.whl", hash = "sha256:25f0532fd0c53e96bad84664171969de9673b4131f2297f1db850d3918d58858"},
{file = "regex-2023.3.23-cp311-cp311-win_amd64.whl", hash = "sha256:5ccfafd98473e007cebf7da10c1411035b7844f0f204015efd050601906dbb53"},
{file = "regex-2023.3.23-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6572ff287176c0fb96568adb292674b421fa762153ed074d94b1d939ed92c253"},
{file = "regex-2023.3.23-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a610e0adfcb0fc84ea25f6ea685e39e74cbcd9245a72a9a7aab85ff755a5ed27"},
{file = "regex-2023.3.23-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:086afe222d58b88b62847bdbd92079b4699350b4acab892f88a935db5707c790"},
{file = "regex-2023.3.23-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:79e29fd62fa2f597a6754b247356bda14b866131a22444d67f907d6d341e10f3"},
{file = "regex-2023.3.23-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c07ce8e9eee878a48ebeb32ee661b49504b85e164b05bebf25420705709fdd31"},
{file = "regex-2023.3.23-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:86b036f401895e854de9fefe061518e78d506d8a919cc250dc3416bca03f6f9a"},
{file = "regex-2023.3.23-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:78ac8dd8e18800bb1f97aad0d73f68916592dddf233b99d2b5cabc562088503a"},
{file = "regex-2023.3.23-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:539dd010dc35af935b32f248099e38447bbffc10b59c2b542bceead2bed5c325"},
{file = "regex-2023.3.23-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:9bf4a5626f2a0ea006bf81e8963f498a57a47d58907eaa58f4b3e13be68759d8"},
{file = "regex-2023.3.23-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:cf86b4328c204c3f315074a61bc1c06f8a75a8e102359f18ce99fbcbbf1951f0"},
{file = "regex-2023.3.23-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:2848bf76673c83314068241c8d5b7fa9ad9bed866c979875a0e84039349e8fa7"},
{file = "regex-2023.3.23-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:c125a02d22c555e68f7433bac8449992fa1cead525399f14e47c2d98f2f0e467"},
{file = "regex-2023.3.23-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:cd1671e9d5ac05ce6aa86874dd8dfa048824d1dbe73060851b310c6c1a201a96"},
{file = "regex-2023.3.23-cp38-cp38-win32.whl", hash = "sha256:fffe57312a358be6ec6baeb43d253c36e5790e436b7bf5b7a38df360363e88e9"},
{file = "regex-2023.3.23-cp38-cp38-win_amd64.whl", hash = "sha256:dbb3f87e15d3dd76996d604af8678316ad2d7d20faa394e92d9394dfd621fd0c"},
{file = "regex-2023.3.23-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c88e8c226473b5549fe9616980ea7ca09289246cfbdf469241edf4741a620004"},
{file = "regex-2023.3.23-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:6560776ec19c83f3645bbc5db64a7a5816c9d8fb7ed7201c5bcd269323d88072"},
{file = "regex-2023.3.23-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1b1fc2632c01f42e06173d8dd9bb2e74ab9b0afa1d698058c867288d2c7a31f3"},
{file = "regex-2023.3.23-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fdf7ad455f1916b8ea5cdbc482d379f6daf93f3867b4232d14699867a5a13af7"},
{file = "regex-2023.3.23-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5fc33b27b1d800fc5b78d7f7d0f287e35079ecabe68e83d46930cf45690e1c8c"},
{file = "regex-2023.3.23-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4c49552dc938e3588f63f8a78c86f3c9c75301e813bca0bef13bdb4b87ccf364"},
{file = "regex-2023.3.23-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e152461e9a0aedec7d37fc66ec0fa635eca984777d3d3c3e36f53bf3d3ceb16e"},
{file = "regex-2023.3.23-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:db034255e72d2995cf581b14bb3fc9c00bdbe6822b49fcd4eef79e1d5f232618"},
{file = "regex-2023.3.23-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:55ae114da21b7a790b90255ea52d2aa3a0d121a646deb2d3c6a3194e722fc762"},
{file = "regex-2023.3.23-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:ef3f528fe1cc3d139508fe1b22523745aa77b9d6cb5b0bf277f48788ee0b993f"},
{file = "regex-2023.3.23-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:a81c9ec59ca2303acd1ccd7b9ac409f1e478e40e96f8f79b943be476c5fdb8bb"},
{file = "regex-2023.3.23-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:cde09c4fdd070772aa2596d97e942eb775a478b32459e042e1be71b739d08b77"},
{file = "regex-2023.3.23-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:3cd9f5dd7b821f141d3a6ca0d5d9359b9221e4f051ca3139320adea9f1679691"},
{file = "regex-2023.3.23-cp39-cp39-win32.whl", hash = "sha256:7304863f3a652dab5e68e6fb1725d05ebab36ec0390676d1736e0571ebb713ef"},
{file = "regex-2023.3.23-cp39-cp39-win_amd64.whl", hash = "sha256:54c3fa855a3f7438149de3211738dd9b5f0c733f48b54ae05aa7fce83d48d858"},
{file = "regex-2023.3.23.tar.gz", hash = "sha256:dc80df325b43ffea5cdea2e3eaa97a44f3dd298262b1c7fe9dbb2a9522b956a7"},
{file = "regex-2023.5.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c801b2b2326eb645a0f3cb00c23bbae422c1efb8a887120d93a9d4b313252728"},
{file = "regex-2023.5.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d5cd5f25d9fef92fec3a3df0e10260c76519874400c5efca19994d8c6402e6ef"},
{file = "regex-2023.5.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:72df39b0389849160f30ea49d16f6ffead6e6bc8e4145471cbe5422d1e074c82"},
{file = "regex-2023.5.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a8fbc1a856bbab364baa7bc6c27dce5f5e6939ff4fc2b54461311111249b6767"},
{file = "regex-2023.5.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:bb848ee40dc625a661247c884cc816fb285a265bb08a76cad2d65c67bb37a815"},
{file = "regex-2023.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:364dcc8f95543ba37456b5ad765d13156f51c1ad616565b025f78bb6e5bc4823"},
{file = "regex-2023.5.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:27dd7deb985b5f6bf21021f9be2f9c23f775923ac6be4193dfc42d0940b078fd"},
{file = "regex-2023.5.2-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:9b1b82baa40b01239b538e49f8240b67bd41912f556b3dbb9bdfdb617cdb1ce0"},
{file = "regex-2023.5.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:1a4f57c4526197bf671e6615c5a364dc1738eae4d2199e4c4b94299f16ba1917"},
{file = "regex-2023.5.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:76ebbc1a47740dd3fb0fab3e05bdd79705fbe92bcb28d1b509c59fe8fb3405ee"},
{file = "regex-2023.5.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:bd32760811428cd069e6849ab03ba12c0deea4b579804f866981db283325ea6e"},
{file = "regex-2023.5.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:f37fdc38e63df6cac2565adba4a8a54d097ccb77f59227a5aeb78ebca1ca4610"},
{file = "regex-2023.5.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:6a25a37baa85c72ecb50976a0c0c0c437f150e62d37b910db63ff049f33ac375"},
{file = "regex-2023.5.2-cp310-cp310-win32.whl", hash = "sha256:ee2bc5df35672b36c847143d772993380d325187510d1ff5d7dba7a65ad56b62"},
{file = "regex-2023.5.2-cp310-cp310-win_amd64.whl", hash = "sha256:66b1c91073642853c1fe3d27c3f797d3bfd0b1b9cbb567fb21428950f6b9221f"},
{file = "regex-2023.5.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c2e55a91c2a104e14b799a6802b574c24b3e8b70d5f3a47f8025ea38aade2d2a"},
{file = "regex-2023.5.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:30b37d9b8598dee35df0546d7648c2a368a3ad668e2e0c9c33f549b01666b456"},
{file = "regex-2023.5.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2bf3cbf3d9386885e56e51d9cde879611a0e365024a61638ec072a5c9d227cc9"},
{file = "regex-2023.5.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9b643701f0998961f9847c5f12714517ba321f1af3a646d8a4c1a0f4e8880793"},
{file = "regex-2023.5.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:48eb4daf4706d16c4c854946f0b9dc2b1f52a5e9cccdf27a3b2cb1f44cb80b8d"},
{file = "regex-2023.5.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c8ab95916ab1bc88e9cdfd2de585401d2764d4c60805eeb2aae38be7adf07edf"},
{file = "regex-2023.5.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6b1397cd6094a0e8fd8e7cd986f3ad27bcdb2622ce7b11b626dc1491b9a7ccef"},
{file = "regex-2023.5.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:68935a664cdbf0cc54eec8a1df35a952f95cb4d58d6f84a061fef061084847f8"},
{file = "regex-2023.5.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:bbb5cb89ea732a19b41ece443199bf91f9984f3ec9f847e27dd9227ecab8e86e"},
{file = "regex-2023.5.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:062b7fa469e90673d0845f6dab0bbbd8d602a7db18c4842d5ee4b13829219cbc"},
{file = "regex-2023.5.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:b4a51fbdddb6fbb21c40cc0c646912f310dbe73deef0f07c7c471bd1dcfe0c99"},
{file = "regex-2023.5.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:1bed5a1af5ffd25bce1244ddef9959b3b2fbc49d4f7493213fe7d979bf42407c"},
{file = "regex-2023.5.2-cp311-cp311-win32.whl", hash = "sha256:aec0255d348c5e6bb0d475bcb5af4c3483deb4a9839a13906d4a01f5b4af70a8"},
{file = "regex-2023.5.2-cp311-cp311-win_amd64.whl", hash = "sha256:f2ffde6bd983564609547ad695803f61785b24ac255549115a8349135562c6e0"},
{file = "regex-2023.5.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:343771b965923a505a937e7e5c0cc047f303771f119e75025e66d3615eedbcf3"},
{file = "regex-2023.5.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:3817ef2ff8f2b79832adb75557f76b19c973c9852505a3feabdb0638a78c3e57"},
{file = "regex-2023.5.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:30931415755e549785808ba9cb1019dabefe1f387cf46e5d1a5fa475832784c0"},
{file = "regex-2023.5.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6ed3fec994eebd1323ed40afb06bed40bdf84d0f10357056afd12b862f7487dd"},
{file = "regex-2023.5.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2ec1d012ce95f63af9e76960a64362078ec9ed273723fadd8d3b2b811ec2a5e6"},
{file = "regex-2023.5.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:24621b5ea04c1eb7b47d1eeaf059b62260dabd752ee3cd32c025232e13735a1a"},
{file = "regex-2023.5.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:482321a7fd2d9d9165a8b572ea4dcee3df8c512bbeb938e329bd8973b3b6faba"},
{file = "regex-2023.5.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:2bc53d4ae85454cece936ecb797aafb5b1d48814ac6f4fdc1142b8621f1951f4"},
{file = "regex-2023.5.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:82cb744d72ea468391c592ee847a24cee96c532f08979006566237551d88ce99"},
{file = "regex-2023.5.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:069ad5b2a46a20f7a53771ae9ea336cee6b5815834e01b42c4d04368c5f5bcae"},
{file = "regex-2023.5.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:f9a5106d5e1f0d10e844e7525aba6887395d590604170786fad03db95f0796fd"},
{file = "regex-2023.5.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:8fa0ba44aaca97c6af35ebf588ccc2573d4dcbe16acb826aa8932d6ee860d99b"},
{file = "regex-2023.5.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:204028f0e1442a53aacde617fc4b4dac0eb9f8c4dcb78edc7503e661f74c5a96"},
{file = "regex-2023.5.2-cp38-cp38-win32.whl", hash = "sha256:b554a2a391d7cd70cefd517397a1313cd85ef088872dc8be3e38d70d4734f05c"},
{file = "regex-2023.5.2-cp38-cp38-win_amd64.whl", hash = "sha256:7bdb8e97d484af37ebc77b7e5fe16a670cc93f665966d1c922125a34781e2c9d"},
{file = "regex-2023.5.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:0d4993a1c0fe72f9d07db6bd5c900e2dc6e3b65601b26ebd65b741d8cfc19ac9"},
{file = "regex-2023.5.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:9387cdcf17d2ea9d7b9aa836ff2c1564dced302954e07ad111d65f334103a981"},
{file = "regex-2023.5.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fbb569acd2120ee1d2e5867fddecf0996ce814353ddea05220d8dffcdbaef328"},
{file = "regex-2023.5.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:404a36b07a16c636e0be5ce489ff724af394d264d7c9c08005c43019b6184fef"},
{file = "regex-2023.5.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:99bbcc1c307e599bcf89bf339c0e4e1e197539ff7ba4674881fe00248fb22a12"},
{file = "regex-2023.5.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a5c45d462f93f18818029c37a40212e43065a491b15579525507fed67dd7b81b"},
{file = "regex-2023.5.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:018cde1591d00c6075b5f4363e0c40dea8cba1fd52528287bbc966b21440fa81"},
{file = "regex-2023.5.2-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:d3f98aa05173c7d92581474b66fc53a8ffd093c4601f41df58221660a2ad480f"},
{file = "regex-2023.5.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:8d4837c543910abc9425d5d824b4e2a9faa3028f2ab3102022960f35e3560ed3"},
{file = "regex-2023.5.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:e736064908733ff217181c7cbe403ceb3c7baafe1d5d0b1acda39a3f4ae9f416"},
{file = "regex-2023.5.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:42d1b8f462f7097ad65d04e068284a52430d205420b0f5815a44c237490f7bcd"},
{file = "regex-2023.5.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:5362757a665c15e5a0a0a20ac2548476570179443b9879de890fed5d216400fe"},
{file = "regex-2023.5.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:e2e4b32a28f1b197e71947a3ce26c18ef54eb6ff4ab1ad66e0709e3d1ed66ea5"},
{file = "regex-2023.5.2-cp39-cp39-win32.whl", hash = "sha256:6a196877298515e999625ca3b2cf7e39ffb296f8e36ef8d8428b13ac9e092063"},
{file = "regex-2023.5.2-cp39-cp39-win_amd64.whl", hash = "sha256:a29229db75c409f7d59b29c4f48b02ad66292f70b28ae78a3da19750798312c8"},
{file = "regex-2023.5.2.tar.gz", hash = "sha256:768f7a4ce5a3cebf7cdead3b23053a4c84fe155a0f038d7894f00cf458376769"},
]
[[package]]

View file

@ -1,6 +1,6 @@
[tool.poetry]
name = "langflow"
version = "0.0.66"
version = "0.0.67"
description = "A Python package with a built-in web application"
authors = ["Logspace <contact@logspace.ai>"]
maintainers = [

View file

@ -1,5 +1,5 @@
import json
from typing import Any, Callable, Dict, Optional
from typing import Any, Callable, Dict, Iterable, Optional
from langchain.agents import ZeroShotAgent
from langchain.agents import agent as agent_module
@ -195,6 +195,9 @@ def load_agent_executor(agent_class: type[agent_module.Agent], params, **kwargs)
"""Load agent executor from agent class, tools and chain"""
allowed_tools = params["allowed_tools"]
llm_chain = params["llm_chain"]
# if allowed_tools is not a list or set, make it a list
if not isinstance(allowed_tools, (list, set)):
allowed_tools = [allowed_tools]
tool_names = [tool.name for tool in allowed_tools]
# Agent class requires an output_parser but Agent classes
# have a default output_parser.

View file

@ -36,7 +36,7 @@ def test_zero_shot_agent(client: TestClient):
"name": "llm_chain",
"type": "LLMChain",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["allowed_tools"] == {
"required": False,
@ -47,7 +47,7 @@ def test_zero_shot_agent(client: TestClient):
"name": "allowed_tools",
"type": "Tool",
"list": True,
"advanced": True,
"advanced": False,
}
@ -70,7 +70,7 @@ def test_json_agent(client: TestClient):
"name": "toolkit",
"type": "BaseToolkit",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["llm"] == {
"required": True,
@ -81,7 +81,7 @@ def test_json_agent(client: TestClient):
"name": "llm",
"type": "BaseLanguageModel",
"list": False,
"advanced": True,
"advanced": False,
}
@ -108,7 +108,7 @@ def test_csv_agent(client: TestClient):
"type": "file",
"list": False,
"content": None,
"advanced": True,
"advanced": False,
}
assert template["llm"] == {
"required": True,
@ -119,7 +119,7 @@ def test_csv_agent(client: TestClient):
"name": "llm",
"type": "BaseLanguageModel",
"list": False,
"advanced": True,
"advanced": False,
}

View file

@ -28,7 +28,7 @@ def test_hugging_face_hub(client: TestClient):
"name": "cache",
"type": "bool",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["verbose"] == {
"required": False,
@ -40,7 +40,7 @@ def test_hugging_face_hub(client: TestClient):
"name": "verbose",
"type": "bool",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["client"] == {
"required": False,
@ -51,7 +51,7 @@ def test_hugging_face_hub(client: TestClient):
"name": "client",
"type": "Any",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["repo_id"] == {
"required": False,
@ -63,7 +63,7 @@ def test_hugging_face_hub(client: TestClient):
"name": "repo_id",
"type": "str",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["task"] == {
"required": True,
@ -120,7 +120,7 @@ def test_openai(client: TestClient):
"name": "cache",
"type": "bool",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["verbose"] == {
"required": False,
@ -131,7 +131,7 @@ def test_openai(client: TestClient):
"name": "verbose",
"type": "bool",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["client"] == {
"required": False,
@ -142,7 +142,7 @@ def test_openai(client: TestClient):
"name": "client",
"type": "Any",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["model_name"] == {
"required": False,
@ -186,7 +186,7 @@ def test_openai(client: TestClient):
"name": "max_tokens",
"type": "int",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["top_p"] == {
"required": False,
@ -198,7 +198,7 @@ def test_openai(client: TestClient):
"name": "top_p",
"type": "float",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["frequency_penalty"] == {
"required": False,
@ -210,7 +210,7 @@ def test_openai(client: TestClient):
"name": "frequency_penalty",
"type": "float",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["presence_penalty"] == {
"required": False,
@ -222,7 +222,7 @@ def test_openai(client: TestClient):
"name": "presence_penalty",
"type": "float",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["n"] == {
"required": False,
@ -234,7 +234,7 @@ def test_openai(client: TestClient):
"name": "n",
"type": "int",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["best_of"] == {
"required": False,
@ -246,7 +246,7 @@ def test_openai(client: TestClient):
"name": "best_of",
"type": "int",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["model_kwargs"] == {
"required": False,
@ -282,7 +282,7 @@ def test_openai(client: TestClient):
"name": "batch_size",
"type": "int",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["request_timeout"] == {
"required": False,
@ -293,7 +293,7 @@ def test_openai(client: TestClient):
"name": "request_timeout",
"type": "Union[float, Tuple[float, float], NoneType]",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["logit_bias"] == {
"required": False,
@ -304,7 +304,7 @@ def test_openai(client: TestClient):
"name": "logit_bias",
"type": "code",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["max_retries"] == {
"required": False,
@ -316,7 +316,7 @@ def test_openai(client: TestClient):
"name": "max_retries",
"type": "int",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["streaming"] == {
"required": False,
@ -328,7 +328,7 @@ def test_openai(client: TestClient):
"name": "streaming",
"type": "bool",
"list": False,
"advanced": True,
"advanced": False,
}
@ -351,7 +351,7 @@ def test_chat_open_ai(client: TestClient):
"name": "verbose",
"type": "bool",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["client"] == {
"required": False,
@ -362,7 +362,7 @@ def test_chat_open_ai(client: TestClient):
"name": "client",
"type": "Any",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["model_name"] == {
"required": False,
@ -423,7 +423,7 @@ def test_chat_open_ai(client: TestClient):
"name": "request_timeout",
"type": "int",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["max_retries"] == {
"required": False,
@ -435,7 +435,7 @@ def test_chat_open_ai(client: TestClient):
"name": "max_retries",
"type": "int",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["streaming"] == {
"required": False,
@ -447,7 +447,7 @@ def test_chat_open_ai(client: TestClient):
"name": "streaming",
"type": "bool",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["n"] == {
"required": False,
@ -459,7 +459,7 @@ def test_chat_open_ai(client: TestClient):
"name": "n",
"type": "int",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["max_tokens"] == {
@ -471,7 +471,7 @@ def test_chat_open_ai(client: TestClient):
"name": "max_tokens",
"type": "int",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["_type"] == "ChatOpenAI"
assert (

View file

@ -27,7 +27,7 @@ def test_prompt_template(client: TestClient):
"name": "input_variables",
"type": "str",
"list": True,
"advanced": True,
"advanced": False,
}
assert template["output_parser"] == {
"required": False,
@ -38,7 +38,7 @@ def test_prompt_template(client: TestClient):
"name": "output_parser",
"type": "BaseOutputParser",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["partial_variables"] == {
"required": False,
@ -49,7 +49,7 @@ def test_prompt_template(client: TestClient):
"name": "partial_variables",
"type": "code",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["template"] == {
"required": True,
@ -72,7 +72,7 @@ def test_prompt_template(client: TestClient):
"name": "template_format",
"type": "str",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["validate_template"] == {
"required": False,
@ -84,7 +84,7 @@ def test_prompt_template(client: TestClient):
"name": "validate_template",
"type": "bool",
"list": False,
"advanced": True,
"advanced": False,
}
@ -117,7 +117,7 @@ def test_few_shot_prompt_template(client: TestClient):
"name": "example_selector",
"type": "BaseExampleSelector",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["example_prompt"] == {
"required": True,
@ -128,7 +128,7 @@ def test_few_shot_prompt_template(client: TestClient):
"name": "example_prompt",
"type": "PromptTemplate",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["suffix"] == {
"required": True,
@ -151,7 +151,7 @@ def test_few_shot_prompt_template(client: TestClient):
"name": "example_separator",
"type": "str",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["prefix"] == {
"required": False,
@ -184,7 +184,7 @@ def test_zero_shot_prompt(client: TestClient):
"name": "prefix",
"type": "str",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["suffix"] == {
"required": True,
@ -196,7 +196,7 @@ def test_zero_shot_prompt(client: TestClient):
"name": "suffix",
"type": "str",
"list": False,
"advanced": True,
"advanced": False,
}
assert template["format_instructions"] == {
"required": False,
@ -208,5 +208,5 @@ def test_zero_shot_prompt(client: TestClient):
"name": "format_instructions",
"type": "str",
"list": False,
"advanced": True,
"advanced": False,
}