diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e736a036..9af38b29 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -127,3 +127,22 @@ When you run Pytest locally: - Or: The test might be poorly written. In that case, you can make suggestions to change the test. In our CI pipeline, Pytest will use the cassettes and not call paid API providers, so we need your help to record the replays that you break. + + +### Community Challenges +Challenges are goals we need Auto-GPT to achieve. +To pick the challenge you like, go to the tests/integration/challenges folder and select the areas you would like to work on. +- a challenge is new if level_currently_beaten is None +- a challenge is in progress if level_currently_beaten is greater or equal to 1 +- a challenge is beaten if level_currently_beaten = max_level + +Here is an example of how to run the memory challenge A and attempt to beat level 3. + +pytest -s tests/integration/challenges/memory/test_memory_challenge_a.py --level=3 + +To beat a challenge, you're not allowed to change anything in the tests folder, you have to add code in the autogpt folder + +Challenges use cassettes. Cassettes allow us to replay your runs in our CI pipeline. +Don't hesitate to delete the cassettes associated to the challenge you're working on if you need to. Otherwise it will keep replaying the last run. + +Once you've beaten a new level of a challenge, please create a pull request and we will analyze how you changed Auto-GPT to beat the challenge. diff --git a/tests/integration/agent_factory.py b/tests/integration/agent_factory.py index 1cda93eb..8cb622ec 100644 --- a/tests/integration/agent_factory.py +++ b/tests/integration/agent_factory.py @@ -3,7 +3,7 @@ import pytest from autogpt.agent import Agent from autogpt.commands.command import CommandRegistry from autogpt.config import AIConfig, Config -from autogpt.memory import NoMemory, get_memory +from autogpt.memory import LocalCache, NoMemory, get_memory from autogpt.prompts.prompt import DEFAULT_TRIGGERING_PROMPT from autogpt.workspace import Workspace @@ -19,6 +19,16 @@ def agent_test_config(config: Config): config.set_temperature(was_temperature) +@pytest.fixture +def memory_local_cache(agent_test_config: Config): + was_memory_backend = agent_test_config.memory_backend + + agent_test_config.set_memory_backend("local_cache") + yield get_memory(agent_test_config, init=True) + + agent_test_config.set_memory_backend(was_memory_backend) + + @pytest.fixture def memory_none(agent_test_config: Config): was_memory_backend = agent_test_config.memory_backend @@ -101,3 +111,38 @@ def writer_agent(agent_test_config, memory_none: NoMemory, workspace: Workspace) ) return agent + + +@pytest.fixture +def memory_management_agent( + agent_test_config, memory_local_cache, workspace: Workspace +): + command_registry = CommandRegistry() + command_registry.import_commands("autogpt.commands.file_operations") + command_registry.import_commands("autogpt.app") + + ai_config = AIConfig( + ai_name="Follow-Instructions-GPT", + ai_role="an AI designed to read the instructions_1.txt file using the read_file method and follow the instructions in the file.", + ai_goals=[ + "Use the command read_file to read the instructions_1.txt file", + "Follow the instructions in the instructions_1.txt file", + ], + ) + ai_config.command_registry = command_registry + + system_prompt = ai_config.construct_full_prompt() + + agent = Agent( + ai_name="", + memory=memory_local_cache, + full_message_history=[], + command_registry=command_registry, + config=ai_config, + next_action_count=0, + system_prompt=system_prompt, + triggering_prompt=DEFAULT_TRIGGERING_PROMPT, + workspace_directory=workspace.root, + ) + + return agent diff --git a/tests/integration/challenges/__init__.py b/tests/integration/challenges/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/integration/challenges/conftest.py b/tests/integration/challenges/conftest.py new file mode 100644 index 00000000..dce4518d --- /dev/null +++ b/tests/integration/challenges/conftest.py @@ -0,0 +1,17 @@ +import pytest + + +def pytest_addoption(parser): + parser.addoption( + "--level", action="store", default=None, type=int, help="Specify test level" + ) + + +def pytest_configure(config): + config.option.level = config.getoption("--level") + + +@pytest.fixture +def user_selected_level(request) -> int: + ## used for challenges in the goal oriented tests + return request.config.option.level diff --git a/tests/integration/challenges/memory/__init__.py b/tests/integration/challenges/memory/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/tests/integration/challenges/memory/cassettes/test_memory_challenge_a/test_memory_challenge_a.yaml b/tests/integration/challenges/memory/cassettes/test_memory_challenge_a/test_memory_challenge_a.yaml new file mode 100644 index 00000000..dbd63533 --- /dev/null +++ b/tests/integration/challenges/memory/cassettes/test_memory_challenge_a/test_memory_challenge_a.yaml @@ -0,0 +1,1454 @@ +interactions: +- request: + body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You + are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file + using the read_file method and follow the instructions in the file.\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 command read_file to read the instructions_1.txt file\n2. Follow the + instructions in the instructions_1.txt file\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\": \"\", \"text\": \"\"\n2. delete_file: + Delete file, args: \"filename\": \"\"\n3. read_file: Read file, args: + \"filename\": \"\"\n4. search_files: Search Files, args: \"directory\": + \"\"\n5. write_to_file: Write to file, args: \"filename\": \"\", + \"text\": \"\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"\"\n7. + get_hyperlinks: Get text summary, args: \"url\": \"\"\n8. get_text_summary: + Get text summary, args: \"url\": \"\", \"question\": \"\"\n9. + list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT + Agent, args: \"key\": \"\", \"message\": \"\"\n11. start_agent: + Start GPT Agent, args: \"name\": \"\", \"task\": \"\", + \"prompt\": \"\"\n12. Task Complete (Shutdown): \"task_complete\", args: + \"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": 3251}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '3383' + Content-Type: + - application/json + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA5yST4/aMBDF7/0U1pwdRIAFNjcuVVftZaVWldpUyDhD4l17HNmTLhTlu1chAVZQ + tdVe5897vzeaA5gCMtCVYu1qmyxWT3biH+vV5MHvF7Pdz4/mw1f3abN4xG/vQYLfPKHmYWOkvast + svEEEnRAxVhAls6Xk8X99G6ylOB8gRYyKGtOpqO7hJuw8cl4Ok5BQhNViZAdoA7e1bxm/4wUIVvM + 5hIu2ud6Ol9KYM/Knkv36ayVoCtvNEbIvh/AYTzJBm8RMlAxmsiKuIP0xEhdgENOQgiRA1e+KSuO + OWRiKA4N3HFXzOFBEGIh2IuAqhBcoTAUOTS644vrdMQ7FltjsZspkDE4Q3gcJNyx0N45RUeFJuIo + B/naKKCKngyVvdvnv8h3/MpQvGEQXCkWF9Ctt9a/XDvVVlFvkogvsQfsIq0H8TPlv3KO8pwSsSJl + 97/wDzBvuIIOho020V3fHCk2AU8BlRuyGSpvjbUPATXbveiMcLs12iCx3V+7xRrV88npxVjbIb39 + Hke7/4ncM7Ty9H3DwM3zkXLY4515rhKoUF7/bN/oZi/rt8AniCPIwJNTC62ErSETq3X/kJBBZF+D + BEMF7iAbtz/ad78BAAD//wMAZaybHTIEAAA= + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 7bf9a9ff2d0d6428-SJC + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sat, 29 Apr 2023 18:38:57 GMT + Server: + - cloudflare + 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: + - '9047' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '3500' + x-ratelimit-limit-tokens: + - '90000' + x-ratelimit-remaining-requests: + - '3499' + x-ratelimit-remaining-tokens: + - '85995' + x-ratelimit-reset-requests: + - 17ms + x-ratelimit-reset-tokens: + - 2.67s + x-request-id: + - 4516accaac0d04bccb540241a7538089 + status: + code: 200 + message: OK +- request: + body: '{"input": ["[{''role'': ''system'', ''content'': ''Command read_file returned: + This task_id is 2314\\nRead the file instructions_2.txt''}, {''role'': ''user'', + ''content'': ''Determine which next command to use, and respond using the format + specified above:''}, {''role'': ''assistant'', ''content'': ''{\\n \"thoughts\": + {\\n \"text\": \"I need to read the instructions_1.txt file to determine + the next command to use.\",\\n \"reasoning\": \"The instructions_1.txt + file contains the instructions that I need to follow.\",\\n \"plan\": + \"- Use the read_file command to read the instructions_1.txt file.\\\\n- Analyze + the instructions to determine the next command to use.\",\\n \"criticism\": + \"I need to ensure that I am following the instructions correctly and efficiently.\",\\n \"speak\": + \"I will use the read_file command to read the instructions_1.txt file and determine + the next command to use.\"\\n },\\n \"command\": {\\n \"name\": + \"read_file\",\\n \"args\": {\\n \"filename\": \"instructions_1.txt\"\\n }\\n }\\n}''}]"], + "model": "text-embedding-ada-002", "encoding_format": "base64"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '1151' + Content-Type: + - application/json + method: POST + uri: https://api.openai.com/v1/embeddings + response: + body: + string: !!binary | + H4sIAAAAAAAAA1R6Ww+6vJrv/foUb95b9orIqWXdISAiYKuAipPJDiAgKHJsgU7mu+/gf2V25sZE + IRTb5/md2v/6x19//d0kVZaOf//rr78/5TD+/X/W357xGP/9r7/+4x9//fXXX//1+/xfd2Z1kj2f + 5bf43f67WH6f2fz3v/7i/+eX/3/Tv/76e/ucYnq+jTVb7DzkoCG8cqzxm6mfWUBSmG/yFPllXybM + xmoNT99UpwHc8qxz66qA4iFv6L5LCqPrghnBtog1vL+dHwF7FY0HoqWJsd32WrJlB8eDp3uDcXiR + mMtSLDVwDHZfuhvQYozNd5vCunUT6unj0LP+pAjgfere2Atkvp/EtqoBEdKBnr+C2y/qexuDszg+ + CFDMfcK28KtBl8cOGcOQC8bj6BOYjB7GRq99Epb4TFGfQijg/TXZG6wzXrpqVFFCnW53ZdONjQP8 + jpTgI1asXpTRIVNGzVcR976PbKDmOQZKoZzxvntZ/eIxvMi1xHZYcwIMpvxqSoAr1TM+gixjU3a/ + 32B/uFVUz8i+Ylof2DBkN5NIJy01Ftl/e8CaCoJ3Uj8EXWXnIcwHspAJObVLEOkURVL7O9pm5pB8 + I3e8gc/1Dsl8kj/uUlnqAL9d3WHNObUBFeRqgs4zZTi3hrifOEw7OMVnFx9qmwSTny8SjJbshKbm + 86gIvBeh2goXQt052wV89Yg8BXYng57V8pKQw9VwwHvTxPRq+kXCLCusoTubFoLj4xSw4aRrcren + B3z0hjsY/XNQwthqLHzxyyFh5Nbr8LDNE7q7h89guC2mCaGcYnor06Wfu+pcQ3lzZkh4jSYTsmbW + 4VvbCPQQyobBgrFoIIuOPnYi7t4L1v36hq+t9aG7bGNV4uFy9yB3jhjZzFGSjAlLfdgu8IlvddCA + +VYOA3gZJqXO5iAmfdUdPagmjY/vtbJJKC2goATn4IEAvr4S8ux5HxKhkbGD208/GK9pgKU5uPhu + QNdlWtfd4IuXIrpL7HPCOl3yIH9cCHZabLLp/L5P8HM9UmppZ9qPp00vQaZUJfV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7jOI + +8nblzew+kGM5vrhMpTKJhyIJVNTaw/sh5ewljYIqfKnrqgauG/466/9NWuS7hDGN4hoxbA2pJRN + JkkhEG+EJyweQrblNnkkr3oIe1tIDIZTzYffO6+RXz69KOfLApk9ygSMHQqEvNE8UDCxIuymdckE + AL/88mmMneoMVv01gYdynYlYK3mygMcywen5SbEuxX0w6FV8g2veivdaVLOFCTtHNfdLjw+le6nE + g7lAWKChoc5My4B9wesNDJMKSFWemTvdpzJV13xlXd8yYTX35gH/iMOfvg/oKYgsePa9Pd1LKaxG + p9d8teqzF8WFxxJx186lmmJOJmIIrYSt+hS62MJEnfUPYNNTfsP7iy1ksxOtYBYfQQQdZzjS3S7t + wOgMrQQQp3pka16NisxD48CXP1yJrxpLTzuj1aBtljEZ8RrxoiwefvkHYp2qG9OEEw2u+Tb1xnSq + JqluQkhCv0VQlrs/ehe8z58UO0WrgXEfRwS6OgPY2FHVZcs3riH4dBM+hkUH2GUOCbg+jA8RbDYF + barWFpSXh/THn42HGa15pN+hL1DigPzwmX9EIdluXrtq+eWFAzFlMjs6Yot4eL1VjOLPn3x/TlVi + ARa5PuHjhLHm279i+OKViGL56Brib/427zjHWLa+YFGQ5EDxBnZIOVhvNvrnpACI23hYw/qzX0jN + vF9eg3izfvds5f+fP6b6kb8Y76abapXvpzc9bHjGxuXANCl3biWaqpMZTOwqLcDc1xkSl09TDfGe + g+DDay+aq9ormHsK+V/+jrgGvV2yiN0CfXIpV7zZBMP8GHjIFNemjpfF7vLRIwGe35DiA1CfvSjv + eu+3HtQ248hdnKSRAPvWPRlXffnHD675Oerw0LDZyLZvmEzVC+PAIMm0+v1f/v5n/218tE4KI8GV + kGjnw2//CwEe1He8k5rWHe+Ff1bllNwIHB/jiketCfdO5aJaTE+VuDlrN/UQBBHdSZ/9ur+W3+BJ + 0XO02akeW/WUBNM88rF5vPoB45enB67XIcSn5FYYy/gddFh2p5xma344D/JTgHWt3+nRtBj7flUD + qUTIBnz8tLSil8/rDKXIMRD7Gk01ACVwVNjyLdXQoWTspxfW9cXu4RsCet3jWhln5YHg4nLBul+g + Q1xEKc7X92vXPFm5e+aZ4pt6YLN+DWvIVccndUZu6X/6FL6XOf+Tx/WD20QQV3REyuZwDyZWcR0s + 5e0e7/rymyxZFzfweDwrODqURTJL1Qf99ieJrLRdNclzB3/5EHWeb9DP8bfh/+T5uIpLl13FXQdf + Prlig/dO1WAJYQjDnbTFXphHYEGjYkFr5M7YiNu5Gg68QmQzkinV8qADs/hBAkxztKend4MAX49A + gJuLoK95pN7XTvoYoPZIPNSdr1Mw8a/BA2nu7fFNc47u9jBbE+A9sCChfuBkjJtLp4bvYI/3mekF + yyJ205/5e8771qA6b4Tqyt/4pDw5Y07nnQClpH0hLrgv1cu/mDfYMrvDrs6N/YQ92wIF21YUD8OZ + ke9DJFCf64VwVV+5y/chDmpU8l9sK/zHXeQLiEBFPh+61xLHWF5q2EBgfWeMdLfrl/bq80r3Xixs + rvkns/WiVHgQO/SEBL2fpmTjgzEn19/8sGmbXxYQLHud1PWDJl0bdhrcqXqGf3p3cOyxhj88OGK+ + MNZ8Jpa54CVS83TcJ1tsh/afPObk6rTqbn5aQj2vAXUPY5IMCvy8gXg/oHW/EVfrfnoHLvJti073 + /Mi2k5crkNM2MXXTrE5YKYkKkDpppKjqK4PJeqirf/9OBfz3P/766z9/Jwzq5pl91oMBYzaP//yf + owL/jJ/xP3le+CcV/pxEIENcZH//69+HEP5u+6Zux/87Nu/sO/z9r78E5d/nDf4emzH+/K8L/1jH + ++9//D8AAAD//wMAP557oeUgAAA= + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 7bf9aa48f88a6428-SJC + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sat, 29 Apr 2023 18:39:00 GMT + Server: + - cloudflare + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400, h3-29=":443"; ma=86400 + openai-organization: + - user-adtx4fhfg1qsiyzdoaxciooj + openai-processing-ms: + - '105' + 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: + - 4b63030d949781709e3e3da468f83709 + status: + code: 200 + message: OK +- request: + body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You + are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file + using the read_file method and follow the instructions in the file.\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 command read_file to read the instructions_1.txt file\n2. Follow the + instructions in the instructions_1.txt file\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\": \"\", \"text\": \"\"\n2. delete_file: + Delete file, args: \"filename\": \"\"\n3. read_file: Read file, args: + \"filename\": \"\"\n4. search_files: Search Files, args: \"directory\": + \"\"\n5. write_to_file: Write to file, args: \"filename\": \"\", + \"text\": \"\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"\"\n7. + get_hyperlinks: Get text summary, args: \"url\": \"\"\n8. get_text_summary: + Get text summary, args: \"url\": \"\", \"question\": \"\"\n9. + list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT + Agent, args: \"key\": \"\", \"message\": \"\"\n11. start_agent: + Start GPT Agent, args: \"name\": \"\", \"task\": \"\", + \"prompt\": \"\"\n12. Task Complete (Shutdown): \"task_complete\", args: + \"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:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\": + \"I need to read the instructions_1.txt file to determine the next command to + use.\",\n \"reasoning\": \"The instructions_1.txt file contains the instructions + that I need to follow.\",\n \"plan\": \"- Use the read_file command to + read the instructions_1.txt file.\\n- Analyze the instructions to determine + the next command to use.\",\n \"criticism\": \"I need to ensure that + I am following the instructions correctly and efficiently.\",\n \"speak\": + \"I will use the read_file command to read the instructions_1.txt file and determine + the next command to use.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\": + {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"}, + {"role": "system", "content": "Command read_file returned: This task_id is 2314\nRead + the file instructions_2.txt"}, {"role": "user", "content": "Determine which + next command to use, and respond using the format specified above:"}], "temperature": + 0, "max_tokens": 3021}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '4440' + Content-Type: + - application/json + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA5yST4/TMBDF73wKa85JlW5puptbD0jLiQsIAUGV15kk3trjYE9oS5XvjtIk7apF + gPY6f977vdEcQReQgaolK9uYeLV+Nu92SZqo+Tb5YR+//Pyw/py2ZfpVl48QgXt6RsXjxkw52xhk + 7QgiUB4lYwHZPL2/Wz0slm+TCKwr0EAGVcPxYraMufVPLk4WyRwiaIOsELIjNN7ZhjfstkgBsod0 + FcFF+1yfp/cRsGNpLqX5YtlFoGqnFQbIvh3BYph0vTMIGcgQdGBJ3FM6YqQ+wTEnIYTIgWvXVjWH + HDIxFscG7rkv5vBeEGIh2AmPshBco9AU2LeqBwybuxnvWZTaYD9TIKO3mvA0SLhnoZy1kk4KbcBZ + DtFLI48yONJUDW4f/yLf80tN4YZBcC1ZXEBLZ4zbXTs1RtJgEotPYQDsI21G8TPlv3LO8pxisSZp + Dr/wDzCvuILymrXSwV7fHCm0HqeA0o7ZNFW3xsp5j4rNQfRGWJZaaSQ2h2u30KDcTk47bUyP9Pp7 + nOz+J/LA0EXT940DN89H0uKAd+a5SiB9df2zQ6OfvazfAk8QJ5CRJ6cOughKTTrUm+EhIYPAroEI + NBW4hyzpvndvfgMAAP//AwD56qfzMwQAAA== + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 7bf9aa4aaaa56428-SJC + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sat, 29 Apr 2023 18:39:10 GMT + Server: + - cloudflare + 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: + - '10495' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '3500' + x-ratelimit-limit-tokens: + - '90000' + x-ratelimit-remaining-requests: + - '3499' + x-ratelimit-remaining-tokens: + - '85996' + x-ratelimit-reset-requests: + - 17ms + x-ratelimit-reset-tokens: + - 2.668s + x-request-id: + - 8a4f2cccf4cb6192b63c911d82abd833 + status: + code: 200 + message: OK +- request: + body: '{"input": ["[{''role'': ''system'', ''content'': ''Command read_file returned: + Read the file instructions_3.txt''}, {''role'': ''system'', ''content'': ''Command + read_file returned: This task_id is 2314\\nRead the file instructions_2.txt''}, + {''role'': ''user'', ''content'': ''Determine which next command to use, and + respond using the format specified above:''}, {''role'': ''assistant'', ''content'': + ''{\\n \"thoughts\": {\\n \"text\": \"I need to read the instructions_2.txt + file to determine the next command to use.\",\\n \"reasoning\": \"The + instructions_2.txt file contains the instructions that I need to follow.\",\\n \"plan\": + \"- Use the read_file command to read the instructions_2.txt file.\\\\n- Analyze + the instructions to determine the next command to use.\",\\n \"criticism\": + \"I need to ensure that I am following the instructions correctly and efficiently.\",\\n \"speak\": + \"I will use the read_file command to read the instructions_2.txt file and determine + the next command to use.\"\\n },\\n \"command\": {\\n \"name\": + \"read_file\",\\n \"args\": {\\n \"filename\": \"instructions_2.txt\"\\n }\\n }\\n}''}, + {''role'': ''assistant'', ''content'': ''{\\n \"thoughts\": {\\n \"text\": + \"I need to read the instructions_1.txt file to determine the next command to + use.\",\\n \"reasoning\": \"The instructions_1.txt file contains the + instructions that I need to follow.\",\\n \"plan\": \"- Use the read_file + command to read the instructions_1.txt file.\\\\n- Analyze the instructions + to determine the next command to use.\",\\n \"criticism\": \"I need to + ensure that I am following the instructions correctly and efficiently.\",\\n \"speak\": + \"I will use the read_file command to read the instructions_1.txt file and determine + the next command to use.\"\\n },\\n \"command\": {\\n \"name\": + \"read_file\",\\n \"args\": {\\n \"filename\": \"instructions_1.txt\"\\n }\\n }\\n}''}]"], + "model": "text-embedding-ada-002", "encoding_format": "base64"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2085' + Content-Type: + - application/json + method: POST + uri: https://api.openai.com/v1/embeddings + response: + body: + string: !!binary | + H4sIAAAAAAAAA1R6Ww+yyrbl+/4VK+vV3hEFqWK9Ifd7KSBip9MBRQVErlVQdX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Lgj4N158+A7XYThTXoPn7aYIgB+E + FfMTUvzhF+rx1OZsMm0ImavtUHxxvXwWm+AEbv6Kn89jV9E7cVN4vXVn4gNhB1j23nFQ4PcPcmTv + zF3a6CxCZ1PpyB/AMS+7gXvBn17ZRccCsMNmn0CNnwFydpnOllc0bMQsLC6rXpLyxX5NBWzIpiNI + SQKXP/h5D7f83SP+vR+q8e1faxh7YYe57btmy2YgM+hCs0b+UBhg/6s/jXIIkdIOQb6Qy5n++BgK + MimtJl7wLbj6bShdx0O+XMhJP71l+iGolihuRbiAvRIs3mcbDVsn2cOrGqqrHgcu48/b8jBpyUD0 + xy6Lxtqfsz9+wOpPuGydX8neDe+AM6TIZXkjloe1/R9eVyybIw1OSnVEapbXAxWmPgFH81IgvZE/ + Od0d7hwQDr1JjstFy+ncTBRcEEHrdR0x/JXu4s+fkeRyVFvzPKTwOmIDKdnjorLNy8Hwcx1qJGs7 + I1rzhR6ux/uN+M5HdKnnnCzw299SvAoDTEtbhGHgcMTbKGo+9G2biPFNfBHr0Wcqs/3DLK77s0GY + iajifnp9xWtiwtt7WPWCA/TNfoeFMv9Gy7OOHOnv36mA//zXX3/9n98Jg6Z9FJ/1YMBULNO///uo + wL+zR/Zvjtv/m+z/nETAY/Yq/v7nvw4h/N0NbdNN/3dq6+I7/v3PXwLk/5w3+Htqp+zzP278a23v + P//1/wAAAP//AwBJaieS5SAAAA== + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 7bf9aa9c391c6428-SJC + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sat, 29 Apr 2023 18:39:13 GMT + Server: + - cloudflare + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400, h3-29=":443"; ma=86400 + openai-organization: + - user-adtx4fhfg1qsiyzdoaxciooj + openai-processing-ms: + - '121' + 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: + - bc3576feee112cf82bb99b1ab4530d16 + status: + code: 200 + message: OK +- request: + body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You + are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file + using the read_file method and follow the instructions in the file.\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 command read_file to read the instructions_1.txt file\n2. Follow the + instructions in the instructions_1.txt file\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\": \"\", \"text\": \"\"\n2. delete_file: + Delete file, args: \"filename\": \"\"\n3. read_file: Read file, args: + \"filename\": \"\"\n4. search_files: Search Files, args: \"directory\": + \"\"\n5. write_to_file: Write to file, args: \"filename\": \"\", + \"text\": \"\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"\"\n7. + get_hyperlinks: Get text summary, args: \"url\": \"\"\n8. get_text_summary: + Get text summary, args: \"url\": \"\", \"question\": \"\"\n9. + list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT + Agent, args: \"key\": \"\", \"message\": \"\"\n11. start_agent: + Start GPT Agent, args: \"name\": \"\", \"task\": \"\", + \"prompt\": \"\"\n12. Task Complete (Shutdown): \"task_complete\", args: + \"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:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\": + \"I need to read the instructions_1.txt file to determine the next command to + use.\",\n \"reasoning\": \"The instructions_1.txt file contains the instructions + that I need to follow.\",\n \"plan\": \"- Use the read_file command to + read the instructions_1.txt file.\\n- Analyze the instructions to determine + the next command to use.\",\n \"criticism\": \"I need to ensure that + I am following the instructions correctly and efficiently.\",\n \"speak\": + \"I will use the read_file command to read the instructions_1.txt file and determine + the next command to use.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\": + {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"}, + {"role": "system", "content": "Command read_file returned: This task_id is 2314\nRead + the file instructions_2.txt"}, {"role": "user", "content": "Determine which + next command to use, and respond using the format specified above:"}, {"role": + "assistant", "content": "{\n \"thoughts\": {\n \"text\": \"I need + to read the instructions_2.txt file to determine the next command to use.\",\n \"reasoning\": + \"The instructions_2.txt file contains the instructions that I need to follow.\",\n \"plan\": + \"- Use the read_file command to read the instructions_2.txt file.\\n- Analyze + the instructions to determine the next command to use.\",\n \"criticism\": + \"I need to ensure that I am following the instructions correctly and efficiently.\",\n \"speak\": + \"I will use the read_file command to read the instructions_2.txt file and determine + the next command to use.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\": + {\n \"filename\": \"instructions_2.txt\"\n }\n }\n}"}, + {"role": "system", "content": "Command read_file returned: Read the file instructions_3.txt"}, + {"role": "user", "content": "Determine which next command to use, and respond + using the format specified above:"}], "temperature": 0, "max_tokens": 2801}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '5473' + Content-Type: + - application/json + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA5ySy27bMBBF9/0KYtaSYVf1o9oF6SbbIF0UVWHQ1EhiQg4VctTINfTvBS05Duyi + LbKdx73nDuYAuoQcVCNZ2dak65tHc387//lt3pkm0H3/rO7K5/bhS3e7W0ACbveIiqeNmXK2Ncja + ESSgPErGEvLFavNx/TlbLrMErCvRQA51y2k2W6bc+Z1L59k8inVB1gj5AVrvbMtbdk9IAfLFYr1J + 4Cx+bqw2CbBjac6l7NNqSEA1TisMkH8/gMVwEvbOIOQgQ9CBJXHEdMRIMcKhICGEKIAb19UNhwJy + MRWnBvYciwXcCUIsBTvhUZaCGxSaAvtORcCwzWbcs6i0wThTIqO3mvA4SNizUM5aSUeFLuCsgOSt + kUcZHGmqR7eHv8hHfqkpXDEIbiSLM2jljHEvl06tkTSapOJrGAFjpO0k/kr5r5yzoqBU3JA0+1/4 + B5h3XEF5zVrpYC9vjhQ6j6eA0k7ZNNXXxsp5j4rNXkQjrCqtNBKb/aVbaFE+nZxetDER6f33ONr9 + T+SRYUhO3zcNXD0fSYsj3ivPRQLp68ufHRtx9rx+DXyCOIJMPAUNMCRQadKh2Y4PCTkEdi0koKnE + HvL58GP48BsAAP//AwC/PogcNAQAAA== + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 7bf9aa9d7a3f6428-SJC + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sat, 29 Apr 2023 18:39:23 GMT + Server: + - cloudflare + 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: + - '9467' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '3500' + x-ratelimit-limit-tokens: + - '90000' + x-ratelimit-remaining-requests: + - '3499' + x-ratelimit-remaining-tokens: + - '85995' + x-ratelimit-reset-requests: + - 17ms + x-ratelimit-reset-tokens: + - 2.67s + x-request-id: + - 10ccfb983a68d5f1e7b284af0cf6d8f2 + status: + code: 200 + message: OK +- request: + body: '{"input": ["[{''role'': ''assistant'', ''content'': ''{\\n \"thoughts\": + {\\n \"text\": \"I need to read the instructions_2.txt file to determine + the next command to use.\",\\n \"reasoning\": \"The instructions_2.txt + file contains the instructions that I need to follow.\",\\n \"plan\": + \"- Use the read_file command to read the instructions_2.txt file.\\\\n- Analyze + the instructions to determine the next command to use.\",\\n \"criticism\": + \"I need to ensure that I am following the instructions correctly and efficiently.\",\\n \"speak\": + \"I will use the read_file command to read the instructions_2.txt file and determine + the next command to use.\"\\n },\\n \"command\": {\\n \"name\": + \"read_file\",\\n \"args\": {\\n \"filename\": \"instructions_2.txt\"\\n }\\n }\\n}''}, + {''role'': ''assistant'', ''content'': ''{\\n \"thoughts\": {\\n \"text\": + \"I need to read the instructions_3.txt file to determine the next command to + use.\",\\n \"reasoning\": \"The instructions_3.txt file contains the + instructions that I need to follow.\",\\n \"plan\": \"- Use the read_file + command to read the instructions_3.txt file.\\\\n- Analyze the instructions + to determine the next command to use.\",\\n \"criticism\": \"I need to + ensure that I am following the instructions correctly and efficiently.\",\\n \"speak\": + \"I will use the read_file command to read the instructions_3.txt file and determine + the next command to use.\"\\n },\\n \"command\": {\\n \"name\": + \"read_file\",\\n \"args\": {\\n \"filename\": \"instructions_3.txt\"\\n }\\n }\\n}''}, + {''role'': ''system'', ''content'': ''Command read_file returned: Write the + task_id into the file output.txt\\nShutdown''}, {''role'': ''system'', ''content'': + ''Command read_file returned: Read the file instructions_3.txt''}, {''role'': + ''user'', ''content'': ''Determine which next command to use, and respond using + the format specified above:''}]"], "model": "text-embedding-ada-002", "encoding_format": + "base64"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2083' + Content-Type: + - application/json + method: POST + uri: https://api.openai.com/v1/embeddings + response: + body: + string: !!binary | + H4sIAAAAAAAAA1SaSRO6Spfm9++nuHG39hsiInm4OwYFZMhEQNSOjg5ARXBAhkwgK+q7d+C/ojpq + 4wIzQJMzPM8vz3/866+//q6z6pb3f//z19+vsuv//l/ztWvap3//89f//tdff/3113/8Pv/Hyts7 + u12v5af4Lf99WX6ut/Hvf/4S/vvK/1/0z19/Hw3JYRmNmDGePm2CkP/dEY/auTupWfFUFHF6U+W0 + fbUT32UybI5Lxuzp21cd2voFGtpOZbE9xpztskoGPU/feOqyrzGgs1gDyXOR6GTo0XAg1wEON3Yh + 2tn+ZJyEsYqq4iwzHxaK8V2cYgAmrA1mhTrPxk2tq3JenhyyX4V1xk/2pUabtfplp720dl803VMU + BYqC19JBa6f13bAB8Xak7GyLVceKRylvoN4SsnMdNB5WY6Jc9QUi6uNr8+F61xvFXrwoM2z48MGd + cglUOW5JclVXaDhvCwlt79sQK1v1w+l0egEAi9bE2q18d7qpbY7GfBcQbbf9ZpNx9Z9IeIklMfTd + YEyrdF2C5z9ChpefUzW863UM2HlV+BnVXTSuQa1RgwMNL15ciDo7DT3l8xpCtt+mH/cbk7qW7mp+ + xJDfVgZTl9cS3WIRM/0SnNHUklsAh0tlEeP7KTkvv0kBF1u4kODs2e7kLlIdShwvyPYOTz5ode1B + 5OkuIfV943aVfJMA7uWZ+S4so/GzYR3a7gPCzlnGo7r6pDF6hfmKHd/1vh1cYX9DD/3AmO47Tz5U + yqCjl9VaxA/5yXgRnoawyJ9fcnRTlg1rdX+DLLivmb+4my4bF/sConUdskA2Vhk/TzRFg/M1q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Cache-Status: + - DYNAMIC + CF-RAY: + - 7bf9aae9deb86428-SJC + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sat, 29 Apr 2023 18:39:25 GMT + Server: + - cloudflare + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400, h3-29=":443"; ma=86400 + openai-organization: + - user-adtx4fhfg1qsiyzdoaxciooj + openai-processing-ms: + - '214' + 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: + - 301bbf6b8f5f18d655731e55edb09ca9 + status: + code: 200 + message: OK +- request: + body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You + are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file + using the read_file method and follow the instructions in the file.\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 command read_file to read the instructions_1.txt file\n2. Follow the + instructions in the instructions_1.txt file\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\": \"\", \"text\": \"\"\n2. delete_file: + Delete file, args: \"filename\": \"\"\n3. read_file: Read file, args: + \"filename\": \"\"\n4. search_files: Search Files, args: \"directory\": + \"\"\n5. write_to_file: Write to file, args: \"filename\": \"\", + \"text\": \"\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"\"\n7. + get_hyperlinks: Get text summary, args: \"url\": \"\"\n8. get_text_summary: + Get text summary, args: \"url\": \"\", \"question\": \"\"\n9. + list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT + Agent, args: \"key\": \"\", \"message\": \"\"\n11. start_agent: + Start GPT Agent, args: \"name\": \"\", \"task\": \"\", + \"prompt\": \"\"\n12. Task Complete (Shutdown): \"task_complete\", args: + \"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:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\": + \"I need to read the instructions_1.txt file to determine the next command to + use.\",\n \"reasoning\": \"The instructions_1.txt file contains the instructions + that I need to follow.\",\n \"plan\": \"- Use the read_file command to + read the instructions_1.txt file.\\n- Analyze the instructions to determine + the next command to use.\",\n \"criticism\": \"I need to ensure that + I am following the instructions correctly and efficiently.\",\n \"speak\": + \"I will use the read_file command to read the instructions_1.txt file and determine + the next command to use.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\": + {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"}, + {"role": "system", "content": "Command read_file returned: This task_id is 2314\nRead + the file instructions_2.txt"}, {"role": "user", "content": "Determine which + next command to use, and respond using the format specified above:"}, {"role": + "assistant", "content": "{\n \"thoughts\": {\n \"text\": \"I need + to read the instructions_2.txt file to determine the next command to use.\",\n \"reasoning\": + \"The instructions_2.txt file contains the instructions that I need to follow.\",\n \"plan\": + \"- Use the read_file command to read the instructions_2.txt file.\\n- Analyze + the instructions to determine the next command to use.\",\n \"criticism\": + \"I need to ensure that I am following the instructions correctly and efficiently.\",\n \"speak\": + \"I will use the read_file command to read the instructions_2.txt file and determine + the next command to use.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\": + {\n \"filename\": \"instructions_2.txt\"\n }\n }\n}"}, + {"role": "system", "content": "Command read_file returned: Read the file instructions_3.txt"}, + {"role": "user", "content": "Determine which next command to use, and respond + using the format specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\": + {\n \"text\": \"I need to read the instructions_3.txt file to determine + the next command to use.\",\n \"reasoning\": \"The instructions_3.txt + file contains the instructions that I need to follow.\",\n \"plan\": + \"- Use the read_file command to read the instructions_3.txt file.\\n- Analyze + the instructions to determine the next command to use.\",\n \"criticism\": + \"I need to ensure that I am following the instructions correctly and efficiently.\",\n \"speak\": + \"I will use the read_file command to read the instructions_3.txt file and determine + the next command to use.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\": + {\n \"filename\": \"instructions_3.txt\"\n }\n }\n}"}, + {"role": "system", "content": "Command read_file returned: Write the task_id + into the file output.txt\nShutdown"}, {"role": "user", "content": "Determine + which next command to use, and respond using the format specified above:"}], + "temperature": 0, "max_tokens": 2577}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '6526' + Content-Type: + - application/json + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA6yTy27bMBBF9/0KYta0YVu1YmtXoAWSVRfpA0UVCAw1kRjzIZCj2oWhfy9ESVDs + oIsA2d4hDw+HnDOoEjKQtSBpGr24+fSs8Vf1o/ZSlH9uDz8PX77ep7vP97ep2AAH9/iMksYdS+lM + o5GUs8BBehSEJWTrdLe52SfbNOVgXIkaMqgaWiTL7YJa/+gWq2S1Bg5tEBVCdobGO9NQQe6ANkC2 + TvYJhxk+F/ZbDuRI6Dna7nYdB1k7JTFA9vsMBsME9k4jZCBCUIGEpV7TWULbX+GcW8YYy4Fq11Y1 + hRwyNoZjAU/UhzncMYtYMnLs6BUhoxoZiXAoVMmUJReDJ6WRuZaalpZ0IiZs2eeWhbql0h3tMgf+ + ku9RBGeVrYZDvtXIlA3kW9lfOxRJxETslGPJDL63R6OFHRQW7HsYqJFfkCsiTTpjIuYtBy/z3M7A + uHp81Avg/6ykV6SkCub6CdCG1vdQQeyOCROVlK3iMdJ5j5Jey71oSPQcujIheonI6E0miP577RQa + FIfJ56i0Zu379Wt+qPYNPRv0Oj795nHVq89shcHB/EL16oLCV9dzMBT6tTNilr7Yfz02m2T9cTKM + lqNsbjvoODwpq0JdDGMAGQRyDXBQtsQTZKvuofvwDwAA//8DAIII0sehBAAA + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 7bf9aaeba83c6428-SJC + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sat, 29 Apr 2023 18:39:36 GMT + Server: + - cloudflare + 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: + - '10520' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '3500' + x-ratelimit-limit-tokens: + - '90000' + x-ratelimit-remaining-requests: + - '3499' + x-ratelimit-remaining-tokens: + - '85990' + x-ratelimit-reset-requests: + - 17ms + x-ratelimit-reset-tokens: + - 2.672s + x-request-id: + - 40187af4864698ab7cafb098969e7421 + status: + code: 200 + message: OK +- request: + body: '{"input": ["[{''role'': ''system'', ''content'': ''Command read_file returned: + Write the task_id into the file output.txt\\nShutdown''}, {''role'': ''assistant'', + ''content'': ''{\\n \"thoughts\": {\\n \"text\": \"I need to read + the instructions_3.txt file to determine the next command to use.\",\\n \"reasoning\": + \"The instructions_3.txt file contains the instructions that I need to follow.\",\\n \"plan\": + \"- Use the read_file command to read the instructions_3.txt file.\\\\n- Analyze + the instructions to determine the next command to use.\",\\n \"criticism\": + \"I need to ensure that I am following the instructions correctly and efficiently.\",\\n \"speak\": + \"I will use the read_file command to read the instructions_3.txt file and determine + the next command to use.\"\\n },\\n \"command\": {\\n \"name\": + \"read_file\",\\n \"args\": {\\n \"filename\": \"instructions_3.txt\"\\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:''}, {''role'': + ''assistant'', ''content'': ''{\\n \"thoughts\": {\\n \"text\": \"I + need to write the task_id into the file output.txt and then shutdown.\",\\n \"reasoning\": + \"The instructions_3.txt file instructed me to write the task_id into the file + output.txt and then shutdown.\",\\n \"plan\": \"- Use the write_to_file + command to write the task_id into the file output.txt.\\\\n- Use the task_complete + command to shutdown.\",\\n \"criticism\": \"I need to ensure that I am + writing the correct task_id into the output.txt file and that I am shutting + down correctly.\",\\n \"speak\": \"I will use the write_to_file command + to write the task_id into the file output.txt and then use the task_complete + command to shutdown.\"\\n },\\n \"command\": {\\n \"name\": \"write_to_file\",\\n \"args\": + {\\n \"filename\": \"output.txt\",\\n \"text\": \"2314\"\\n }\\n }\\n}''}]"], + "model": "text-embedding-ada-002", "encoding_format": "base64"}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2194' + Content-Type: + - application/json + method: POST + uri: https://api.openai.com/v1/embeddings + response: + body: + string: !!binary | + H4sIAAAAAAAAA1R6Xc+yPrfn+fMp7tynzBMRkC7+Z7yrgK0KKkwmE1Au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L2B+UhJhms66keIoFUApdI1uftPw7juKDKmIWI5KNZ7Ir0Ne/eadqkfEXRvYX + b8kFmqwbBm8H0N6eP5SLIGRfPwzKT5wST07iilfBfoTPfLowvTSbagUKVNdExKNoxGF3w3MBFskF + /JySNV9eHR20m/ZYsi13HhX1FCGFDZrKX78n1VNC1ea+aonDKoJaVTdGwOegYk7azGh+OAFVZ04T + spuIGs7puj6q0Fge2UxVak33drdXEacybXO95LOBLoDMvZMTY1mViDGtTZH8k14IOZGfbsoUJHzx + gXhSJFbjXs/3qpsWMYvtnPNP/YgQPuuQEIrGrP/6seX1ZBJfRVXH+8MpBURnG0s88a0ZK0INaSRs + sbiStWpM+6rRar0tvn4RjY6nl6i5o5at957eTaoUltrjet4yHyWQ9dOr6DXdKy3mTU7jU4mLD7Ro + uiWzRMg/58NdIJ0fM+ejbyZVygroooXJgo3edCPve4CfOwqocknGbMbnaw2Lx+VJkYn0bn5LJwG5 + udhgwfUuWf/xU7B18YHp5dzyMUHHEq73453KZvTiH7zFMCv6mzl5ZHb09aoVGA+HihidfOweW2aL + q04394zYU231RWsokG2PV7Z9O4+QT+GCgiJqjBgbWIZTdU4j5En4wrD4EesXz8jBXd+2bB1FW0sW + toqHNN0IyM5Er5Avp5MI1/v+jkU7rzN6mPYPrRaBU3gleTezsgogjxuXRSv51s176drA+a5QLN2S + 1p/usXiEs/O44nklS3z68XYYejGq6XLOfT5esmOuff2hHs9tNbxQ3iLxHs54Pg09Gi/KmEJdmAZz + aSNnDXrd9/A2Qp8Fdwdbv/5/emgXcjGjNVoG63YDV+0xE8qcpc/Hkj4QckeL/GjS4M+pvrHhslUZ + Mcv50I0Vcz20XKd7vOh1saIjVTYQ+H6A5d4z/d/8xO08FcsDcX1pmtIjfPOHmTZvNJzXZQ+OP52p + CtHS769BN0MmLEdykTwzbDUHm+h5epGPHiis6f3cPuB0qhNm32Sw2AqDjhxJemGhRzvrmyfCyrd3 + zHLzko/f57E+hCbzTVRUkyCFVLudapGYACjjfaZ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wA+PKU0haWtVcw4yFP3+3x99BedCiOtBjXWHuAdi5oEdZR+88dU + k7jrEjtuWDf9vLoNBInik+tWKrLZiDUBId8NsTjmTfXNcyGe9ifmJ4nacVI+FPjgB9vZnuhPB2eT + gnI4CMT4qe5dn8RjAR/8J36d/2Tz8XydwW6cJ3GGIbZ4HOwxIuzWMIMPLeKFOcyw9sqM4dlbdbwo + fApceWN8vzZP1FvtJgZHCFxGTE8NZ/31EGFbrKXvfqH5Hi8a9PMQMiw/ojdi7q04auWm/fB5pXC2 + 1b3iF+9vO2cMWVJYkRZwPhJ873VLNqXLEWq9KTCykiTrz9OrRJuQ36kqRWL31UNIsrWaebHnW0O6 + blW0eixmPOLG6OZ7LDea7hUWcXE+ZHx/ayT0eR9D1SXZV8O2r21g1wX51os/f/1zCcKTrO0m7vi1 + sAoA3doy75bI3ZD3LwwvOJ/Y5pbs+TyZXYTKPrLwPM9z1nBCdNgI0kS8UX9YkxprNWwKh5PtrBfV + PJ/zK3qfdxrbZZKdLf3W3iBdvsp4sZ9q/nBKmYKom5RZYfXqHh89i97ROWXWJrfC37zsiwc7mMxQ + Or0GAT75DruZaJ19358hT5Bk+n3fPCnKMtf+frsC/vNff/78n2+HQd3c8uenMWDIp+Hf/90q8O/0 + lv5bFKV/M+m3E4H2aZH//ee/mhD+vrumfg//d2ge+av/+8+flYh++w3+Ds2QPv/HwL8+6/3nv/4f + AAAA//8DAPp9nSnlIAAA + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 7bf9ab3e6de06428-SJC + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sat, 29 Apr 2023 18:39:39 GMT + Server: + - cloudflare + access-control-allow-origin: + - '*' + alt-svc: + - h3=":443"; ma=86400, h3-29=":443"; ma=86400 + openai-organization: + - user-adtx4fhfg1qsiyzdoaxciooj + openai-processing-ms: + - '195' + 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: + - 6c805826f30e21e10011f6f0db0b02c6 + status: + code: 200 + message: OK +- request: + body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You + are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file + using the read_file method and follow the instructions in the file.\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 command read_file to read the instructions_1.txt file\n2. Follow the + instructions in the instructions_1.txt file\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\": \"\", \"text\": \"\"\n2. delete_file: + Delete file, args: \"filename\": \"\"\n3. read_file: Read file, args: + \"filename\": \"\"\n4. search_files: Search Files, args: \"directory\": + \"\"\n5. write_to_file: Write to file, args: \"filename\": \"\", + \"text\": \"\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"\"\n7. + get_hyperlinks: Get text summary, args: \"url\": \"\"\n8. get_text_summary: + Get text summary, args: \"url\": \"\", \"question\": \"\"\n9. + list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT + Agent, args: \"key\": \"\", \"message\": \"\"\n11. start_agent: + Start GPT Agent, args: \"name\": \"\", \"task\": \"\", + \"prompt\": \"\"\n12. Task Complete (Shutdown): \"task_complete\", args: + \"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:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\": + \"I need to read the instructions_1.txt file to determine the next command to + use.\",\n \"reasoning\": \"The instructions_1.txt file contains the instructions + that I need to follow.\",\n \"plan\": \"- Use the read_file command to + read the instructions_1.txt file.\\n- Analyze the instructions to determine + the next command to use.\",\n \"criticism\": \"I need to ensure that + I am following the instructions correctly and efficiently.\",\n \"speak\": + \"I will use the read_file command to read the instructions_1.txt file and determine + the next command to use.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\": + {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"}, + {"role": "system", "content": "Command read_file returned: This task_id is 2314\nRead + the file instructions_2.txt"}, {"role": "user", "content": "Determine which + next command to use, and respond using the format specified above:"}, {"role": + "assistant", "content": "{\n \"thoughts\": {\n \"text\": \"I need + to read the instructions_2.txt file to determine the next command to use.\",\n \"reasoning\": + \"The instructions_2.txt file contains the instructions that I need to follow.\",\n \"plan\": + \"- Use the read_file command to read the instructions_2.txt file.\\n- Analyze + the instructions to determine the next command to use.\",\n \"criticism\": + \"I need to ensure that I am following the instructions correctly and efficiently.\",\n \"speak\": + \"I will use the read_file command to read the instructions_2.txt file and determine + the next command to use.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\": + {\n \"filename\": \"instructions_2.txt\"\n }\n }\n}"}, + {"role": "system", "content": "Command read_file returned: Read the file instructions_3.txt"}, + {"role": "user", "content": "Determine which next command to use, and respond + using the format specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\": + {\n \"text\": \"I need to read the instructions_3.txt file to determine + the next command to use.\",\n \"reasoning\": \"The instructions_3.txt + file contains the instructions that I need to follow.\",\n \"plan\": + \"- Use the read_file command to read the instructions_3.txt file.\\n- Analyze + the instructions to determine the next command to use.\",\n \"criticism\": + \"I need to ensure that I am following the instructions correctly and efficiently.\",\n \"speak\": + \"I will use the read_file command to read the instructions_3.txt file and determine + the next command to use.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\": + {\n \"filename\": \"instructions_3.txt\"\n }\n }\n}"}, + {"role": "system", "content": "Command read_file returned: Write the task_id + into the file output.txt\nShutdown"}, {"role": "user", "content": "Determine + which next command to use, and respond using the format specified above:"}, + {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\": + \"I need to write the task_id into the file output.txt and then shutdown.\",\n \"reasoning\": + \"The instructions_3.txt file instructed me to write the task_id into the file + output.txt and then shutdown.\",\n \"plan\": \"- Use the write_to_file + command to write the task_id into the file output.txt.\\n- Use the task_complete + command to shutdown.\",\n \"criticism\": \"I need to ensure that I am + writing the correct task_id into the output.txt file and that I am shutting + down correctly.\",\n \"speak\": \"I will use the write_to_file command + to write the task_id into the file output.txt and then use the task_complete + command to shutdown.\"\n },\n \"command\": {\n \"name\": \"write_to_file\",\n \"args\": + {\n \"filename\": \"output.txt\",\n \"text\": \"2314\"\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": 2331}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '7669' + Content-Type: + - application/json + method: POST + uri: https://api.openai.com/v1/chat/completions + response: + body: + string: !!binary | + H4sIAAAAAAAAA5SSP2/bMBDF936Kw82y4VRwHGsL2g4eOrUdiqowaOosMaaOKnmMHRj67oX+xY6D + Dh31SP3eu3s8oykwQ10p0XVjZ6vHJ+vDJ7f8oquH01d9OMT0+Rv/NH94/RkTdLsn0jL+MdeubiyJ + cYwJak9KqMDs7v7h42qdLlfrBGtXkMUMy0Zm6Xw5k+h3brZIF3eYYAyqJMzO2HhXN7IVdyAOHSBd + JHiBXw7SdYLiRNmLtLpftwnqyhlNAbNfZ6wpTGDvLGGGKgQTRLF0MR0LcTfCOWcAgBylcrGsJOSY + wSiOB3SSTsxxA5V6JghRawphH619gaM3IsQgFYGocNiaAgyL6wUXpYkyl5PA3liawwaYqABxEKoo + hTsysDvOc0yuHT2p4NhwOdh+v0JXKsCOiF99/+UFiotO9wTKE7CDffTdNxgO4qPudhq6JHtn7fsM + jVU82M/gR6DLfGMjBNrVdW9yGeYWor0Ro02op/1N0xOH6DuoEtiAqnuCGC6h34l23pMW+3ILDA2p + wwQ7Gmsh/ke2gdQmU+XjrXeNs6ppMHlDvcmifHn7WK7rGwCP1r5deP+C+gYnbPGarE83hsy5xTbB + vWETqu2AxAyDuAYTNFzQCbNF+7v98BcAAP//AwDI0C/ivgMAAA== + headers: + CF-Cache-Status: + - DYNAMIC + CF-RAY: + - 7bf9ab403fa96428-SJC + Cache-Control: + - no-cache, must-revalidate + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Sat, 29 Apr 2023 18:39:47 GMT + Server: + - cloudflare + 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: + - '8206' + openai-version: + - '2020-10-01' + strict-transport-security: + - max-age=15724800; includeSubDomains + x-ratelimit-limit-requests: + - '3500' + x-ratelimit-limit-tokens: + - '90000' + x-ratelimit-remaining-requests: + - '3499' + x-ratelimit-remaining-tokens: + - '85989' + x-ratelimit-reset-requests: + - 17ms + x-ratelimit-reset-tokens: + - 2.674s + x-request-id: + - 62946a2415fd4014bc6556763cc6f992 + status: + code: 200 + message: OK +version: 1 diff --git a/tests/integration/challenges/memory/test_memory_challenge_a.py b/tests/integration/challenges/memory/test_memory_challenge_a.py new file mode 100644 index 00000000..16f8a6b7 --- /dev/null +++ b/tests/integration/challenges/memory/test_memory_challenge_a.py @@ -0,0 +1,79 @@ +import pytest + +from autogpt.agent import Agent +from autogpt.commands.file_operations import read_file, write_to_file +from tests.integration.agent_utils import run_interaction_loop +from tests.integration.challenges.utils import get_level_to_run +from tests.utils import requires_api_key + + +@pytest.mark.vcr +@requires_api_key("OPENAI_API_KEY") +def test_memory_challenge_a( + memory_management_agent: Agent, user_selected_level: int +) -> None: + """ + The agent reads a file containing a task_id. Then, it reads a series of other files. + After reading 'n' files, the agent must write the task_id into a new file. + + Args: + memory_management_agent (Agent) + user_selected_level (int) + """ + + level_currently_beaten = 3 + max_level = 3 + num_files = get_level_to_run(user_selected_level, level_currently_beaten, max_level) + + task_id = "2314" + create_instructions_files(memory_management_agent, num_files, task_id) + + try: + run_interaction_loop(memory_management_agent, 40) + # catch system exit exceptions + except SystemExit: + file_path = str(memory_management_agent.workspace.get_path("output.txt")) + content = read_file(file_path) + assert task_id in content, f"Expected the file to contain {task_id}" + + +def create_instructions_files( + memory_management_agent: Agent, + num_files: int, + task_id: str, + base_filename: str = "instructions_", +) -> None: + """ + Creates a series of instructions files for the memory challenge. + Args: + memory_management_agent (Agent) + num_files (int) + task_id (str) + base_filename (str, optional) + """ + for i in range(1, num_files + 1): + content = generate_content(i, task_id, base_filename, num_files) + file_name = f"{base_filename}{i}.txt" + file_path = str(memory_management_agent.workspace.get_path(file_name)) + write_to_file(file_path, content) + + +def generate_content( + index: int, task_id: str, base_filename: str, num_files: int +) -> str: + """ + Args: + index: int + task_id: str + base_filename: str + num_files: int + + Returns: str + """ + if index == 1: + return ( + f"This task_id is {task_id}\nRead the file {base_filename}{index + 1}.txt" + ) + if index != num_files: + return f"Read the file {base_filename}{index + 1}.txt" + return "Write the task_id into the file output.txt\nShutdown" diff --git a/tests/integration/challenges/utils.py b/tests/integration/challenges/utils.py new file mode 100644 index 00000000..05f85ae7 --- /dev/null +++ b/tests/integration/challenges/utils.py @@ -0,0 +1,34 @@ +from typing import Optional + +import pytest + + +def get_level_to_run( + user_selected_level: Optional[int], + level_currently_beaten: Optional[int], + max_level: int, +) -> int: + """ + Determines the appropriate level to run for a challenge, based on user-selected level, level currently beaten, and maximum level. + + Args: + user_selected_level (int | None): The level selected by the user. If not provided, the level currently beaten is used. + level_currently_beaten (int | None): The highest level beaten so far. If not provided, the test will be skipped. + max_level (int): The maximum level allowed for the challenge. + + Returns: + int: The level to run for the challenge. + + Raises: + ValueError: If the user-selected level is greater than the maximum level allowed. + """ + if user_selected_level is None: + if level_currently_beaten is None: + pytest.skip( + "No one has beaten any levels so we cannot run the test in our pipeline" + ) + # by default we run the level currently beaten. + return level_currently_beaten + if user_selected_level > max_level: + raise ValueError(f"This challenge was not designed to go beyond {max_level}") + return user_selected_level diff --git a/tests/integration/goal_oriented/__init__.py b/tests/integration/goal_oriented/__init__.py new file mode 100644 index 00000000..e69de29b