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.
use pytest-recording with VCR (#3283)
merwanehamadia6355a6bc801
diff --git a/requirements.txt b/requirements.txtindex 4932ecc364..b7df263655 100644--- a/requirements.txt+++ b/requirements.txt@@ -50,4 +50,4 @@ pytest-covpytest-integrationpytest-mockvcrpy-pytest-vcr+pytest-recordingdiff --git a/tests/conftest.py b/tests/conftest.pyindex 745f8b5dd8..2096870612 100644--- a/tests/conftest.py+++ b/tests/conftest.py@@ -5,6 +5,7 @@ import pytestfrom autogpt.api_manager import ApiManagerfrom autogpt.config import Configfrom autogpt.workspace import Workspace+from tests.vcr.openai_filter import before_record_request@pytest.fixture()diff --git a/tests/integration/conftest.py b/tests/integration/conftest.pynew file mode 100644index 0000000000..3c2e02b312--- /dev/null+++ b/tests/integration/conftest.py@@ -0,0 +1,17 @@+import pytest++from tests.vcr.openai_filter import before_record_request+++def vcr_config():+ # this fixture is called by the pytest-recording vcr decorator.+ return {+ "record_mode": "new_episodes",+ "before_record_request": before_record_request,+ "filter_headers": [+ "authorization",+ "X-OpenAI-Client-User-Agent",+ "User-Agent",+ ],+ }diff --git a/tests/integration/goal_oriented/cassettes/test_write_file/test_write_file.yaml b/tests/integration/goal_oriented/cassettes/test_write_file/test_write_file.yamlnew file mode 100644index 0000000000..1a5bba5c4a--- /dev/null+++ b/tests/integration/goal_oriented/cassettes/test_write_file/test_write_file.yaml@@ -0,0 +1,243 @@+interactions:+- request:+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You+ are write_to_file-GPT, an AI designed to use the write_to_file command to write+ ''Hello World'' into a file named \"hello_world.txt\" and then use the task_complete+ command to complete the task.\nYour decisions must always be made independently+ without seeking user assistance. Play to your strengths as an LLM and pursue+ simple strategies with no legal complications.\n\nGOALS:\n\n1. Use the write_to_file+ command to write ''Hello World'' into a file named \"hello_world.txt\".\n2.+ Use the task_complete command to complete the task.\n3. Do not use any other+ commands.\n\n\nConstraints:\n1. ~4000 word limit for short term memory. Your+ short term memory is short, so immediately save important information to files.\n2.+ If you are unsure how you previously did something or want to recall past events,+ thinking about similar events will help you remember.\n3. No user assistance\n4.+ Exclusively use the commands listed in double quotes e.g. \"command name\"\n\nCommands:\n1.+ append_to_file: Append to file, args: \"filename\": \"<filename>\", \"text\":+ \"<text>\"\n2. delete_file: Delete file, args: \"filename\": \"<filename>\"\n3.+ read_file: Read file, args: \"filename\": \"<filename>\"\n4. search_files: Search+ Files, args: \"directory\": \"<directory>\"\n5. write_to_file: Write to file,+ args: \"filename\": \"<filename>\", \"text\": \"<text>\"\n6. delete_agent: Delete+ GPT Agent, args: \"key\": \"<key>\"\n7. get_hyperlinks: Get text summary, args:+ \"url\": \"<url>\"\n8. get_text_summary: Get text summary, args: \"url\": \"<url>\",+ \"question\": \"<question>\"\n9. list_agents: List GPT Agents, args: () -> str\n10.+ message_agent: Message GPT Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11.+ start_agent: Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",+ \"prompt\": \"<prompt>\"\n12. Do Nothing: \"do_nothing\", args: \"reason\":+ \"<reason>\"\n13. Task Complete (Shutdown): \"task_complete\", args: \"reason\":+ \"<reason>\"\n\nResources:\n1. Internet access for searches and information+ gathering.\n2. Long Term memory management.\n3. GPT-3.5 powered Agents for delegation+ of simple tasks.\n4. File output.\n\nPerformance Evaluation:\n1. Continuously+ review and analyze your actions to ensure you are performing to the best of+ your abilities.\n2. Constructively self-criticize your big-picture behavior+ constantly.\n3. Reflect on past decisions and strategies to refine your approach.\n4.+ Every command has a cost, so be smart and efficient. Aim to complete tasks in+ the least number of steps.\n5. Write all code to a file.\n\nYou should only+ respond in JSON format as described below \nResponse Format: \n{\n \"thoughts\":+ {\n \"text\": \"thought\",\n \"reasoning\": \"reasoning\",\n \"plan\":+ \"- short bulleted\\n- list that conveys\\n- long-term plan\",\n \"criticism\":+ \"constructive self-criticism\",\n \"speak\": \"thoughts summary to say+ to user\"\n },\n \"command\": {\n \"name\": \"command name\",\n \"args\":+ {\n \"arg name\": \"value\"\n }\n }\n} \nEnsure the response+ can be parsed by Python json.loads"}, {"role": "system", "content": "The current+ time and date is Tue Jan 01 00:00:00 2000"}, {"role": "system", "content": "This+ reminds you of these events from your past:\n\n\n"}, {"role": "user", "content":+ "Determine which next command to use, and respond using the format specified+ above:"}], "temperature": 0, "max_tokens": 3205}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '3554'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/chat/completions+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA7yTQW/aQBCF7/0Vo7lwMQgIKeBbemmjtlIPtFFUV2hZD/aW9Y6zOy5IyP+9MjYh+ ccWpVa/zxu99zx4f0aQYo86V6KK0w/lSr+6eZl8W04P6fNh8evdkH2x59/jx/exbhhHy5idp6Z4Y+ aS5KS2LYYYTakxJKMZ68XUxvp/PJYhZhwSlZjDErZXgzuh1K5Tc8HN+MJxhhFVRGGB+x9FyUshbe+ kQsYz5fTCC/ez/PJch6hsCj7PFoulnWEOmejKWD8/YgFhbOtZ0sYowrBBFFOGkh2Qq4pcEwcAECC+ knOV5RISjKEbdgIdpBkmeA97Yy1UgUBygr03Qmvh9dZYAs1FoVwKwq0Agw9kLcMDe5sOwDhhUHBa+ daqgFAZ5o6/3jT6SgwxGCUYvgz2pwM64rE1f5QQZKwsm/E0IrK6iN8Y5QcFBQJWl59IbJRd9yx4k+ b7ZU2PVpS6tcCzqEr//pDWlvxGgTivP3cUQnf3Kh8g2DEriHXP1qeTR7T1pA+awqyEnoKl0h7ceF+ ktTu+ik0wf+uaBtcR+f77Ez/OM/GoWV61aGHrnzWv+xWaHYvFj2OVyb9v+FFpzPtibgDT1yNdYRb+ 40zI1+0tY4xBuMQIjUvpgPG4/lG/+Q0AAP//AwCiz6SNfQQAAA==+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be04376c97296c3-SJC+ Cache-Control:+ - no-cache, must-revalidate+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Wed, 26 Apr 2023 16:40:03 GMT+ Server:+ - cloudflare+ Transfer-Encoding:+ - chunked+ access-control-allow-origin:+ - '*'+ alt-svc:+ - h3=":443"; ma=86400, h3-29=":443"; ma=86400+ openai-model:+ - gpt-3.5-turbo-0301+ openai-organization:+ - user-adtx4fhfg1qsiyzdoaxciooj+ openai-processing-ms:+ - '18864'+ openai-version:+ - '2020-10-01'+ strict-transport-security:+ - max-age=15724800; includeSubDomains+ x-ratelimit-limit-requests:+ - '3500'+ x-ratelimit-remaining-requests:+ - '3499'+ x-ratelimit-reset-requests:+ - 17ms+ x-request-id:+ - 77d98331ebd579dd929c8de10a83a035+ status:+ code: 200+ message: OK+- request:+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You+ are write_to_file-GPT, an AI designed to use the write_to_file command to write+ ''Hello World'' into a file named \"hello_world.txt\" and then use the task_complete+ command to complete the task.\nYour decisions must always be made independently+ without seeking user assistance. Play to your strengths as an LLM and pursue+ simple strategies with no legal complications.\n\nGOALS:\n\n1. Use the write_to_file+ command to write ''Hello World'' into a file named \"hello_world.txt\".\n2.+ Use the task_complete command to complete the task.\n3. Do not use any other+ commands.\n\n\nConstraints:\n1. ~4000 word limit for short term memory. Your+ short term memory is short, so immediately save important information to files.\n2.+ If you are unsure how you previously did something or want to recall past events,+ thinking about similar events will help you remember.\n3. No user assistance\n4.+ Exclusively use the commands listed in double quotes e.g. \"command name\"\n\nCommands:\n1.+ append_to_file: Append to file, args: \"filename\": \"<filename>\", \"text\":+ \"<text>\"\n2. delete_file: Delete file, args: \"filename\": \"<filename>\"\n3.+ read_file: Read file, args: \"filename\": \"<filename>\"\n4. search_files: Search+ Files, args: \"directory\": \"<directory>\"\n5. write_to_file: Write to file,+ args: \"filename\": \"<filename>\", \"text\": \"<text>\"\n6. delete_agent: Delete+ GPT Agent, args: \"key\": \"<key>\"\n7. get_hyperlinks: Get text summary, args:+ \"url\": \"<url>\"\n8. get_text_summary: Get text summary, args: \"url\": \"<url>\",+ \"question\": \"<question>\"\n9. list_agents: List GPT Agents, args: () -> str\n10.+ message_agent: Message GPT Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11.+ start_agent: Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",+ \"prompt\": \"<prompt>\"\n12. Do Nothing: \"do_nothing\", args: \"reason\":+ \"<reason>\"\n13. Task Complete (Shutdown): \"task_complete\", args: \"reason\":+ \"<reason>\"\n\nResources:\n1. Internet access for searches and information+ gathering.\n2. Long Term memory management.\n3. GPT-3.5 powered Agents for delegation+ of simple tasks.\n4. File output.\n\nPerformance Evaluation:\n1. Continuously+ review and analyze your actions to ensure you are performing to the best of+ your abilities.\n2. Constructively self-criticize your big-picture behavior+ constantly.\n3. Reflect on past decisions and strategies to refine your approach.\n4.+ Every command has a cost, so be smart and efficient. Aim to complete tasks in+ the least number of steps.\n5. Write all code to a file.\n\nYou should only+ respond in JSON format as described below \nResponse Format: \n{\n \"thoughts\":+ {\n \"text\": \"thought\",\n \"reasoning\": \"reasoning\",\n \"plan\":+ \"- short bulleted\\n- list that conveys\\n- long-term plan\",\n \"criticism\":+ \"constructive self-criticism\",\n \"speak\": \"thoughts summary to say+ to user\"\n },\n \"command\": {\n \"name\": \"command name\",\n \"args\":+ {\n \"arg name\": \"value\"\n }\n }\n} \nEnsure the response+ can be parsed by Python json.loads"}, {"role": "system", "content": "The current+ time and date is Tue Jan 01 00:00:00 2000"}, {"role": "system", "content": "This+ reminds you of these events from your past:\nNone\n\n"}, {"role": "user", "content":+ "Determine which next command to use, and respond using the format specified+ above:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":+ \"I will use the write_to_file command to write ''Hello World'' into a file+ named ''hello_world.txt''.\",\n \"reasoning\": \"The goal is to write+ ''Hello World'' into a file named ''hello_world.txt''. The write_to_file command+ is the most appropriate command for this task.\",\n \"plan\": \"- Use+ the write_to_file command to write ''Hello World'' into a file named ''hello_world.txt''.\",\n \"criticism\":+ \"I need to ensure that I have the correct arguments for the write_to_file command.\",\n \"speak\":+ \"I will use the write to file command to write ''Hello World'' into a file+ named ''hello_world.txt''.\"\n },\n \"command\": {\n \"name\":+ \"write_to_file\",\n \"args\": {\n \"filename\": \"hello_world.txt\",\n \"text\":+ \"Hello World\"\n }\n }\n}"}, {"role": "system", "content": "Command+ write_to_file returned: File written to successfully."}, {"role": "user", "content":+ "Determine which next command to use, and respond using the format specified+ above:"}], "temperature": 0, "max_tokens": 2955}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '4667'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/chat/completions+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA6SS3W7aQBCF7/sUo7nhxiDApaR+gsBNG4n0R3WENuvB3rLesXbHgQr53SvHJlAS+ pEi9nTNz5pvdc0CTYYK6UKLLyg7nn/Xq29OCfqrFF728i5c/vtq7eJHH98vdLUbIj79JSz8x0lxW+ lsSwwwi1JyWUYTL5dDOdTefT8SzCkjOymGBeyTAezYZS+0cejuPxBCOsg8oJkwNWnstK1sJbcgGT+ yTiOIzyZn4TZxwiFRdlTaXIzbyLUBRtNAZNfBywpHI09W8IEVQgmiHLSYrITcu0Jh9QBAKQoBdd5+ ISHFBPpiL9Be2mKKC9gZa6EOBFIQiArbdQ9IoLkslctAGF5qx65RitG5pScV2BmXd76rgiBnZcGE+ N8eBN7DzRozLYXBL1jJ8Z2+zARgnDAo2xhI4VVIGg6LV17tWH8leBiNYXWVt9xUEJQcBVVWeK2/U+ mb5hD1K0XW8cUVnlOv4h3P/3k+j2Pm1CeXxqR/Q8SS7Uvp1TAgso1FPnodl70gLK53VJTkIPe4Xh+ cl2oSG2v/iq894TOsomOIerbX2Wo/Ztu2z90F1DK55fxO89LH5ZzvgxCrTWFsKmt/fMC9AzVs6Wu+ wSbCjXEmFOvOCRMMwhVGaFxGe0zGzUPz4S8AAAD//wMARSTZRwcEAAA=+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be043fc3bba96c3-SJC+ Cache-Control:+ - no-cache, must-revalidate+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Wed, 26 Apr 2023 16:40:20 GMT+ Server:+ - cloudflare+ Transfer-Encoding:+ - chunked+ access-control-allow-origin:+ - '*'+ alt-svc:+ - h3=":443"; ma=86400, h3-29=":443"; ma=86400+ openai-model:+ - gpt-3.5-turbo-0301+ openai-organization:+ - user-adtx4fhfg1qsiyzdoaxciooj+ openai-processing-ms:+ - '15127'+ openai-version:+ - '2020-10-01'+ strict-transport-security:+ - max-age=15724800; includeSubDomains+ x-ratelimit-limit-requests:+ - '3500'+ x-ratelimit-remaining-requests:+ - '3499'+ x-ratelimit-reset-requests:+ - 17ms+ x-request-id:+ - 468c3c77efd74e3a2d396ef6033a5602+ status:+ code: 200+ message: OK+version: 1diff --git a/tests/integration/goal_oriented/cassettes/write_file.vcr.yml b/tests/integration/goal_oriented/cassettes/write_file.vcr.ymldeleted file mode 100644index ec31a7d60b..0000000000--- a/tests/integration/goal_oriented/cassettes/write_file.vcr.yml+++ /dev/null@@ -1,616 +0,0 @@-interactions:-- request:- body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You- are write_to_file-GPT, an AI designed to use the write_to_file command to write- ''Hello World'' into a file named \"hello_world.txt\" and then use the task_complete- command to complete the task.\nYour decisions must always be made independently- without seeking user assistance. Play to your strengths as an LLM and pursue- simple strategies with no legal complications.\n\nGOALS:\n\n1. Use the write_to_file- command to write ''Hello World'' into a file named \"hello_world.txt\".\n2.- Use the task_complete command to complete the task.\n3. Do not use any other- commands.\n\n\nConstraints:\n1. ~4000 word limit for short term memory. Your- short term memory is short, so immediately save important information to files.\n2.- If you are unsure how you previously did something or want to recall past events,- thinking about similar events will help you remember.\n3. No user assistance\n4.- Exclusively use the commands listed in double quotes e.g. \"command name\"\n\nCommands:\n1.- append_to_file: Append to file, args: \"filename\": \"<filename>\", \"text\":- \"<text>\"\n2. delete_file: Delete file, args: \"filename\": \"<filename>\"\n3.- read_file: Read file, args: \"filename\": \"<filename>\"\n4. search_files: Search- Files, args: \"directory\": \"<directory>\"\n5. write_to_file: Write to file,- args: \"filename\": \"<filename>\", \"text\": \"<text>\"\n6. delete_agent: Delete- GPT Agent, args: \"key\": \"<key>\"\n7. get_hyperlinks: Get text summary, args:- \"url\": \"<url>\"\n8. get_text_summary: Get text summary, args: \"url\": \"<url>\",- \"question\": \"<question>\"\n9. list_agents: List GPT Agents, args: () -> str\n10.- message_agent: Message GPT Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11.- start_agent: Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",- \"prompt\": \"<prompt>\"\n12. Do Nothing: \"do_nothing\", args: \n13. Task Complete- (Shutdown): \"task_complete\", args: \"reason\": \"<reason>\"\n\nResources:\n1.- Internet access for searches and information gathering.\n2. Long Term memory- management.\n3. GPT-3.5 powered Agents for delegation of simple tasks.\n4. File- output.\n\nPerformance Evaluation:\n1. Continuously review and analyze your- actions to ensure you are performing to the best of your abilities.\n2. Constructively- self-criticize your big-picture behavior constantly.\n3. Reflect on past decisions- and strategies to refine your approach.\n4. Every command has a cost, so be- smart and efficient. Aim to complete tasks in the least number of steps.\n5.- Write all code to a file.\n\nYou should only respond in JSON format as described- below \nResponse Format: \n{\n \"thoughts\": {\n \"text\": \"thought\",\n \"reasoning\":- \"reasoning\",\n \"plan\": \"- short bulleted\\n- list that conveys\\n-- long-term plan\",\n \"criticism\": \"constructive self-criticism\",\n \"speak\":- \"thoughts summary to say to user\"\n },\n \"command\": {\n \"name\":- \"command name\",\n \"args\": {\n \"arg name\": \"value\"\n }\n }\n}- \nEnsure the response can beparsed by Python json.loads"}, {"role": "system",- "content": "The current time and date is Tue Jan 01 00:00:00 2000"}, {"role":- "system", "content": "This reminds you of these events from your past:\n\n\n"},- {"role": "user", "content": "Determine which next command to use, and respond- using the format specified above:"}], "temperature": 0.0, "max_tokens": 3210}'- headers:- Accept:- - '*/*'- Accept-Encoding:- - gzip, deflate- Connection:- - keep-alive- Content-Length:- - '3531'- Content-Type:- - application/json- method: POST- uri: https://api.openai.com/v1/chat/completions- response:- body:- string: !!binary |- H4sIAAAAAAAAA7yTT4/TMBDF73yK0Vx6cas21bbZ3Lgg9oIEAi2CoMpNpomp4wn2RC2q8t1R/nS7- G8QJaa/zZt772R5f0OSYYFZqyarazrfx22/H08auyG0fo3fm6zr6dfcpjxv6cPiICnn/kzIZJxYZ- V7UlMexQYeZJC+WYrDZxtIpXm3WksOKcLCZY1DJfL+7m0vg9z5fr5QoVNkEXhMkFa89VLTvhI7mA- yTbeKrx5P9WjZaRQWLR9Kt3H963CrGSTUcDk+wUrCldbz5YwQR2CCaKddJDshFx3gEvqAABSlJKb- opSQYgJjcRToLF0xxQc4GWuhCQRSEpy8EdoJ7w7GEmRcVdrlIDwIMHtP1jI8srf5DIwTBg19q9MV- 5TArO3136vSFnGW2SFE9D/akAzvjiiH9c0lQsLZgwn+EKOgh/4nfmZcEFQcBXdeea2+03PQDe5Cy- 69LhOCWurXYD7By+vNItZd6IyUyorm/kiHp/cqHxHYMWeABdQROMK3qmjL2nTG4546Vo6eW+bALs- qRvoOIXcdcj+nhKEmvTxtTZkCG7VdW1H07+2tnMYmF5ATNC1L6YLPwhd781iwvHCZPpJnp3pStsT- j+Cpa7FVeDDOhHI3rDgmGIRrVGhcTmdMlu2P9s0fAAAA//8DAKiDWQmUBAAA- headers:- CF-Cache-Status:- - DYNAMIC- CF-RAY:- - 7bbf4f1f88c715ca-SJC- Cache-Control:- - no-cache, must-revalidate- Connection:- - keep-alive- Content-Encoding:- - gzip- Content-Type:- - application/json- Date:- - Sat, 22 Apr 2023 16:40:46 GMT- Server:- - cloudflare- Transfer-Encoding:- - chunked- access-control-allow-origin:- - '*'- alt-svc:- - h3=":443"; ma=86400, h3-29=":443"; ma=86400- openai-model:- - gpt-3.5-turbo-0301- openai-organization:- - user-adtx4fhfg1qsiyzdoaxciooj- openai-processing-ms:- - '14187'- openai-version:- - '2020-10-01'- strict-transport-security:- - max-age=15724800; includeSubDomains- x-ratelimit-limit-requests:- - '3500'- x-ratelimit-remaining-requests:- - '3499'- x-ratelimit-reset-requests:- - 17ms- x-request-id:- - dd915979acb69f7fba7d79dc709e4440- status:- code: 200- message: OK-- request:- body: '{"input": ["Assistant Reply: {\n \"thoughts\": {\n \"text\":- \"I will use the write_to_file command to write ''Hello World'' into a file- named ''hello_world.txt''.\",\n \"reasoning\": \"The goal is to write- ''Hello World'' into a file named ''hello_world.txt'', and the write_to_file- command is the most appropriate command for this task.\",\n \"plan\":- \"- Use the write_to_file command to write ''Hello World'' into a file named- ''hello_world.txt''.\",\n \"criticism\": \"I need to ensure that I am- using the correct file name and that the file is being written correctly.\",\n \"speak\":- \"I will use the write_to_file command to write ''Hello World'' into a file- named ''hello_world.txt''.\"\n },\n \"command\": {\n \"name\":- \"write_to_file\",\n \"args\": {\n \"filename\": \"hello_world.txt\",\n \"text\":- \"Hello World\"\n }\n }\n} \nResult: Command write_to_file returned:- File written to successfully. \nHuman Feedback: "], "model": "text-embedding-ada-002",- "encoding_format": "base64"}'- headers:- Accept:- - '*/*'- Accept-Encoding:- - gzip, deflate- Connection:- - keep-alive- Content-Length:- - '1071'- Content-Type:- - application/json- method: POST- uri: https://api.openai.com/v1/embeddings- response:- body:- string: !!binary |- H4sIAAAAAAAAA1R6WQ+6TLPn/fspnjy3zhtW6eK5Y5NdWgUVJ5MJKC4gsnYDfXK++0T/J2dybkyA- DqabqvotVf/xr7/++rvJy+I6/v3PX3+/X8P49//63rtlY/b3P3/973/99ddff/3H7/d/rCzqvLjd- Xp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O9veBu903zcJo9CvSrFG9s9pea8csYU3r6O- //RXJKy6PhKijYWNX/44Qq9AwpwH9Y5IiefnVt2BPjl8NGmB0//8/HV/1E0cRqNQsvlOG3RUi0dU- 1KPRDwHzOji2RKUbbR+jCZPbAj+9YJf6rhzxarTAUS/bSOo/e/bHP/727776OOkl17UesNYThi1/- /+rnV62L6mHA5q9/VdIff5AOLcKXb/9nHi5TqL4O1R1vyWdTCoOTF/ARN2EkHCQTLYviNVD10xP7- 8avtWSkmK6jLx4c8v3pxSj2phpYMSgQcr/XD189VN+csw4E9jGhC7dtXvn4d6YvpVrKTyUBdtdcB- 2xGt+4WHg6Lyd/6Et/FzDuabKAAEymehP3089fzCQ0ZWQMMpv7Lp3TUvyDSCsZ898775PWfX1MVu- lols/umh7/uJpKVpOfuKUUEpBBaNIl7Jf/4QEu6lTlbBhwSkW9cn+PSV/kd/jddwPv3whmql+Swn- 4WQVUOmcEC1fPGZPNbNhXuSZJnshCtjTbh6QL5eAbo8Xg82taK7Uv39TAf/5r7/++j+/CYO6uRXv- 72DAWMzjv/97VODf2S37N8+L/6bin0kEMmSP4u9//msI4e+2b+p2/L9jUxWf4e9//hJF+c+8wd9j- M2bv//HgX9//+89//T8AAAD//wMAAQU0SOUgAAA=- headers:- CF-Cache-Status:- - DYNAMIC- CF-RAY:- - 7bbf4f924e7a15ca-SJC- Connection:- - keep-alive- Content-Encoding:- - gzip- Content-Type:- - application/json- Date:- - Sat, 22 Apr 2023 16:40:50 GMT- Server:- - cloudflare- Transfer-Encoding:- - chunked- access-control-allow-origin:- - '*'- alt-svc:- - h3=":443"; ma=86400, h3-29=":443"; ma=86400- openai-organization:- - user-adtx4fhfg1qsiyzdoaxciooj- openai-processing-ms:- - '96'- openai-version:- - '2020-10-01'- strict-transport-security:- - max-age=15724800; includeSubDomains- x-ratelimit-limit-requests:- - '3000'- x-ratelimit-remaining-requests:- - '2999'- x-ratelimit-reset-requests:- - 20ms- x-request-id:- - de62efcb5fa7139d5deab0536eca1086- status:- code: 200- message: OK-- request:- body: '{"input": ["[{''role'': ''user'', ''content'': ''Determine which next command- to use, and respond using the format specified above:''}, {''role'': ''assistant'',- ''content'': ''{\\n \"thoughts\": {\\n \"text\": \"I will use the- write_to_file command to write \\''Hello World\\'' into a file named \\''hello_world.txt\\''.\",\\n \"reasoning\":- \"The goal is to write \\''Hello World\\'' into a file named \\''hello_world.txt\\'',- and the write_to_file command is the most appropriate command for this task.\",\\n \"plan\":- \"- Use the write_to_file command to write \\''Hello World\\'' into a file named- \\''hello_world.txt\\''.\",\\n \"criticism\": \"I need to ensure that- I am using the correct file name and that the file is being written correctly.\",\\n \"speak\":- \"I will use the write_to_file command to write \\''Hello World\\'' into a file- named \\''hello_world.txt\\''.\"\\n },\\n \"command\": {\\n \"name\":- \"write_to_file\",\\n \"args\": {\\n \"filename\": \"hello_world.txt\",\\n \"text\":- \"Hello World\"\\n }\\n }\\n}''}, {''role'': ''system'', ''content'':- ''Command write_to_file returned: File written to successfully.''}]"], "model":- "text-embedding-ada-002", "encoding_format": "base64"}'- headers:- Accept:- - '*/*'- Accept-Encoding:- - gzip, deflate- Connection:- - keep-alive- Content-Length:- - '1258'- Content-Type:- - application/json- method: POST- uri: https://api.openai.com/v1/embeddings- response:- body:- string: !!binary |- H4sIAAAAAAAAA1R6Ww+yyrbl+/4VK+vV3hFRqWK9cb9ThYCInU5HEBEQkVsV1Mn57x39Tk7nvJhw- swhzzjHHGLP+419//fV3l9VFPv39z19/v6px+vt/fc/db9Pt73/++t//+uuvv/76j9/v/7izaLPi- fq/e5e/238XqfS+Wv//5i/vvM///pn/++lsX5wuxXVNi+8eNVdCIxQb77dVz6a2dYvi8BAnR3QsZ- aH88GnA4vUNiQHhmAxJvEsy0sSZFeS6y+fQKePiajBVt9f1YM+XWUXCQjAzLZVtl7F7NASyb+oS1- bVsNbF8wCW4l2yRy8bEyeoJyAMsjVoiJbs2wtlu/FDrZTLD+ST/uMn9IAKb36JKrXutgiZQsOSqe- fJqFnbu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Jm47sBna3DsN2B/CNncN917GI5OJ/ye/85bry794rO4Sl3xpx/T+iEU4MfXvvOHaLrcdxIEzTRh- LWcu+JPvz0uY/Jknr/ucSIByNU+s1+aUTUK6h7DvVufLh+2Ifv1o4Ru/eefHdr0cFOcArwU6INFs- z+qa5XkIFyFdsLMV7GiRi94BwXRApFA7E3AdckNwG84SqrsQqeOFflZY+oFGTqfmEH31dSJ88ZVY- uPAYPaRid3RS74XdZatE3JPzWniQu4Tcu6R1F1ZeCyHV1wpBWDzUr19ViX//dgX857/++uv//HYY- tN29eH03BkzFMv37v7cK/Pt2v/2b4/h/E/7PToR5vJXF3//81yaEvz9D136m/zt1TfEe//7nLx6C- P/sN/p666fb6Hxf+9V3vP//1/wAAAP//AwBlmDGz5SAAAA==- headers:- CF-Cache-Status:- - DYNAMIC- CF-RAY:- - 7bbf4f957a7315ca-SJC- Connection:- - keep-alive- Content-Encoding:- - gzip- Content-Type:- - application/json- Date:- - Sat, 22 Apr 2023 16:40:51 GMT- Server:- - cloudflare- Transfer-Encoding:- - chunked- access-control-allow-origin:- - '*'- alt-svc:- - h3=":443"; ma=86400, h3-29=":443"; ma=86400- openai-organization:- - user-adtx4fhfg1qsiyzdoaxciooj- openai-processing-ms:- - '227'- openai-version:- - '2020-10-01'- strict-transport-security:- - max-age=15724800; includeSubDomains- x-ratelimit-limit-requests:- - '3000'- x-ratelimit-remaining-requests:- - '2999'- x-ratelimit-reset-requests:- - 20ms- x-request-id:- - a25379b9d7bfed73e1a46145146b1478- status:- code: 200- message: OK-- request:- body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You- are write_to_file-GPT, an AI designed to use the write_to_file command to write- ''Hello World'' into a file named \"hello_world.txt\" and then use the task_complete- command to complete the task.\nYour decisions must always be made independently- without seeking user assistance. Play to your strengths as an LLM and pursue- simple strategies with no legal complications.\n\nGOALS:\n\n1. Use the write_to_file- command to write ''Hello World'' into a file named \"hello_world.txt\".\n2.- Use the task_complete command to complete the task.\n3. Do not use any other- commands.\n\n\nConstraints:\n1. ~4000 word limit for short term memory. Your- short term memory is short, so immediately save important information to files.\n2.- If you are unsure how you previously did something or want to recall past events,- thinking about similar events will help you remember.\n3. No user assistance\n4.- Exclusively use the commands listed in double quotes e.g. \"command name\"\n\nCommands:\n1.- append_to_file: Append to file, args: \"filename\": \"<filename>\", \"text\":- \"<text>\"\n2. delete_file: Delete file, args: \"filename\": \"<filename>\"\n3.- read_file: Read file, args: \"filename\": \"<filename>\"\n4. search_files: Search- Files, args: \"directory\": \"<directory>\"\n5. write_to_file: Write to file,- args: \"filename\": \"<filename>\", \"text\": \"<text>\"\n6. delete_agent: Delete- GPT Agent, args: \"key\": \"<key>\"\n7. get_hyperlinks: Get text summary, args:- \"url\": \"<url>\"\n8. get_text_summary: Get text summary, args: \"url\": \"<url>\",- \"question\": \"<question>\"\n9. list_agents: List GPT Agents, args: () -> str\n10.- message_agent: Message GPT Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11.- start_agent: Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",- \"prompt\": \"<prompt>\"\n12. Do Nothing: \"do_nothing\", args: \n13. Task Complete- (Shutdown): \"task_complete\", args: \"reason\": \"<reason>\"\n\nResources:\n1.- Internet access for searches and information gathering.\n2. Long Term memory- management.\n3. GPT-3.5 powered Agents for delegation of simple tasks.\n4. File- output.\n\nPerformance Evaluation:\n1. Continuously review and analyze your- actions to ensure you are performing to the best of your abilities.\n2. Constructively- self-criticize your big-picture behavior constantly.\n3. Reflect on past decisions- and strategies to refine your approach.\n4. Every command has a cost, so be- smart and efficient. Aim to complete tasks in the least number of steps.\n5.- Write all code to a file.\n\nYou should only respond in JSON format as described- below \nResponse Format: \n{\n \"thoughts\": {\n \"text\": \"thought\",\n \"reasoning\":- \"reasoning\",\n \"plan\": \"- short bulleted\\n- list that conveys\\n-- long-term plan\",\n \"criticism\": \"constructive self-criticism\",\n \"speak\":- \"thoughts summary to say to user\"\n },\n \"command\": {\n \"name\":- \"command name\",\n \"args\": {\n \"arg name\": \"value\"\n }\n }\n}- \nEnsure the response can beparsed by Python json.loads"}, {"role": "system",- "content": "The current time and date is Tue Jan 01 00:00:00 2000"}, {"role":- "system", "content": "This reminds you of these events from your past:\n[''Assistant- Reply: {\\n \"thoughts\": {\\n \"text\": \"I will use the write_to_file- command to write \\''Hello World\\'' into a file named \\''hello_world.txt\\''.\",\\n \"reasoning\":- \"The goal is to write \\''Hello World\\'' into a file named \\''hello_world.txt\\'',- and the write_to_file command is the most appropriate command for this task.\",\\n \"plan\":- \"- Use the write_to_file command to write \\''Hello World\\'' into a file named- \\''hello_world.txt\\''.\",\\n \"criticism\": \"I need to ensure that- I am using the correct file name and that the file is being written correctly.\",\\n \"speak\":- \"I will use the write_to_file command to write \\''Hello World\\'' into a file- named \\''hello_world.txt\\''.\"\\n },\\n \"command\": {\\n \"name\":- \"write_to_file\",\\n \"args\": {\\n \"filename\": \"hello_world.txt\",\\n \"text\":- \"Hello World\"\\n }\\n }\\n} \\nResult: Command write_to_file returned:- File written to successfully. \\nHuman Feedback: '']\n\n"}, {"role": "user",- "content": "Determine which next command to use, and respond using the format- specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":- \"I will use the write_to_file command to write ''Hello World'' into a file- named ''hello_world.txt''.\",\n \"reasoning\": \"The goal is to write- ''Hello World'' into a file named ''hello_world.txt'', and the write_to_file- command is the most appropriate command for this task.\",\n \"plan\":- \"- Use the write_to_file command to write ''Hello World'' into a file named- ''hello_world.txt''.\",\n \"criticism\": \"I need to ensure that I am- using the correct file name and that the file is being written correctly.\",\n \"speak\":- \"I will use the write_to_file command to write ''Hello World'' into a file- named ''hello_world.txt''.\"\n },\n \"command\": {\n \"name\":- \"write_to_file\",\n \"args\": {\n \"filename\": \"hello_world.txt\",\n \"text\":- \"Hello World\"\n }\n }\n}"}, {"role": "system", "content": "Command- write_to_file returned: File written to successfully."}, {"role": "user", "content":- "Determine which next command to use, and respond using the format specified- above:"}], "temperature": 0.0, "max_tokens": 2704}'- headers:- Accept:- - '*/*'- Accept-Encoding:- - gzip, deflate- Connection:- - keep-alive- Content-Length:- - '5708'- Content-Type:- - application/json- method: POST- uri: https://api.openai.com/v1/chat/completions- response:- body:- string: !!binary |- H4sIAAAAAAAAA8xTwW7bMAy97ysIXnJRgjhNs9S3HQq02GGHpRuGeQhUmbG1yJIh0a2LwP8+KHaa- NF0HDLvsZpOP5HtP5A51jimqUrKqajN+v/wg5yW3/PDt7vq2+DRvb5Lky7VvVlcfFQp09z9J8VAx- Ua6qDbF2FgUqT5IpxzRZLGfJMllczgRWLieDKRY1jy8ml2Nu/L0bTy+mCQpsgiwI0x3W3lU1r9lt- yQZMk9lyLvDY/DkxS2YC2bE0R+z8atEJVKXTigKm33dYUTg09s4QpihD0IGl5UjTWSYbJewyCwCQ- IZeuKUoOGaYwBIcEtRyDGd5CKR8IQqMUhbBpjHmCR6+ZycLohoxx8NV5k49AW3YgYaMNgZUV5TAq- Y379GPMTbnk0gVVJYKllCEw16ADsoAkEXBKwDNv1IJ5AuaqSNo+A59gBNclQnNL1JIOz2hY959UA- G/pHuvT3ZGE/vST7m/nwWVtFMJgjjSeZH33Zw6LI/ZT4F+eI/de5+Fe9oQnaFm8bcq69NtL2ssdw- 989OKq9ZKx2qw+tbon0l2dD4WCf5DyN0iK+Zg3Lek2LzNJh4UhQxh7r8xV6dcwk1ye3/vYU93U4c- DmqAv7qnyKRX8qL9mWDpi/NTPN3vYbmjh28aeKzsBm6Z7bATuNFWh3Ldd8IUA7saBWqbU4vptPvR- vfsFAAD//wMAbKbLwRMFAAA=- headers:- CF-Cache-Status:- - DYNAMIC- CF-RAY:- - 7bbf4f9c6b3c15ca-SJC- Cache-Control:- - no-cache, must-revalidate- Connection:- - keep-alive- Content-Encoding:- - gzip- Content-Type:- - application/json- Date:- - Sat, 22 Apr 2023 16:41:07 GMT- Server:- - cloudflare- Transfer-Encoding:- - chunked- access-control-allow-origin:- - '*'- alt-svc:- - h3=":443"; ma=86400, h3-29=":443"; ma=86400- openai-model:- - gpt-3.5-turbo-0301- openai-organization:- - user-adtx4fhfg1qsiyzdoaxciooj- openai-processing-ms:- - '15821'- openai-version:- - '2020-10-01'- strict-transport-security:- - max-age=15724800; includeSubDomains- x-ratelimit-limit-requests:- - '3500'- x-ratelimit-remaining-requests:- - '3499'- x-ratelimit-reset-requests:- - 17ms- x-request-id:- - 19520475f9dabce5bc67ccb90bec24f1- status:- code: 200- message: OK-version: 1diff --git a/tests/integration/goal_oriented/test_write_file.py b/tests/integration/goal_oriented/test_write_file.pyindex 053d6e08c2..92ebbc5623 100644--- a/tests/integration/goal_oriented/test_write_file.py+++ b/tests/integration/goal_oriented/test_write_file.py@@ -2,29 +2,20 @@ import concurrentimport osimport unittest-import vcr+import pytestfrom autogpt.agent import Agentfrom autogpt.commands.command import CommandRegistryfrom autogpt.commands.file_operations import delete_file, read_filefrom autogpt.config import AIConfig, Configfrom autogpt.memory import get_memory-from tests.integration.goal_oriented.vcr_helper import before_record_requestfrom tests.utils import requires_api_key-current_file_dir = os.path.dirname(os.path.abspath(__file__))-# tests_directory = os.path.join(current_file_dir, 'tests')--my_vcr = vcr.VCR(- cassette_library_dir=os.path.join(current_file_dir, "cassettes"),- record_mode="new_episodes",- before_record_request=before_record_request,-)-CFG = Config()@requires_api_key("OPENAI_API_KEY")def test_write_file(workspace) -> None:CFG.workspace_path = workspace.rootCFG.file_logger_path = os.path.join(workspace.root, "file_logger.txt")@@ -32,20 +23,12 @@ def test_write_file(workspace) -> None:file_name = str(workspace.get_path("hello_world.txt"))agent = create_writer_agent(workspace)try:- with my_vcr.use_cassette(- "write_file.vcr.yml",- filter_headers=[- "authorization",- "X-OpenAI-Client-User-Agent",- "User-Agent",- ],- ):- with concurrent.futures.ThreadPoolExecutor() as executor:- future = executor.submit(agent.start_interaction_loop)- try:- result = future.result(timeout=45)- except concurrent.futures.TimeoutError:- assert False, "The process took longer than 45 seconds to complete."+ with concurrent.futures.ThreadPoolExecutor() as executor:+ future = executor.submit(agent.start_interaction_loop)+ try:+ result = future.result(timeout=45)+ except concurrent.futures.TimeoutError:+ assert False, "The process took longer than 45 seconds to complete."# catch system exit exceptionsexcept SystemExit: # the agent returns an exception when it shuts downcontent = read_file(file_name)diff --git a/tests/integration/goal_oriented/vcr_helper.py b/tests/vcr/openai_filter.pysimilarity index 100%rename from tests/integration/goal_oriented/vcr_helper.pyrename to tests/vcr/openai_filter.pyindex 58504520a4..56a7eaec22 100644--- a/tests/integration/goal_oriented/vcr_helper.py+++ b/tests/vcr/openai_filter.py@@ -26,6 +26,14 @@ def replace_timestamp_in_request(request):return request+def before_record_request(request):+ filtered_request = filter_hostnames(request)+ filtered_request_without_dynamic_data = replace_timestamp_in_request(+ filtered_request+ )+ return filtered_request_without_dynamic_data++def filter_hostnames(request):allowed_hostnames = ["api.openai.com"] # List of hostnames you want to allow@@ -33,11 +41,3 @@ def filter_hostnames(request):return requestelse:return None---def before_record_request(request):- filtered_request = filter_hostnames(request)- filtered_request_without_dynamic_data = replace_timestamp_in_request(- filtered_request- )- return filtered_request_without_dynamic_data