diff --git a/autogpt/commands/web_selenium.py b/autogpt/commands/web_selenium.py index 0f5764b5343d..8cec23238d9e 100644 --- a/autogpt/commands/web_selenium.py +++ b/autogpt/commands/web_selenium.py @@ -34,7 +34,7 @@ '"url": "", "question": ""', ) @validate_url -def browse_website(url: str, question: str) -> tuple[str, WebDriver]: +def browse_website(url: str, question: str) -> str: """Browse a website and return the answer and links to the user Args: @@ -50,7 +50,7 @@ def browse_website(url: str, question: str) -> tuple[str, WebDriver]: # These errors are often quite long and include lots of context. # Just grab the first line. msg = e.msg.split("\n")[0] - return f"Error: {msg}", None + return f"Error: {msg}" add_header(driver) summary_text = summary.summarize_text(url, text, question, driver) @@ -60,7 +60,7 @@ def browse_website(url: str, question: str) -> tuple[str, WebDriver]: if len(links) > 5: links = links[:5] close_browser(driver) - return f"Answer gathered from website: {summary_text} \n \n Links: {links}", driver + return f"Answer gathered from website: {summary_text} \n \n Links: {links}" def scrape_text_with_selenium(url: str) -> tuple[WebDriver, str]: diff --git a/tests/integration/goal_oriented/cassettes/test_browse_website/test_browse_website.yaml b/tests/integration/goal_oriented/cassettes/test_browse_website/test_browse_website.yaml index 411dbdbce141..e73c396b7f77 100644 --- a/tests/integration/goal_oriented/cassettes/test_browse_website/test_browse_website.yaml +++ b/tests/integration/goal_oriented/cassettes/test_browse_website/test_browse_website.yaml @@ -18,18 +18,18 @@ interactions: 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. browse_website: Browse - Website, args: \"url\": \"\", \"question\": \"\"\n7. + delete_file: Delete file, args: \"filename\": \"\"\n3. list_files: + List Files in Directory, args: \"directory\": \"\"\n4. read_file: + Read file, args: \"filename\": \"\"\n5. write_to_file: Write to file, + args: \"filename\": \"\", \"text\": \"\"\n6. browse_website: + Browse Website, args: \"url\": \"\", \"question\": \"\"\n7. delete_agent: Delete GPT Agent, args: \"key\": \"\"\n8. get_hyperlinks: Get text summary, args: \"url\": \"\"\n9. get_text_summary: Get text summary, args: \"url\": \"\", \"question\": \"\"\n10. list_agents: List GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\": \"\", \"message\": \"\"\n12. start_agent: Start GPT Agent, args: \"name\": \"\", \"task\": \"\", \"prompt\": \"\"\n13. - Task Complete (Shutdown): \"task_complete\", args: \"reason\": \"\"\n\nResources:\n1. + task_complete: Task Complete (Shutdown), 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 @@ -55,7 +55,7 @@ interactions: Connection: - keep-alive Content-Length: - - '3777' + - '3782' Content-Type: - application/json method: POST @@ -63,22 +63,22 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA6RTWWvbQBB+768Y5iUv8p00Ri+lB4UUSg9SUqiKWa/G0tbSjrI7qh2M/3tYHUns - JLS0rzM737UzOzQpxqhzJbqsisH5682n7c33z2dfp+l2oq4y++7th5s3X870BX3ECHn5i7R0E0PN - ZVWQGLYYoXakhFKMJy/n0/npdDKbRFhySgXGmFUymA3PBlK7JQ/Gs/EEI6y9ygjjHVaOy0oWwmuy - HuP56XmE99h39enpOEJhUcVdaTKen+8j1DkbTR7jHzssyfe4jgvCGJX3xouyElSyFbLBwS6xAAAJ - Ss51lotPMIau2DVoK6GY4AVsTFFA7QkkJ1g63nhabGjpjRBoLktlUxCG38YbgVykikejJfPaD4W9 - dqqikNZIK1EFZzWNSkqNqODPL2azkbEpbYe5lAUEqJUJeDlB5Ywm4FXLy7weJhg9FOlIebbGZq3S - y5xAlF+Do+vaOPJQ0r0wBb3mp0lUSwGXz5s0vpVCXoCroB9W7EDy0FD+kb6qULaVNoBvf5lfeNM1 - k8QO4P2zaTTtKxdQ7vvCoGBlCgKrSkrh5JBvKFs5aQZ7PUH3olu4Azl3tf7VkTntjBhtfNmviSVq - Bsn62oUxJXABqgSlde2UUHHTxG5s9rSh5mM2AdZmEKLgpqXZOdLSuDpO2Fek1v+0pw9y/vPWtZT7 - qD+bDu3R1YTMWzWH9EeqlcuOL65t1K5ox//rig7YWuDrmnx42aJfha/plvmR3Ve93cZy5zyxe9xH - uDLW+HzR3h3G6IUrjLChxni8/7l/cQsAAP//AwDcu28dVgUAAA== + H4sIAAAAAAAAA6RTS2/TQBC+8ytGc+nFeZe09QUBPVCJngBVAqNovZ7Y29g77u64CUT572jtuCWh + RTyu8/heu7NFk2GMulCiq7ocnL1Np2cfri8/p7PN/YfLef36li6zRjZ339+kGCGnt6RlvzHUXNUl + iWGLEWpHSijDeDI/n01n8/npWYQVZ1RijHktg9nw5UAal/JgPBtPMMLGq5ww3mLtuKplIbwi6zE+ + P72I8BH7oT49nUYoLKp8KE3GF5NdhLpgo8lj/GWLFfke13FJGKPy3nhRVoJKtkI2ONgmFgAgQSm4 + yQvxCcawL+4btJFQTPAKLFEGwtB4AikIUsdrT4s1pd4IgeaqUraduDfeCBQidTwapcwrPxT22qma + QmAjrUSVnDc0qigzooJFv5jNRsZmtBkWUpUQoJYm4BUEtTOagJcdL/NqmGD0s05HyrM1Nu/FamX/ + WGiY6Zuh4Uk5XcCS3dPkkH4DY31NWozN2/K7j9fvQXNGx8LqUtlO0wA+/b2eJLEDuOq4DonC+PP5 + tHs3LsA/9oVBwdKUBFZVlMHJoZChbOSkXeyFivKrxf4XHuh8qPVTR661M2K08dXx30kJtHK0bEpY + F2SfjTHMkvWNI7h6tKnZuRBEa+c4aV+TWvV8a1OW//z+v/12HeUu6k9nj/bL5YSIOzWH9EeqlcuP + r65rNK7s1v/rjA7YOuC7hnyY7NBvCiVg/NN2X/V2W8t754nd4S7CpbHGF4vu8DBGL1xjhC01xuPd + 192LHwAAAP//AwBZhA00WgUAAA== headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 7bfe4c98990acee1-SJC + - 7c23ec547cf7c30c-VIE Cache-Control: - no-cache, must-revalidate Connection: @@ -88,7 +88,7 @@ interactions: Content-Type: - application/json Date: - - Sun, 30 Apr 2023 08:09:04 GMT + - Thu, 04 May 2023 21:44:20 GMT Server: - cloudflare access-control-allow-origin: @@ -98,9 +98,9 @@ interactions: openai-model: - gpt-3.5-turbo-0301 openai-organization: - - user-adtx4fhfg1qsiyzdoaxciooj + - user-cbwy2y25pylufhkfs0la9nqe openai-processing-ms: - - '13620' + - '13677' openai-version: - '2020-10-01' strict-transport-security: @@ -118,7 +118,7 @@ interactions: x-ratelimit-reset-tokens: - 2.338s x-request-id: - - 6ab74012054dda255680e3e4da7d724b + - f087e73375928e99eea43f7daf78c450 status: code: 200 message: OK @@ -169,16 +169,17 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA0SOwU7CQBRF935Fc9fTpgWKMDs3GhaoMe7EkOn0Qce28yadR0RJv8Y/8csMieL2 - JPfcc4KroWEbI7YPXXp98/54t1/lTw/3s+W6Ot5+hPZY56v2c77socDVG1n5XWSW+9CROPZQsAMZ - oRq6mC8mi9mkKHOFnmvqoLEPkk6zMpXDUHGaT/MCCodo9gR9Qhi4D7IVbslH6NmiVPh3X3gxVxAW - 011ImRejgm3YWYrQLyf0FP+sA3cEDROji2K8nBvZC/lz/3NDSRicpYR3iTSUVMxtssGaaifmfBs3 - SFxMvr8mZbZYZhgVds672GwHMpE9NKJwgILzNR2h8/F1vPoBAAD//wMA+xL6BVEBAAA= + H4sIAAAAAAAAA0SOzUrDQBRG9z7F8K0nIU1MbGdpVy66EKogVspkctuMTebGzC0WSp7GN/HJpOLP + 9sA533eGb2DgWiuuH7rkZlnn93ersHg/Vu3YP9V290j+Iazd8vYNGly/kpMfI3XcDx2J5wANN5IV + amBm1bzIi6qqKo2eG+pgsB8kKdIykeNYc5IV2Qwax2j3BHPGMHI/yFb4QCHCXM9Ljf/2H89nGsJi + uz9SZtWk4Vr2jiLM8xk9xd/qyB3BwMboo9ggl48chMLl/7olNYzekeKdkpZUzXxQG6yo8WIvs3ED + 5aP6/MjLdL7QyjrHY+PDXgl/G0InSTFp7Hzwsd2OZCMHGEThARo+NHSCyaaX6eoLAAD//wMAzURU + NmgBAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 7bfe4d12a9a3cee1-SJC + - 7c23eccb8cf6c30c-VIE Cache-Control: - no-cache, must-revalidate Connection: @@ -188,7 +189,7 @@ interactions: Content-Type: - application/json Date: - - Sun, 30 Apr 2023 08:09:12 GMT + - Thu, 04 May 2023 21:44:27 GMT Server: - cloudflare access-control-allow-origin: @@ -198,9 +199,9 @@ interactions: openai-model: - gpt-3.5-turbo-0301 openai-organization: - - user-adtx4fhfg1qsiyzdoaxciooj + - user-cbwy2y25pylufhkfs0la9nqe openai-processing-ms: - - '1472' + - '1587' openai-version: - '2020-10-01' strict-transport-security: @@ -218,16 +219,16 @@ interactions: x-ratelimit-reset-tokens: - 385ms x-request-id: - - f40352b97c4c4547530fa7786b4ede37 + - eed7defd0a7c4dea6073247d0781f272 status: code: 200 message: OK - request: body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "\"\"\"The - price of the book \"Meditations\" is \u00a325.89.\"\"\" Using the above text, - answer the following question: \"What is the price of the book?\" -- if the - question cannot be answered using the text, summarize the text."}], "temperature": - 0, "max_tokens": 0}' + price of the book \"Meditations\" is \u00a325.89, according to the text.\"\"\" + Using the above text, answer the following question: \"What is the price of + the book?\" -- if the question cannot be answered using the text, summarize + the text."}], "temperature": 0, "max_tokens": 0}' headers: Accept: - '*/*' @@ -236,7 +237,7 @@ interactions: Connection: - keep-alive Content-Length: - - '338' + - '361' Content-Type: - application/json method: POST @@ -244,16 +245,17 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA0SOwUrDQBRF935FuOtJSFLTprNTitCF4MKNWpHp5LUZm8wbMq9UW/I1/olfJgWt - 2wP33HOCa6BhWyO2D106uzk8LBeb5/5zcdj1rfdheqzvllt6us2PUOD1O1n5XWSW+9CROPZQsAMZ - oQa6mNZlfV0WVanQc0MdNLZB0klWpbIf1pzmk7yAwj6aLUGfEAbug7wJ78hH6Gqu8K++4GKqICym - u5BZNSrYlp2lCP1yQk/xzzlwR9AwMbooxsu5kL2QP9c/tpSEwVlKeJNIS8maeZescE+NE3N+jSsk - LibfX2WV1fMMo8LGeRfbt4FMZA+NKByg4HxDH9D5+Dpe/QAAAP//AwDvavKuTwEAAA== + H4sIAAAAAAAAA0SQzUrDQBSF9z7FcNaT0CQmxlnqQlAE/6CClTKd3DZjk7khcwvF0qfxTXwyifiz + /eCc83EO8A0MXGvF9UOXnF2u8sdQX9/nDxzm2ZW8X+zKu35ON9vnARq8eiMnP4nUcT90JJ4DNNxI + VqiByaq6yIuqqmqNnhvqYLAZJCnSMpHduOJkVswyaOyi3RDMAcPI/SBL4S2FCFOdavxX/+E80xAW + 2/2RujxquJa9owjzckBP8bdz5I5gYGP0UWyQyZCDUJjsn1pSw+gdKV4raUmtmLdqgVtqvNhpNS6g + fFSfH3mZ1udaWed4bHzYKOHvhNBeUhw11j742C5HspEDDKLw9JQPDe1hZsfX48kXAAAA//8DACbo + IMRmAQAA headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 7bfe4d1cfbdbcee1-SJC + - 7c23ecd6b8f5c30c-VIE Cache-Control: - no-cache, must-revalidate Connection: @@ -263,7 +265,7 @@ interactions: Content-Type: - application/json Date: - - Sun, 30 Apr 2023 08:09:13 GMT + - Thu, 04 May 2023 21:44:29 GMT Server: - cloudflare access-control-allow-origin: @@ -273,9 +275,9 @@ interactions: openai-model: - gpt-3.5-turbo-0301 openai-organization: - - user-adtx4fhfg1qsiyzdoaxciooj + - user-cbwy2y25pylufhkfs0la9nqe openai-processing-ms: - - '1372' + - '1434' openai-version: - '2020-10-01' strict-transport-security: @@ -287,13 +289,13 @@ interactions: x-ratelimit-remaining-requests: - '3499' x-ratelimit-remaining-tokens: - - '89929' + - '89923' x-ratelimit-reset-requests: - 17ms x-ratelimit-reset-tokens: - - 47ms + - 50ms x-request-id: - - 80012336eac7da800f35e4e1dc53be35 + - 5fcc4683dce0ec6fdb70e8921ec529a9 status: code: 200 message: OK @@ -301,7 +303,7 @@ interactions: body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "Your task is to create a concise running summary of actions and information results in the provided text, focusing on key and potentially important information - to remember.\n\n\nYou will receive the current summary and the latest development. + to remember.\n\nYou will receive the current summary and the your latest actions. Combine them, adding relevant key information from the latest development in 1st person past tense and keeping the summary concise.\n\nSummary So Far:\n\"\"\"\nI was created.\n\"\"\"\n\nLatest Development:\n\"\"\"\nNothing new happened.\n\"\"\"\n"}], @@ -314,7 +316,7 @@ interactions: Connection: - keep-alive Content-Length: - - '600' + - '599' Content-Type: - application/json method: POST @@ -322,16 +324,16 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA0SOX0vDMBRH3/0U4fecjnZ/dMuboAMRxKeBiIwsubbZ2tzQ3FF19LvLYLrXA+dw - TggeBq6x4rrUFnf3w+uzX2826xz2tD4c5eGFH3/e+ln9PUCDd3tycjEmjrvUkgSO0HA9WSEPU90u - p8v5tFrMNTr21MKgTlLMJotCjv2Oi3JWVtA4ZlsTzAmp5y7JVvhAMcOsKo1r+oo1hMW2/6Aqy1HD - NRwcZZj3EzrKf82eW4KBzTlksVHOhxyF4vn+SQ02q8uxstGryNKEWKtIg2psVo1NiSL5CUaNzxBD - brY92cwRBlk4QSNET18w5fgx3vwCAAD//wMAlok3zUkBAAA= + H4sIAAAAAAAAA0SOQUvDQBQG7/6K5TtvStJgW/eoIBSKePGgImWz+9qsJvuW7ItVS/67FKq9Dsww + RwQPA9dacX3qiuVdM3/a3NbVuAqfj5sfR8v7l/Hh+bts/Boa3LyTk7Mxc9ynjiRwhIYbyAp5mGqx + quf1YrEsNXr21MFgn6SoZ9eFjEPDRVmXFTTGbPcEc0QauE+yFf6gmGFu5hqX9AVrCIvt/kFVVpOG + azk4yjCvR/SU/5oDdwQDm3PIYqOcDjkKxdP9Wh1sVudjZaNXkaUNca8iHVRrs2ptShTJzzBp7EIM + ud0OZDNHGGThBI0QPX3BlNPbdPULAAD//wMAejd5ykkBAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 7bfe4d2a38b9cee1-SJC + - 7c23ece48f6cc30c-VIE Cache-Control: - no-cache, must-revalidate Connection: @@ -341,7 +343,7 @@ interactions: Content-Type: - application/json Date: - - Sun, 30 Apr 2023 08:09:15 GMT + - Thu, 04 May 2023 21:44:31 GMT Server: - cloudflare access-control-allow-origin: @@ -351,9 +353,9 @@ interactions: openai-model: - gpt-3.5-turbo-0301 openai-organization: - - user-adtx4fhfg1qsiyzdoaxciooj + - user-cbwy2y25pylufhkfs0la9nqe openai-processing-ms: - - '928' + - '837' openai-version: - '2020-10-01' strict-transport-security: @@ -365,13 +367,13 @@ interactions: x-ratelimit-remaining-requests: - '3499' x-ratelimit-remaining-tokens: - - '89866' + - '89867' x-ratelimit-reset-requests: - 17ms x-ratelimit-reset-tokens: - 88ms x-request-id: - - bdf544a1c9ea2ee0bb022ee726a80ed4 + - 69137c6e42f4c77126b19b5a1f01ad0d status: code: 200 message: OK @@ -394,18 +396,18 @@ interactions: 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. browse_website: Browse - Website, args: \"url\": \"\", \"question\": \"\"\n7. + delete_file: Delete file, args: \"filename\": \"\"\n3. list_files: + List Files in Directory, args: \"directory\": \"\"\n4. read_file: + Read file, args: \"filename\": \"\"\n5. write_to_file: Write to file, + args: \"filename\": \"\", \"text\": \"\"\n6. browse_website: + Browse Website, args: \"url\": \"\", \"question\": \"\"\n7. delete_agent: Delete GPT Agent, args: \"key\": \"\"\n8. get_hyperlinks: Get text summary, args: \"url\": \"\"\n9. get_text_summary: Get text summary, args: \"url\": \"\", \"question\": \"\"\n10. list_agents: List GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\": \"\", \"message\": \"\"\n12. start_agent: Start GPT Agent, args: \"name\": \"\", \"task\": \"\", \"prompt\": \"\"\n13. - Task Complete (Shutdown): \"task_complete\", args: \"reason\": \"\"\n\nResources:\n1. + task_complete: Task Complete (Shutdown), 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 @@ -425,25 +427,25 @@ interactions: created and nothing new has happened."}, {"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 browse_website command to visit http://books.toscrape.com/catalogue/meditations_33/index.html - and find the price of the book.\",\n \"reasoning\": \"The task requires - me to visit a website and find the price of a book. The browse_website command - is the best option for this task.\",\n \"plan\": \"- Use the browse_website - command to visit the website\\n- Find the price of the book\\n- Write the price - to a file named ''browse_website.txt''\\n- Use the task_complete command to - complete the task\",\n \"criticism\": \"I need to ensure that I am accurately - finding the price of the book and writing it to the correct file.\",\n \"speak\": + \"I need to use the browse_website command to visit http://books.toscrape.com/catalogue/meditations_33/index.html + and find the price of the book.\",\n \"reasoning\": \"I can use the browse_website + command to visit the website and search for the price of the book by inspecting + the HTML code.\",\n \"plan\": \"- Use the browse_website command to visit + the website\\n- Inspect the HTML code to find the price of the book\\n- Write + the price to a file named ''browse_website.txt''\\n- Use the task_complete command + to complete the task\",\n \"criticism\": \"I need to be careful when + inspecting the HTML code to ensure I find the correct price.\",\n \"speak\": \"I will use the browse_website command to visit the website and find the price of the book.\"\n },\n \"command\": {\n \"name\": \"browse_website\",\n \"args\": {\n \"url\": \"http://books.toscrape.com/catalogue/meditations_33/index.html\",\n \"question\": \"What is the price of the book?\"\n }\n }\n}"}, {"role": "system", - "content": "Command browse_website returned: (''Answer gathered from website: - The price of the book \"Meditations\" is \u00a325.89. \\n \\n Links: [\\''Books - to Scrape (http://books.toscrape.com/index.html)\\'', \\''Home (http://books.toscrape.com/index.html)\\'', - \\''Books (http://books.toscrape.com/catalogue/category/books_1/index.html)\\'', - \\''Philosophy (http://books.toscrape.com/catalogue/category/books/philosophy_7/index.html)\\'', - \\'' (http://books.toscrape.com/catalogue/the-nicomachean-ethics_75/index.html)\\'']'', - )"}, {"role": "user", "content": "Determine which next command to use, and respond + "content": "Command browse_website returned: Answer gathered from website: The + price of the book \"Meditations\" is \u00a325.89, according to the text. \n + \n Links: [''Books to Scrape (http://books.toscrape.com/index.html)'', ''Home + (http://books.toscrape.com/index.html)'', ''Books (http://books.toscrape.com/catalogue/category/books_1/index.html)'', + ''Philosophy (http://books.toscrape.com/catalogue/category/books/philosophy_7/index.html)'', + '' (http://books.toscrape.com/catalogue/the-nicomachean-ethics_75/index.html)'']"}, + {"role": "user", "content": "Determine which next command to use, and respond using the format specified above:"}], "temperature": 0, "max_tokens": 0}' headers: Accept: @@ -453,7 +455,7 @@ interactions: Connection: - keep-alive Content-Length: - - '5772' + - '5682' Content-Type: - application/json method: POST @@ -461,21 +463,20 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA7RTzW7aQBC+9ylGc+FiLDChpb5VjVRR9e+QnuoKrdcD3mDvuLtDSYN4mrxJn6xa - 20AhUZVLj56Z72c+z+7QFJiiLpXouqmGr95sv3y4vV6X0/ef395f/5zn9G5elHKvPv1KMELOb0lL - j4g1101FYthihNqREiowHb+cJbOrZDydRlhzQRWmuGpkOImnQ9m4nIejyWiMEW68WhGmO2wc140s - hNdkPabjyTiJ8ER+bCRJEqGwqOo0O51c7SPUJRtNHtNvO6zJH4gdV4QpKu+NF2Ul2GQrZMMKu8wC - AGQoJW9WpfgMU+iLfYPuJBQznMPWVBVsnRECKQkaZzQBL9uPnHkNwqBgaSoCq2oqYJA73npabCn3 - RiiWOxnEGUZ/CzhSnq2xq07lpiQQ5dfg6MfGOPJQU+B9lmwMAd6OLoQXrRPNda1sAcZ3APIC3IRM - YckOpAwN5deXvppK2c7SEL76Tvpp5ue6+0coWWZPKsHNov/1ZyrH2mHqwrJ2Row2vj78MEvUAsn6 - jQswJTAHVbd+jV21RJqdIy1g7JJdrdpkhNtW67oVD8hjxXjIKcD7ewdjz5gq1i3NZaS+IbU+O6bN - /w42zrBzsI8Op96zP7r0QNKZO3NzsYNyq8tH0jXC7InisZUznsu3dfPkgoOPVBhpo/SDkPrvh2Qa - z14fl2oX6/fL7B73ES6NNb5cdK8KU/TCDUZobEF3mI723/cv/gAAAP//AwBJZ4NT8QQAAA== + H4sIAAAAAAAAA7xTyY7TQBC98xWtuuTSibKQzUc4ITQSSICQMLLa7UrcxO4yXRUSiPw1/AlfhryE + MJ65zpysrtd+S+n1BVwGEdjciC2rYrx+nc4/vf3xnRlPFb179avYbGgxff8Zs+0daKD0G1rp/5hY + KqsCxZEHDTagEcwgmq02i/litVrPNJSUYQER7CsZLybLsRxDSuPpYjoDDUc2e4ToAlWgspJE6ICe + IZrN11sNN/IbsF1pEBJT3EYv18tag83JWWSIvlygRL4SByoQIjDMjsV4aWySF/RNhEvslVIqBsnp + uM+FY4hUP+wBPEszjOGN8oiZElKn4ASV5Kiq4Cwq2rWHlOjQwEbtXIHKmxIzNUoDnRiTE6bsBCdy + ltEkBv2/RkDD5J3fX4Ws8erInUQrlgglLamlsjT+SVxUhfGdgbH6+NTiA20bnDjruByuGj0fQyNk + pBVoaR2rvmnK+XZsKQS0ojLXfCj8HIbjCs3hSn5yRfEs++0c1Prasp79Qckaks7cPTeDDCbsh/3s + gObujeKhlXs8w1p/eDTg6A4zJ6Z5ejxqFv7n93w52Wz/hWqD9fliX0OtYee84zzp2gwRsFAFGpzP + 8AzRtP5av/gLAAD//wMAknh4rWwEAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 7bfe4d310f1acee1-SJC + - 7c23eceb0d9cc30c-VIE Cache-Control: - no-cache, must-revalidate Connection: @@ -485,7 +486,7 @@ interactions: Content-Type: - application/json Date: - - Sun, 30 Apr 2023 08:09:27 GMT + - Thu, 04 May 2023 21:44:42 GMT Server: - cloudflare access-control-allow-origin: @@ -495,9 +496,9 @@ interactions: openai-model: - gpt-3.5-turbo-0301 openai-organization: - - user-adtx4fhfg1qsiyzdoaxciooj + - user-cbwy2y25pylufhkfs0la9nqe openai-processing-ms: - - '12183' + - '11192' openai-version: - '2020-10-01' strict-transport-security: @@ -509,13 +510,13 @@ interactions: x-ratelimit-remaining-requests: - '3499' x-ratelimit-remaining-tokens: - - '86494' + - '86479' x-ratelimit-reset-requests: - 17ms x-ratelimit-reset-tokens: - - 2.337s + - 2.346s x-request-id: - - ea952acfdafdc0ae3345943425fec326 + - 8a46773fe4d416c50f9206f5ae9cacf5 status: code: 200 message: OK @@ -523,7 +524,7 @@ interactions: body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "Your task is to create a concise running summary of actions and information results in the provided text, focusing on key and potentially important information - to remember.\n\n\nYou will receive the current summary and the latest development. + to remember.\n\nYou will receive the current summary and the your latest actions. Combine them, adding relevant key information from the latest development in 1st person past tense and keeping the summary concise.\n\nSummary So Far:\n\"\"\"\n{''role'': ''system'', ''content'': ''This reminds you of these events from your past: @@ -537,7 +538,7 @@ interactions: Connection: - keep-alive Content-Length: - - '714' + - '713' Content-Type: - application/json method: POST @@ -545,16 +546,17 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA0SPTUvDQBRF9/6K4a4npemnzq6gouDCvUiZTp7J2Pky74VYSv67VJRuD9zDuWf4 - Bgaus+JiCdV2N77aZngYx8dhs3r5OmyPT/fhuJYSbQuNfPgkJ3+LmcuxBBKfEzRcT1aogak3t4vb - 1aLezjVibijAoC1SLWfrSob+kKv5cl5DY2DbEswZpc+xyF7ykRLD1PWdxtV95WsNyWLDlSxXk4br - snfEMG9nROJ/a58DwcAyexab5NKYk1C69O9YWcUnFopaPauenA1BSWdFpSydT61KNKrOsupsKZSo - UeyTIxVP6veqz2mGSePDJ8/dvifLOcGAJRdo+NTQN8x8ep9ufgAAAP//AwB8vP+2ZgEAAA== + H4sIAAAAAAAAA0SPXUsDMRBF3/0Vwzxny7bbVsmbHy9FQRFBRKRks9NuNMmEZLZVyv53KVT7ern3 + cO4BXYcabW/EhuSry9t25vqbYTGs6ufX+m5nN/OXp/vH8LbrHlAht59k5bSYWA7JkziOqNBmMkId + 6unyqpk1y+XVXGHgjjxq3CapmsmikiG3XNVNPUWFQzFbQn3AlDkkWQt/USyop7Na4Zn9nx9jYTH+ + 3JzXo0Lbs7NUUL8fMFD5o2b2hBpNKa6IiXJ05CgUj/7XBQyUnyIUFKwgkzXeg/RGYAV7U+B0B0zs + QHrKBL3ZEbREESJDpD10tCPPKVCUAsKQKXGWCY4KNy660q8zmcIRNRbhhApd7OgbdT1+jBe/AAAA + //8DAKdc/tB7AQAA headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 7bfe4d901cdecee1-SJC + - 7c23ed3eda7ec30c-VIE Cache-Control: - no-cache, must-revalidate Connection: @@ -564,7 +566,7 @@ interactions: Content-Type: - application/json Date: - - Sun, 30 Apr 2023 08:09:31 GMT + - Thu, 04 May 2023 21:44:46 GMT Server: - cloudflare access-control-allow-origin: @@ -574,9 +576,9 @@ interactions: openai-model: - gpt-3.5-turbo-0301 openai-organization: - - user-adtx4fhfg1qsiyzdoaxciooj + - user-cbwy2y25pylufhkfs0la9nqe openai-processing-ms: - - '791' + - '1470' openai-version: - '2020-10-01' strict-transport-security: @@ -594,7 +596,7 @@ interactions: x-ratelimit-reset-tokens: - 107ms x-request-id: - - 782df5c2a8ff131c4a94e1db54cf90ad + - c9cf33b227d0c6c46c3e92f14f731f25 status: code: 200 message: OK @@ -617,18 +619,18 @@ interactions: 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. browse_website: Browse - Website, args: \"url\": \"\", \"question\": \"\"\n7. + delete_file: Delete file, args: \"filename\": \"\"\n3. list_files: + List Files in Directory, args: \"directory\": \"\"\n4. read_file: + Read file, args: \"filename\": \"\"\n5. write_to_file: Write to file, + args: \"filename\": \"\", \"text\": \"\"\n6. browse_website: + Browse Website, args: \"url\": \"\", \"question\": \"\"\n7. delete_agent: Delete GPT Agent, args: \"key\": \"\"\n8. get_hyperlinks: Get text summary, args: \"url\": \"\"\n9. get_text_summary: Get text summary, args: \"url\": \"\", \"question\": \"\"\n10. list_agents: List GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\": \"\", \"message\": \"\"\n12. start_agent: Start GPT Agent, args: \"name\": \"\", \"task\": \"\", \"prompt\": \"\"\n13. - Task Complete (Shutdown): \"task_complete\", args: \"reason\": \"\"\n\nResources:\n1. + task_complete: Task Complete (Shutdown), 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 @@ -645,249 +647,43 @@ interactions: \nEnsure the response can be parsed by Python json.loads"}, {"role": "system", "content": "The current time and date is Tue Jan 1 00:00:00 2000"}, {"role": "system", "content": "This reminds you of these events from your past: \nAs - a system, I recall that nothing new has happened since my creation."}, {"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 browse_website command to visit http://books.toscrape.com/catalogue/meditations_33/index.html - and find the price of the book.\",\n \"reasoning\": \"The task requires - me to visit a website and find the price of a book. The browse_website command - is the best option for this task.\",\n \"plan\": \"- Use the browse_website - command to visit the website\\n- Find the price of the book\\n- Write the price - to a file named ''browse_website.txt''\\n- Use the task_complete command to - complete the task\",\n \"criticism\": \"I need to ensure that I am accurately - finding the price of the book and writing it to the correct file.\",\n \"speak\": + a system, I recall that I was created and there have been no new developments + to report."}, {"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 use the browse_website + command to visit http://books.toscrape.com/catalogue/meditations_33/index.html + and find the price of the book.\",\n \"reasoning\": \"I can use the browse_website + command to visit the website and search for the price of the book by inspecting + the HTML code.\",\n \"plan\": \"- Use the browse_website command to visit + the website\\n- Inspect the HTML code to find the price of the book\\n- Write + the price to a file named ''browse_website.txt''\\n- Use the task_complete command + to complete the task\",\n \"criticism\": \"I need to be careful when + inspecting the HTML code to ensure I find the correct price.\",\n \"speak\": \"I will use the browse_website command to visit the website and find the price of the book.\"\n },\n \"command\": {\n \"name\": \"browse_website\",\n \"args\": {\n \"url\": \"http://books.toscrape.com/catalogue/meditations_33/index.html\",\n \"question\": \"What is the price of the book?\"\n }\n }\n}"}, {"role": "system", - "content": "Command browse_website returned: (''Answer gathered from website: - The price of the book \"Meditations\" is \u00a325.89. \\n \\n Links: [\\''Books - to Scrape (http://books.toscrape.com/index.html)\\'', \\''Home (http://books.toscrape.com/index.html)\\'', - \\''Books (http://books.toscrape.com/catalogue/category/books_1/index.html)\\'', - \\''Philosophy (http://books.toscrape.com/catalogue/category/books/philosophy_7/index.html)\\'', - \\'' (http://books.toscrape.com/catalogue/the-nicomachean-ethics_75/index.html)\\'']'', - )"}, {"role": "user", "content": "Determine which next command to use, and respond + "content": "Command browse_website returned: Answer gathered from website: The + price of the book \"Meditations\" is \u00a325.89, according to the text. \n + \n Links: [''Books to Scrape (http://books.toscrape.com/index.html)'', ''Home + (http://books.toscrape.com/index.html)'', ''Books (http://books.toscrape.com/catalogue/category/books_1/index.html)'', + ''Philosophy (http://books.toscrape.com/catalogue/category/books/philosophy_7/index.html)'', + '' (http://books.toscrape.com/catalogue/the-nicomachean-ethics_75/index.html)'']"}, + {"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 write the price of the book to a file named ''browse_website.txt''.\",\n \"reasoning\": - \"The task requires me to write the price of the book to a file. The write_to_file - command is the best option for this task.\",\n \"plan\": \"- Use the - write_to_file command to write the price of the book to a file named ''browse_website.txt''\\n- - Use the task_complete command to complete the task\",\n \"criticism\": - \"I need to ensure that I am writing the correct information to the file and - that the file is being created in the correct location.\",\n \"speak\": - \"I will use the write_to_file command to write the price of the book to a file - named ''browse_website.txt''.\"\n },\n \"command\": {\n \"name\": - \"write_to_file\",\n \"args\": {\n \"filename\": \"browse_website.txt\",\n \"text\": - \"The price of the book ''Meditations'' is \u00a325.89.\"\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": 0}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '7026' - Content-Type: - - application/json - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA6RSTW/TQBC98ytWc+nFieI0bYJvSFxKhUAoVEg1itbrsb3E3jE7Y6Vt5P+O/JEP - gkAgrvPx5r03bw82hQhMocVUdTlZvtl9TO53z/fr8OEDfXr48tZ8fzd7Wb/e3dELBEDJNzQybkwN - VXWJYslBAMajFkwhCm9X89ViHi7DACpKsYQI8lom19ObiTQ+ocnsehZCAA3rHCHaQ+2pqmUjtEXH - EIU3q3kAJ/BT43YegJDo8lRaLhZtAKYga5AhetxDhXwA9lQiRKCZLYt20tEkJ+g6CfvYKaVUDFJQ - kxfCMURqLI4NfJKuGMOd2tmyVA2jkgKVaN5uRoKoDFWVdqkSUsfaYWoaQ3AO6VEzOevyAXc9jqlC - s0oQ3REhVdwYg8xZU5bPqsf/7WXLfTNBFkV159lfkalL7QYeE/X5n6VdgBlvxRrL1cExh9gvouPG - d2ta/iyhYUyVIe/RyFHy2VI3k6B1+ZlJGfm+P66pwd9LoVyj3v7/JwfINjgEZxz/JTdOVzhc+wn+ - gpT2+WXkzjNyCkjtrUFF2fBjoq26eo+pFd09mq9O2cmocWnv285bEexToFVmSzyy7xWMQmLXQhtA - Zp3lYjOchQhYqIYArEvxCaJZ+7V99QMAAP//AwBD34ZLKAQAAA== - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 7bfe4d9589e6cee1-SJC - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Sun, 30 Apr 2023 08:09:41 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: - - '9223' - 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: - - '86491' - x-ratelimit-reset-requests: - - 17ms - x-ratelimit-reset-tokens: - - 2.339s - x-request-id: - - 236ab87ae664fc82d42c2ea35a36b68d - status: - code: 200 - message: OK -- request: - body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You - are browse_website-GPT, an AI designed to use the browse_website command to - visit http://books.toscrape.com/catalogue/meditations_33/index.html, answer - the question ''What is the price of the book?'' and write the price to a file - named \"browse_website.txt\", and 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 browse_website command - to visit http://books.toscrape.com/catalogue/meditations_33/index.html and answer - the question ''What is the price of the book?''\n2. Write the price of the book - to a file named \"browse_website.txt\".\n3. Use the task_complete command to - complete the task.\n4. 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\": \"\", \"text\": \"\"\n2. - delete_file: Delete file, args: \"filename\": \"\"\n3. list_files: - List Files in Directory, args: \"directory\": \"\"\n4. read_file: - Read file, args: \"filename\": \"\"\n5. write_to_file: Write to file, - args: \"filename\": \"\", \"text\": \"\"\n6. browse_website: - Browse Website, args: \"url\": \"\", \"question\": \"\"\n7. - delete_agent: Delete GPT Agent, args: \"key\": \"\"\n8. get_hyperlinks: - Get text summary, args: \"url\": \"\"\n9. get_text_summary: Get text summary, - args: \"url\": \"\", \"question\": \"\"\n10. list_agents: List - GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\": - \"\", \"message\": \"\"\n12. start_agent: Start GPT Agent, args: - \"name\": \"\", \"task\": \"\", \"prompt\": \"\"\n13. - 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 1 00:00:00 2000"}, {"role": - "user", "content": "Determine which next command to use, and respond using the - format specified above:"}], "temperature": 0, "max_tokens": 0}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '3786' - Content-Type: - - application/json - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA6STTW/TQBCG7/yK0Vx6cb4VSH1BqgARqTkgUSqBUbRej+1t7B2zOyZBUf57tXHS - ktAiPq4zs+/7vGPPFk2GMepSia6bqvfq6jMVN++au7vFaPPh6vrTYla8zXm1KKc3bzBCTu9Iy+FF - X3PdVCSGLUaoHSmhDOPRy9n48nIyHI8jrDmjCmMsGulN+tOetC7l3nAyHGGErVcFYbzFxnHdyFJ4 - RdZjPJsOI3zUfqiPJ6MIhUVVD6XRcDbaRahLNpo8xl+2WJM/6jquCGNU3hsvykqgZCtkQ4JtYgEA - EpSS26IUn2AMh+KhQRsJxQTnYIkyEIbWE0hJkDpee1quKfVGCDTXtbL7ie/GG4FSpIkHg5R55fvC - XjvVUFjYQCtRFRctDWrKjKgQ0S8nk4GxGW36pdQVBKncBL2SoHFGE3De+TKv+glGP3M6Up6tscUR - Viv7x6Bh5tgMDU/K6RJydk+bQ/oDjPUNaTG22Jfff1xcg+aMzsGaStmOqQc3f8+TJLYH887r1CiM - P7+f/btbF+Qf+8KgIDcVgVU1ZXBxCtKXjVyc4WtnxGjj6/OfICXQylHeVrAuyT67jzBL1rcugCiB - +SO0ZudCrD3c+d58Q2p1NF2bqvrnr/nbn6iz3EXHQzio/XIHYWEdzan9GbVyxfkNdY3WVd3z/zqK - E7dO+FtLPkx26rdhxcY/Hff1Me4+8iF5Yne4izA31vhy2Z0RxuiFG4xwb43xcPd19+IeAAD//wMA - V6vswigFAAA= - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 7c0cb0782d4f944a-SJC - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Tue, 02 May 2023 02:03:56 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: - - '13321' - 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: - - '86494' - x-ratelimit-reset-requests: - - 17ms - x-ratelimit-reset-tokens: - - 2.337s - x-request-id: - - 63bb414ee1d800b5915650650e19e08c - status: - code: 200 - message: OK -- request: - body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "Your - task is to create a concise running summary of actions and information results - in the provided text, focusing on key and potentially important information - to remember.\n\nYou will receive the current summary and the your latest actions. - Combine them, adding relevant key information from the latest development in - 1st person past tense and keeping the summary concise.\n\nSummary So Far:\n\"\"\"\nI - was created.\n\"\"\"\n\nLatest Development:\n\"\"\"\nNothing new happened.\n\"\"\"\n"}], - "temperature": 0, "max_tokens": 0}' + {\n \"text\": \"I need to write the price of the book to a file named + ''browse_website.txt''.\",\n \"reasoning\": \"I can use the write_to_file + command to write the price of the book to a file named ''browse_website.txt''.\",\n \"plan\": + \"- Use the write_to_file command to write the price of the book to a file named + ''browse_website.txt''\",\n \"criticism\": \"I need to ensure that the + file is created in the correct directory.\",\n \"speak\": \"I will use + the write_to_file command to write the price of the book to a file named ''browse_website.txt''.\"\n },\n \"command\": + {\n \"name\": \"write_to_file\",\n \"args\": {\n \"filename\": + \"browse_website.txt\",\n \"text\": \"The price of the book ''Meditations'' + is \u00a325.89.\"\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": 0}' headers: Accept: - '*/*' @@ -896,7 +692,7 @@ interactions: Connection: - keep-alive Content-Length: - - '599' + - '6824' Content-Type: - application/json method: POST @@ -904,16 +700,19 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA0SOQUvDQBQG7/6K5TtvSpLWtNmjCtKrHgRFynbz2l2b7Fuzr1Qo+e9SqPY6MMOc - EToYOG/FDakvlg/vu/L7eblYtq/rhVvvnlaNbw7pbXx8OUGDt1/k5GrMHA+pJwkcoeFGskIdTNWs - 6radl4taY+COehjskxTz2X0hx3HLRTkvK2gcs90TzBlp5CHJRvhAMcO0tcYtfcMawmL7f1CV1aTh - PAdHGebjjIHyX3PknmBgcw5ZbJTLIUeheLlfq5PN6nqsbOxUZPEh7lWkk/I2K29TokjdDJPGLsSQ - /WYkmznCIAsnaITY0Q9MOX1Od78AAAD//wMAckpATEkBAAA= + H4sIAAAAAAAAA7yRQW/bMAyF7/sVAs9ykDiwk+m67ZAO2Gm9dB4CRWYt1bJkmHTbLfB/H1w7TZad + 2sOuj+T3HskjuBIUGKvZNK1PNp8OaR3SOvN39jfpL9mj29x+3e4+N3f5DUiIhwc0PE8sTGxaj+xi + AAmmQ81Yglrl23W6zvNtLqGJJXpQULWcrBdZwn13iMlyvVyBhJ50haCO0HaxaXnPscZAoFZZupVw + hp8L6UcJHFn7s5Rnm0GCsdEZJFA/jtAgncBd9AgKNJEj1oHHmDEwhnGFYxGEEKIAtrGvLFMBSszi + XMBnHsUCdsLqRxRzJiwFWxSsqZaCotiJgKMWRU/4WtqfusexRoeXBrI9izI+hUUB8tKrQ00xuFD9 + L8PW6zB5JeL23RTTOXbGUTOhvsWAVx3Uoq5PSz0579+WeUIN8vSsue2fXwXd4OTyF/YqjO6q6zdf + nn8CfNdUX1yeemOQ6L73/tdroJdQc7YiDDBIuHfBkd1PJFBAHFuQ4EKJz6CWw8/hwx8AAAD//wMA + YEZz+G8DAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 7c0cb0f51a8a944a-SJC + - 7c23ed493d21c30c-VIE Cache-Control: - no-cache, must-revalidate Connection: @@ -923,7 +722,7 @@ interactions: Content-Type: - application/json Date: - - Tue, 02 May 2023 02:04:03 GMT + - Thu, 04 May 2023 21:44:53 GMT Server: - cloudflare access-control-allow-origin: @@ -933,9 +732,9 @@ interactions: openai-model: - gpt-3.5-turbo-0301 openai-organization: - - user-adtx4fhfg1qsiyzdoaxciooj + - user-cbwy2y25pylufhkfs0la9nqe openai-processing-ms: - - '960' + - '7454' openai-version: - '2020-10-01' strict-transport-security: @@ -947,813 +746,13 @@ interactions: x-ratelimit-remaining-requests: - '3499' x-ratelimit-remaining-tokens: - - '89866' + - '86479' x-ratelimit-reset-requests: - 17ms x-ratelimit-reset-tokens: - - 88ms - x-request-id: - - b05b40f91f03090235ef212bd7352fd7 - status: - code: 200 - message: OK -- request: - body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You - are browse_website-GPT, an AI designed to use the browse_website command to - visit http://books.toscrape.com/catalogue/meditations_33/index.html, answer - the question ''What is the price of the book?'' and write the price to a file - named \"browse_website.txt\", and 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 browse_website command - to visit http://books.toscrape.com/catalogue/meditations_33/index.html and answer - the question ''What is the price of the book?''\n2. Write the price of the book - to a file named \"browse_website.txt\".\n3. Use the task_complete command to - complete the task.\n4. 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\": \"\", \"text\": \"\"\n2. - delete_file: Delete file, args: \"filename\": \"\"\n3. list_files: - List Files in Directory, args: \"directory\": \"\"\n4. read_file: - Read file, args: \"filename\": \"\"\n5. write_to_file: Write to file, - args: \"filename\": \"\", \"text\": \"\"\n6. browse_website: - Browse Website, args: \"url\": \"\", \"question\": \"\"\n7. - delete_agent: Delete GPT Agent, args: \"key\": \"\"\n8. get_hyperlinks: - Get text summary, args: \"url\": \"\"\n9. get_text_summary: Get text summary, - args: \"url\": \"\", \"question\": \"\"\n10. list_agents: List - GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\": - \"\", \"message\": \"\"\n12. start_agent: Start GPT Agent, args: - \"name\": \"\", \"task\": \"\", \"prompt\": \"\"\n13. - 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 1 00:00:00 2000"}, {"role": - "system", "content": "This reminds you of these events from your past: \nI was - created and nothing new has happened."}, {"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 use the browse_website command to visit http://books.toscrape.com/catalogue/meditations_33/index.html - and find the price of the book.\",\n \"reasoning\": \"I can use the browse_website - command to visit the website and search for the price of the book by inspecting - the HTML code.\",\n \"plan\": \"- Use the browse_website command to visit - the website\\n- Inspect the HTML code to find the price of the book\\n- Write - the price to a file named ''browse_website.txt''\",\n \"criticism\": - \"I need to be careful when inspecting the HTML code to ensure that I find the - correct price.\",\n \"speak\": \"I will use the browse_website command - to visit the website and find the price of the book.\"\n },\n \"command\": - {\n \"name\": \"browse_website\",\n \"args\": {\n \"url\": - \"http://books.toscrape.com/catalogue/meditations_33/index.html\",\n \"question\": - \"What is the price of the book?\"\n }\n }\n}"}, {"role": "system", - "content": "Command browse_website returned: (''Answer gathered from website: - The price of the book \"Meditations\" is \u00a325.89. \\n \\n Links: [\\''Books - to Scrape (http://books.toscrape.com/index.html)\\'', \\''Home (http://books.toscrape.com/index.html)\\'', - \\''Books (http://books.toscrape.com/catalogue/category/books_1/index.html)\\'', - \\''Philosophy (http://books.toscrape.com/catalogue/category/books/philosophy_7/index.html)\\'', - \\'' (http://books.toscrape.com/catalogue/the-nicomachean-ethics_75/index.html)\\'']'', - )"}, {"role": "user", "content": "Determine which next command to use, and respond - using the format specified above:"}], "temperature": 0, "max_tokens": 0}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5735' - Content-Type: - - application/json - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA7xTS27bMBDd9xTEbLyhDSmO60jLBgWaRdAicNBPVAgUNZZYSxyVHMMuDJ0mN+nJ - Cn0cN063zUrgPOp9Bo8HMDnEoEvFum6q6fLdt3V4fRN+Xa7uPt9+8e9/Bh/y6OP99Wr56Q4kUPYD - NY9/zDTVTYVsyIIE7VAx5hCHb68uomgeXM4l1JRjBTEUDU/ns8WUty6jaTAPQpCw9apAiA/QOKob - Tpk2aD3E4Ty4lHAiPwHRUgITq+o0WgRhK0GXZDR6iB8OUKM/EjuqEGJQ3hvPynJnkyyj7SIcEiuE - EAlwSduiZJ9ALMbhCOCeu2ECN8Ii5oJJ7JxhFFyiaJzRKGjdHzKiTQcrsTYVCqtqzMUkc7TzmO4w - 84ZxxnuezBKQf2s4VJ6sscVRSCsrtn6Q6MVSprQn1VTXyv4XF02l7GBgKu5fW1w7w0YbX5/vGq3f - uk5Jca/Q8xovxqoJY/uxJudQs8hN9yH361zAN6g2R/KdqapXWfDgoJXHmo3sL1rWkQzmnrk5y6Bc - cV7QAejuniheWnnGc97r1T8DTm4xN6y6t+cn3cJ/P14sZlfRU6g+2JgvsS20EtbGGl+mQ50hBs/U - gARjc9xDHLTf2zd/AAAA//8DAOu3m7FtBAAA - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 7c0cb0fbc9c9944a-SJC - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Tue, 02 May 2023 02:04:15 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: - - '11284' - 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: - - '86494' - x-ratelimit-reset-requests: - - 17ms - x-ratelimit-reset-tokens: - - 2.336s - x-request-id: - - ee40eef17c77173b0ccd5fd28eb72e65 - status: - code: 200 - message: OK -- request: - body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "Your - task is to create a concise running summary of actions and information results - in the provided text, focusing on key and potentially important information - to remember.\n\nYou will receive the current summary and the your latest actions. - Combine them, adding relevant key information from the latest development in - 1st person past tense and keeping the summary concise.\n\nSummary So Far:\n\"\"\"\n{''role'': - ''system'', ''content'': ''This reminds you of these events from your past: - \\nI was created and nothing new has happened.''}\n\"\"\"\n\nLatest Development:\n\"\"\"\nNothing - new happened.\n\"\"\"\n"}], "temperature": 0, "max_tokens": 0}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '713' - Content-Type: - - application/json - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA0SPwUrDQBRF937FcNeTkjamtbNTUVCXFYWIlOnktRmbzBszr9Ra8u9SUbo9cA/n - HuFrGLjGiutim81uqvX9oqq+y+3d9On2+XLx8vo5q/I9PcocGrz6ICd/i5HjLrYkngM0XE9WqIYZ - T68m83mRlzONjmtqYbCJkhWjMpNdv+IsL/IxNHbJbgjmiNhzF2UpvKWQYMaTXOPsPvNSQ1hseyZF - OWi4hr2jBPN2REfp39pzSzCwKfkkNsipkYNQOPVfJ2VVOiShTqsH1ZOzbauksaICS+PDRgXaq8Ym - 1dgYKVCtkg+OVHdQv1c9hxEGjbUPPjXLnmziAIMkHKHhQ01fMPnwPlz8AAAA//8DAGLYAldmAQAA - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 7c0cb15249d6944a-SJC - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Tue, 02 May 2023 02:04:18 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: - - '1076' - 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: - - '89839' - x-ratelimit-reset-requests: - - 17ms - x-ratelimit-reset-tokens: - - 107ms - x-request-id: - - 3534821a832571f79f963fe548953633 - status: - code: 200 - message: OK -- request: - body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You - are browse_website-GPT, an AI designed to use the browse_website command to - visit http://books.toscrape.com/catalogue/meditations_33/index.html, answer - the question ''What is the price of the book?'' and write the price to a file - named \"browse_website.txt\", and 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 browse_website command - to visit http://books.toscrape.com/catalogue/meditations_33/index.html and answer - the question ''What is the price of the book?''\n2. Write the price of the book - to a file named \"browse_website.txt\".\n3. Use the task_complete command to - complete the task.\n4. 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\": \"\", \"text\": \"\"\n2. - delete_file: Delete file, args: \"filename\": \"\"\n3. list_files: - List Files in Directory, args: \"directory\": \"\"\n4. read_file: - Read file, args: \"filename\": \"\"\n5. write_to_file: Write to file, - args: \"filename\": \"\", \"text\": \"\"\n6. browse_website: - Browse Website, args: \"url\": \"\", \"question\": \"\"\n7. - delete_agent: Delete GPT Agent, args: \"key\": \"\"\n8. get_hyperlinks: - Get text summary, args: \"url\": \"\"\n9. get_text_summary: Get text summary, - args: \"url\": \"\", \"question\": \"\"\n10. list_agents: List - GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\": - \"\", \"message\": \"\"\n12. start_agent: Start GPT Agent, args: - \"name\": \"\", \"task\": \"\", \"prompt\": \"\"\n13. - 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 1 00:00:00 2000"}, {"role": - "system", "content": "This reminds you of these events from your past: \nAs - a system, I recall that nothing new has happened since my creation."}, {"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 use the browse_website command to visit http://books.toscrape.com/catalogue/meditations_33/index.html - and find the price of the book.\",\n \"reasoning\": \"I can use the browse_website - command to visit the website and search for the price of the book by inspecting - the HTML code.\",\n \"plan\": \"- Use the browse_website command to visit - the website\\n- Inspect the HTML code to find the price of the book\\n- Write - the price to a file named ''browse_website.txt''\",\n \"criticism\": - \"I need to be careful when inspecting the HTML code to ensure that I find the - correct price.\",\n \"speak\": \"I will use the browse_website command - to visit the website and find the price of the book.\"\n },\n \"command\": - {\n \"name\": \"browse_website\",\n \"args\": {\n \"url\": - \"http://books.toscrape.com/catalogue/meditations_33/index.html\",\n \"question\": - \"What is the price of the book?\"\n }\n }\n}"}, {"role": "system", - "content": "Command browse_website returned: (''Answer gathered from website: - The price of the book \"Meditations\" is \u00a325.89. \\n \\n Links: [\\''Books - to Scrape (http://books.toscrape.com/index.html)\\'', \\''Home (http://books.toscrape.com/index.html)\\'', - \\''Books (http://books.toscrape.com/catalogue/category/books_1/index.html)\\'', - \\''Philosophy (http://books.toscrape.com/catalogue/category/books/philosophy_7/index.html)\\'', - \\'' (http://books.toscrape.com/catalogue/the-nicomachean-ethics_75/index.html)\\'']'', - )"}, {"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 price of the book to a file named - ''browse_website.txt''.\",\n \"reasoning\": \"I can use the write_to_file - command to write the price of the book to a file named ''browse_website.txt''.\",\n \"plan\": - \"- Use the write_to_file command to write the price of the book to a file named - ''browse_website.txt''.\",\n \"criticism\": \"I need to ensure that the - file is created in the correct directory.\",\n \"speak\": \"I will use - the write_to_file command to write the price of the book to a file named ''browse_website.txt''.\"\n },\n \"command\": - {\n \"name\": \"write_to_file\",\n \"args\": {\n \"filename\": - \"browse_website.txt\",\n \"text\": \"The price of the book ''Meditations'' - is \u00a325.89.\"\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": 0}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '6857' - Content-Type: - - application/json - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA6SS0WvbMBDG3/dXiHtWgjM3TaLHllG6wmClpbB6BFU+W1pkyUjnpSP4fx+KnabN - Hla2R326+77f6bQDU4IApSWpprWTxcW36uru4Xbx+SH7epP51a2eX93ffKoWl+UlcPBPP1DR2DFV - vmktkvEOOKiAkrAEMTtfflyt8my+5ND4Ei0IqFua5NP5hLrw5CdZns2AQxdljSB20AbftLQmv0EX - QczmZysOR/PjRX7GgTxJe5TOl3nPQWlvFEYQjztoMB6Mg7cIAmSMJpJ0lDC9I3RphF3hGGOsANK+ - qzXFAgQbxfECnymJBVwzLX8iG5mwZKSRkYybKbtmDpPgWRfxRV8fSlNPI92+IOqOWOm3bloAfx0U - UEbvjKv/ksb2RhoDMhmQOc+qLqQzkyq9VEwpJDeYsJR0/4HUWukGmgm7/2cXFQwZZWIzWH3xDk8q - Yoty856xt8Za5vz2Tdjg1PPDKkemPzbpZINDyJsZTlhkqE8/wev9DAZ3CejIGDulMMaqs/bXC9Ae - amQrXA89h8o4E/V6cAIBkXwLHIwr8RlE1n/vP/wGAAD//wMAY/RLTo0DAAA= - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 7c0cb15989dc944a-SJC - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Tue, 02 May 2023 02:04:27 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: - - '8172' - 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: - - '86500' - x-ratelimit-reset-requests: - - 17ms - x-ratelimit-reset-tokens: - - 2.333s - x-request-id: - - 7729a95d875601d045b688125b262d58 - status: - code: 200 - message: OK -- request: - body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You - are browse_website-GPT, an AI designed to use the browse_website command to - visit http://books.toscrape.com/catalogue/meditations_33/index.html, answer - the question ''What is the price of the book?'' and write the price to a file - named \"browse_website.txt\", and 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 browse_website command - to visit http://books.toscrape.com/catalogue/meditations_33/index.html and answer - the question ''What is the price of the book?''\n2. Write the price of the book - to a file named \"browse_website.txt\".\n3. Use the task_complete command to - complete the task.\n4. 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\": \"\", \"text\": \"\"\n2. - delete_file: Delete file, args: \"filename\": \"\"\n3. list_files: - List Files in Directory, args: \"directory\": \"\"\n4. read_file: - Read file, args: \"filename\": \"\"\n5. write_to_file: Write to file, - args: \"filename\": \"\", \"text\": \"\"\n6. browse_website: - Browse Website, args: \"url\": \"\", \"question\": \"\"\n7. - delete_agent: Delete GPT Agent, args: \"key\": \"\"\n8. get_hyperlinks: - Get text summary, args: \"url\": \"\"\n9. get_text_summary: Get text summary, - args: \"url\": \"\", \"question\": \"\"\n10. list_agents: List - GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\": - \"\", \"message\": \"\"\n12. start_agent: Start GPT Agent, args: - \"name\": \"\", \"task\": \"\", \"prompt\": \"\"\n13. - task_complete: Task Complete (Shutdown), 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 1 00:00:00 2000"}, {"role": - "user", "content": "Determine which next command to use, and respond using the - format specified above:"}], "temperature": 0, "max_tokens": 0}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '3782' - Content-Type: - - application/json - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA7RTS2/TQBC+8ytWc3YSB0Pq+oKEhEQuOVAhkHAVbdYTexvvjrs7TlNF+e9oYzsk - KRJFiOs8vsc89qALyEBVkpVp6tHNx+fvi0/+s3vcpYvZbLV5MPE8uVt8eV5MZxABrR5Qcd8xVmSa - GlmThQiUQ8lYQDadpUmcprPZbQSGCqwhg7LhUTJ+P+LWrWgUJ/EUImi9LBGyPTSOTMNLpg1aD1n6 - 7jaCX9in+NskjYCJZX0KTeP05hCBqkgr9JD92INBP+A6qhEykN5rz9JyUEmW0QYH+9wKIUQOXFFb - VuxzyEQf7BO44xDMYS4sYiGYROtRcIVi5ejJ4/IJV14zCkXGSHus2GqvWVTMTTaZrIg2fszklZMN - hoFNlGRZU9nixGChWQaLfpkkE20L3I0rNrUIUGsd8CoUjdMKBa07XqLNOIfoXKdD6clqWw5ilbSv - FhpqhmRIeJROVWJN7nXkTS1txzsSX/+eM8/tSNz9gbMrkls8SzMJKda6RmGlweKKc8w7PnYNklj6 - zbK/qQtFp9hQdeVPOc1aaW+uLwGtb11okyzmQpp+ctqWJyOKnEPFQts1OXPctCD7YuRnEHIb+kPB - eQ/TBVxwfb0G36DcDBKfdF3/zwPoiA/R8EE95osHCpvpNF2KuNIuXXn9fF2idXXX/k/fdMHWAT+2 - 6ENlh/4tzF/739v9MNg9Wu6d5/YAhwjW2mpfLbv/gww8UwMRHKkhiw/3hzc/AQAA//8DAMkYr7xh - BQAA - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 7c15cf968c8f2e2d-DFW - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Wed, 03 May 2023 04:38:03 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: - - significant-gravitas - openai-processing-ms: - - '14086' - 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: - - '86493' - x-ratelimit-reset-requests: - - 17ms - x-ratelimit-reset-tokens: - - 2.338s - x-request-id: - - 7d5960d2e736b510f90bce2462edc349 - status: - code: 200 - message: OK -- request: - body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You - are browse_website-GPT, an AI designed to use the browse_website command to - visit http://books.toscrape.com/catalogue/meditations_33/index.html, answer - the question ''What is the price of the book?'' and write the price to a file - named \"browse_website.txt\", and 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 browse_website command - to visit http://books.toscrape.com/catalogue/meditations_33/index.html and answer - the question ''What is the price of the book?''\n2. Write the price of the book - to a file named \"browse_website.txt\".\n3. Use the task_complete command to - complete the task.\n4. 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\": \"\", \"text\": \"\"\n2. - delete_file: Delete file, args: \"filename\": \"\"\n3. list_files: - List Files in Directory, args: \"directory\": \"\"\n4. read_file: - Read file, args: \"filename\": \"\"\n5. write_to_file: Write to file, - args: \"filename\": \"\", \"text\": \"\"\n6. browse_website: - Browse Website, args: \"url\": \"\", \"question\": \"\"\n7. - delete_agent: Delete GPT Agent, args: \"key\": \"\"\n8. get_hyperlinks: - Get text summary, args: \"url\": \"\"\n9. get_text_summary: Get text summary, - args: \"url\": \"\", \"question\": \"\"\n10. list_agents: List - GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\": - \"\", \"message\": \"\"\n12. start_agent: Start GPT Agent, args: - \"name\": \"\", \"task\": \"\", \"prompt\": \"\"\n13. - task_complete: Task Complete (Shutdown), 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 1 00:00:00 2000"}, {"role": - "system", "content": "This reminds you of these events from your past: \nI was - created and nothing new has happened."}, {"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 use the browse_website command to visit http://books.toscrape.com/catalogue/meditations_33/index.html - and find the price of the book.\",\n \"reasoning\": \"I can use the browse_website - command to visit the website and search for the price of the book.\",\n \"plan\": - \"- Use the browse_website command to visit the website\\n- Search for the price - of the book\\n- Save the price to a file named browse_website.txt\\n- Use the - task_complete command to complete the task\",\n \"criticism\": \"I need - to ensure that I am searching for the correct information on the website and - that I am saving the information to the correct file.\",\n \"speak\": - \"I will use the browse_website command to visit the website and search for - the price of the book.\"\n },\n \"command\": {\n \"name\": \"browse_website\",\n \"args\": - {\n \"url\": \"http://books.toscrape.com/catalogue/meditations_33/index.html\",\n \"question\": - \"What is the price of the book?\"\n }\n }\n}"}, {"role": "system", - "content": "Command browse_website returned: (''Answer gathered from website: - The price of the book \"Meditations\" is \u00a325.89. \\n \\n Links: [\\''Books - to Scrape (http://books.toscrape.com/index.html)\\'', \\''Home (http://books.toscrape.com/index.html)\\'', - \\''Books (http://books.toscrape.com/catalogue/category/books_1/index.html)\\'', - \\''Philosophy (http://books.toscrape.com/catalogue/category/books/philosophy_7/index.html)\\'', - \\'' (http://books.toscrape.com/catalogue/the-nicomachean-ethics_75/index.html)\\'']'', - )"}, {"role": "user", "content": "Determine which next command to use, and respond - using the format specified above:"}], "temperature": 0, "max_tokens": 0}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '5788' - Content-Type: - - application/json - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA7xTzY7aMBC+9ymsOQcUQCyQYw+VaMWh0raq2lSR4wyJN4knsgeFLsrT9E36ZFX+ - gE33uj16fr6fmfEFdAIBqEyyKqtitnn/61t2qD8dntWHz+nj93W+f/5a508bjM1H8IDiJ1Q8dMwV - lVWBrMmAB8qiZEwgWDxsV/52+7DdeVBSggUEkFY8W83XMz7ZmGb+yl+ABycnU4TgApWlsuKIKUfj - IFis/I0HN/BrYukvPWBiWdxq1/6u8UBlpBU6CH5coEQ3AlsqEAKQzmnH0nArkwyjaS1cQiOEECFw - Rqc0YxdCIIbgkMAzt8EQ9sIgJoJJ1FYzCs5QVFYrFHTsHjFR3qalOOoChZElJiK2VDuMaoydZpzz - mechePcMFqUjo0060ihpxMn1BB1VxBR1kIrKUpo30FAV0vT0M/HlbanD0Nw4WLo8Grb8guMaG6sm - gpXVrJV25XQ3aNzJtm2SxV7IslOrTdoBKbIWFQttjmRL2R5W23OfarVPp+MqlPlIVOui+A/r6fkb - bzzQAfuf+2whemkvtEwcSJtOT7tPtLU3iFe2dY8z/RGPr9oLwxAOmGju5uvap9BO/Pm9XM+3u6u1 - zt7gMjQNNB4ctdEui/oPAQE4pgo80CbBMwR+87N59xcAAP//AwDKCqtorQQAAA== - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 7c15d0162f7e2e2d-DFW - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Wed, 03 May 2023 04:38:22 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: - - significant-gravitas - openai-processing-ms: - - '12877' - 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: - - '86484' - x-ratelimit-reset-requests: - - 17ms - x-ratelimit-reset-tokens: - - 2.344s - x-request-id: - - 3f98e6bc193fe721af8b1119040752cf - status: - code: 200 - message: OK -- request: - body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You - are browse_website-GPT, an AI designed to use the browse_website command to - visit http://books.toscrape.com/catalogue/meditations_33/index.html, answer - the question ''What is the price of the book?'' and write the price to a file - named \"browse_website.txt\", and 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 browse_website command - to visit http://books.toscrape.com/catalogue/meditations_33/index.html and answer - the question ''What is the price of the book?''\n2. Write the price of the book - to a file named \"browse_website.txt\".\n3. Use the task_complete command to - complete the task.\n4. 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\": \"\", \"text\": \"\"\n2. - delete_file: Delete file, args: \"filename\": \"\"\n3. list_files: - List Files in Directory, args: \"directory\": \"\"\n4. read_file: - Read file, args: \"filename\": \"\"\n5. write_to_file: Write to file, - args: \"filename\": \"\", \"text\": \"\"\n6. browse_website: - Browse Website, args: \"url\": \"\", \"question\": \"\"\n7. - delete_agent: Delete GPT Agent, args: \"key\": \"\"\n8. get_hyperlinks: - Get text summary, args: \"url\": \"\"\n9. get_text_summary: Get text summary, - args: \"url\": \"\", \"question\": \"\"\n10. list_agents: List - GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\": - \"\", \"message\": \"\"\n12. start_agent: Start GPT Agent, args: - \"name\": \"\", \"task\": \"\", \"prompt\": \"\"\n13. - task_complete: Task Complete (Shutdown), 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 1 00:00:00 2000"}, {"role": - "system", "content": "This reminds you of these events from your past: \nAs - a system, I recall that nothing new has happened since my creation."}, {"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 use the browse_website command to visit http://books.toscrape.com/catalogue/meditations_33/index.html - and find the price of the book.\",\n \"reasoning\": \"I can use the browse_website - command to visit the website and search for the price of the book.\",\n \"plan\": - \"- Use the browse_website command to visit the website\\n- Search for the price - of the book\\n- Save the price to a file named browse_website.txt\\n- Use the - task_complete command to complete the task\",\n \"criticism\": \"I need - to ensure that I am searching for the correct information on the website and - that I am saving the information to the correct file.\",\n \"speak\": - \"I will use the browse_website command to visit the website and search for - the price of the book.\"\n },\n \"command\": {\n \"name\": \"browse_website\",\n \"args\": - {\n \"url\": \"http://books.toscrape.com/catalogue/meditations_33/index.html\",\n \"question\": - \"What is the price of the book?\"\n }\n }\n}"}, {"role": "system", - "content": "Command browse_website returned: (''Answer gathered from website: - The price of the book \"Meditations\" is \u00a325.89. \\n \\n Links: [\\''Books - to Scrape (http://books.toscrape.com/index.html)\\'', \\''Home (http://books.toscrape.com/index.html)\\'', - \\''Books (http://books.toscrape.com/catalogue/category/books_1/index.html)\\'', - \\''Philosophy (http://books.toscrape.com/catalogue/category/books/philosophy_7/index.html)\\'', - \\'' (http://books.toscrape.com/catalogue/the-nicomachean-ethics_75/index.html)\\'']'', - )"}, {"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 price of the book to a file named - browse_website.txt.\",\n \"reasoning\": \"I can use the write_to_file - command to write the price of the book to a file named browse_website.txt.\",\n \"plan\": - \"- Use the write_to_file command to write the price of the book to a file named - browse_website.txt\\n- Use the task_complete command to complete the task\",\n \"criticism\": - \"I need to ensure that I am writing the correct information to the correct - file.\",\n \"speak\": \"I will use the write_to_file command to write - the price of the book to a file named browse_website.txt.\"\n },\n \"command\": - {\n \"name\": \"write_to_file\",\n \"args\": {\n \"filename\": - \"browse_website.txt\",\n \"text\": \"The price of the book \\\"Meditations\\\" - is \u00a325.89.\"\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": 0}' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '6974' - Content-Type: - - application/json - method: POST - uri: https://api.openai.com/v1/chat/completions - response: - body: - string: !!binary | - H4sIAAAAAAAAA6xSTY/TMBC98yusObtVq1Ja5QYIRJcLh0VaiaDKcaaJqT+CZ7LtUuW/o7RJ0w1c - WHH0m5k3743fCUwOCehSsXaVnazePT0ctbt7X+svxacPP399frjfuPu3H211p0FCyH6g5m5iqoOr - LLIJHiToiIoxh2T+Zr2Yrder2VKCCzlaSKCoeLKYLidcxyxMZovZHCTUpAqE5ARVDK7iLYc9eoJk - vlyuJAzkQ2H1WgIHVvYGWswbCboMRiNB8u0EDqknjsEiJKCIDLHy3MoMntG3Fk6pF0KIFLgMdVEy - pZCIDuwKeOQWTGEjPGIuOIiaUHCJghXtt51GFDo4p/y54Yr1XdMU5C1rREXBG1/01KV6xOtYfp0T - YSceDRk2vjiDB8zIMIp20SEOeBWNxra7fWQh7FsZSuyMReGVw1xkMRwItx3BlI8sBQWxEVr5/+Co - sspfzEzE139mG5Hp1pk25MaXR091bMcUDzcyNBBmuAsRRU39Yf6qYSyeKlT7ftfBWPuyg1woG9mH - qmv/I1Pth1y2PaMfiVKxGMfxNjzPkkO11ki0q619ugSmC9E4L4z+xXm5Ojy77MymvoFGws54Q+X2 - Ig0SIA4VSDA+xyMks+Z78+o3AAAA//8DAOBHTyVoBAAA - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 7c15d07678622e2d-DFW - Cache-Control: - - no-cache, must-revalidate - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Wed, 03 May 2023 04:38: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: - - significant-gravitas - openai-processing-ms: - - '10949' - 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: - - '86479' - x-ratelimit-reset-requests: - - 17ms - x-ratelimit-reset-tokens: - - 2.346s + - 2.347s x-request-id: - - 176c6e9d4a6ec0fa8a0c8053a4f50218 + - 09cc7d22955a6d026a3d8c433a65c28e status: code: 200 message: OK diff --git a/tests/unit/test_web_selenium.py b/tests/unit/test_web_selenium.py index bf13a8d9ed04..2746f6840fc8 100644 --- a/tests/unit/test_web_selenium.py +++ b/tests/unit/test_web_selenium.py @@ -5,7 +5,7 @@ def test_browse_website(): url = "https://barrel-roll.com" question = "How to execute a barrel roll" - response, _ = browse_website(url, question) + response = browse_website(url, question) assert "Error" in response # Sanity check that the response is not too long assert len(response) < 200