AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
scrape text regression test (#3387)
merwanehamadiadbb47fb652a
diff --git a/autogpt/main.py b/autogpt/main.pyindex b3ffb01ebb..848a22a0e5 100644--- a/autogpt/main.py+++ b/autogpt/main.py@@ -12,7 +12,7 @@ from autogpt.configurator import create_configfrom autogpt.logs import loggerfrom autogpt.memory import get_memoryfrom autogpt.plugins import scan_plugins-from autogpt.prompts.prompt import construct_main_ai_config+from autogpt.prompts.prompt import DEFAULT_TRIGGERING_PROMPT, construct_main_ai_configfrom autogpt.utils import get_current_git_branch, get_latest_bulletinfrom autogpt.workspace import Workspacefrom scripts.install_plugin_deps import install_plugin_dependencies@@ -124,11 +124,7 @@ def run_auto_gpt(# Initialize variablesfull_message_history = []next_action_count = 0- # Make a constant:- triggering_prompt = (- "Determine which next command to use, and respond using the"- " format specified above:"- )+# Initialize memory and make sure it is empty.# this is particularly important for indexing and referencing pinecone memorymemory = get_memory(cfg, init=True)@@ -148,7 +144,7 @@ def run_auto_gpt(command_registry=command_registry,config=ai_config,system_prompt=system_prompt,- triggering_prompt=triggering_prompt,+ triggering_prompt=DEFAULT_TRIGGERING_PROMPT,workspace_directory=workspace_directory,)agent.start_interaction_loop()diff --git a/autogpt/prompts/prompt.py b/autogpt/prompts/prompt.pyindex 1d169fe16d..c1240157e2 100644--- a/autogpt/prompts/prompt.py+++ b/autogpt/prompts/prompt.py@@ -10,6 +10,10 @@ from autogpt.utils import clean_inputCFG = Config()+DEFAULT_TRIGGERING_PROMPT = (+ "Determine which next command to use, and respond using the format specified above:"+)+def build_default_prompt_generator() -> PromptGenerator:"""@@ -71,9 +75,6 @@ def build_default_prompt_generator() -> PromptGenerator:"Every command has a cost, so be smart and efficient. Aim to complete tasks in"" the least number of steps.")- prompt_generator.add_performance_evaluation(- "If you cannot think of a valid command to perform start or message an agent to determine the next command."- )prompt_generator.add_performance_evaluation("Write all code to a file.")return prompt_generatordiff --git a/tests/integration/agent_factory.py b/tests/integration/agent_factory.pynew file mode 100644index 0000000000..2a88a7b1cb--- /dev/null+++ b/tests/integration/agent_factory.py@@ -0,0 +1,87 @@+import os++from autogpt.agent import Agent+from autogpt.app import CFG+from autogpt.commands.command import CommandRegistry+from autogpt.config import AIConfig+from autogpt.memory import get_memory+from autogpt.prompts.prompt import DEFAULT_TRIGGERING_PROMPT+++def create_browser_agent(workspace):+ command_registry = CommandRegistry()+ command_registry.import_commands("autogpt.commands.file_operations")+ command_registry.import_commands("autogpt.commands.web_selenium")+ command_registry.import_commands("autogpt.app")++ ai_config = AIConfig(+ ai_name="browse_website-GPT",+ ai_role="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.",+ ai_goals=[+ "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?'",+ 'Write the price of the book to a file named "browse_website.txt".',+ "Use the task_complete command to complete the task.",+ "Do not use any other commands.",+ ],+ )+ ai_config.command_registry = command_registry+ CFG.set_continuous_mode(True)+ CFG.set_memory_backend("no_memory")+ CFG.set_temperature(0)++ memory = get_memory(CFG, init=True)+ system_prompt = ai_config.construct_full_prompt()++ agent = Agent(+ ai_name="",+ memory=memory,+ 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+++def create_writer_agent(workspace):+ command_registry = CommandRegistry()+ command_registry.import_commands("autogpt.commands.file_operations")+ command_registry.import_commands("autogpt.app")++ ai_config = AIConfig(+ ai_name="write_to_file-GPT",+ ai_role="an AI designed to use the write_to_file command to write 'Hello World' into a file named \"hello_world.txt\" and then use the task_complete command to complete the task.",+ ai_goals=[+ "Use the write_to_file command to write 'Hello World' into a file named \"hello_world.txt\".",+ "Use the task_complete command to complete the task.",+ "Do not use any other commands.",+ ],+ )+ ai_config.command_registry = command_registry+ CFG.set_continuous_mode(True)+ CFG.set_memory_backend("no_memory")+ CFG.set_temperature(0)+ memory = get_memory(CFG, init=True)+ triggering_prompt = (+ "Determine which next command to use, and respond using the"+ " format specified above:"+ )+ system_prompt = ai_config.construct_full_prompt()++ agent = Agent(+ ai_name="",+ memory=memory,+ full_message_history=[],+ command_registry=command_registry,+ config=ai_config,+ next_action_count=0,+ system_prompt=system_prompt,+ triggering_prompt=triggering_prompt,+ workspace_directory=workspace.root,+ )++ return agentdiff --git a/tests/integration/agent_utils.py b/tests/integration/agent_utils.pynew file mode 100644index 0000000000..3d03ef5eed--- /dev/null+++ b/tests/integration/agent_utils.py@@ -0,0 +1,10 @@+import concurrent+++def run_interaction_loop(agent, timeout):+ with concurrent.futures.ThreadPoolExecutor() as executor:+ future = executor.submit(agent.start_interaction_loop)+ try:+ result = future.result(timeout=timeout)+ except concurrent.futures.TimeoutError:+ assert False, f"The process took longer than {timeout} seconds to complete."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.yamlnew file mode 100644index 0000000000..63da74c454--- /dev/null+++ b/tests/integration/goal_oriented/cassettes/test_browse_website/test_browse_website.yaml@@ -0,0 +1,1375 @@+interactions:+- 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\": \"<filename>\", \"text\": \"<text>\"\n2.+ delete_file: Delete file, args: \"filename\": \"<filename>\"\n3. read_file:+ Read file, args: \"filename\": \"<filename>\"\n4. search_files: Search Files,+ args: \"directory\": \"<directory>\"\n5. write_to_file: Write to file, args:+ \"filename\": \"<filename>\", \"text\": \"<text>\"\n6. browse_website: Browse+ Website, args: \"url\": \"<url>\", \"question\": \"<what_you_want_to_find_on_website>\"\n7.+ delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n8. get_hyperlinks:+ Get text summary, args: \"url\": \"<url>\"\n9. get_text_summary: Get text summary,+ args: \"url\": \"<url>\", \"question\": \"<question>\"\n10. list_agents: List+ GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\":+ \"<key>\", \"message\": \"<message>\"\n12. start_agent: Start GPT Agent, args:+ \"name\": \"<name>\", \"task\": \"<short_task_desc>\", \"prompt\": \"<prompt>\"\n13.+ Task Complete (Shutdown): \"task_complete\", args: \"reason\": \"<reason>\"\n\nResources:\n1.+ Internet access for searches and information gathering.\n2. Long Term memory+ management.\n3. GPT-3.5 powered Agents for delegation of simple tasks.\n4. File+ output.\n\nPerformance Evaluation:\n1. Continuously review and analyze your+ actions to ensure you are performing to the best of your abilities.\n2. Constructively+ self-criticize your big-picture behavior constantly.\n3. Reflect on past decisions+ and strategies to refine your approach.\n4. Every command has a cost, so be+ smart and efficient. Aim to complete tasks in the least number of steps.\n5.+ Write all code to a file.\n\nYou should only respond in JSON format as described+ below \nResponse Format: \n{\n \"thoughts\": {\n \"text\": \"thought\",\n \"reasoning\":+ \"reasoning\",\n \"plan\": \"- short bulleted\\n- list that conveys\\n-+ long-term plan\",\n \"criticism\": \"constructive self-criticism\",\n \"speak\":+ \"thoughts summary to say to user\"\n },\n \"command\": {\n \"name\":+ \"command name\",\n \"args\": {\n \"arg name\": \"value\"\n }\n }\n}+ \nEnsure the response can be parsed by Python json.loads"}, {"role": "system",+ "content": "The current time and date is Tue Jan 01 00:00:00 2000"}, {"role":+ "system", "content": "This reminds you of these events from your past:\n\n\n"},+ {"role": "user", "content": "Determine which next command to use, and respond+ using the format specified above:"}], "temperature": 0, "max_tokens": 3135}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '3866'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/chat/completions+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA7xTS2vbQBC+91cMc5bfxEl06aFQSCg9uAmhVMGsV2NpI+2OsjtyAsb/vaxl5eGQ+ trTQ68zu95qZLZocU9SlEm2benB6zhf222ZRVZ8WslH68q51Xy+/X02IF2tMkFd3pOXwY6jZNjWJ+ YYcJak9KKMd0Mj+bnpxO5/OzBC3nVGOKRSOD2fBkIK1f8WA8G08wwTaogjDdYuPZNrIUrsgFTM/m+ 0wSfsZ/q09lpgsKi6qfSZHx+vktQl2w0BUx/bNFS6HE914QpqhBMEOUkqmQn5KKDbeYAADKUktui+ lJBhCofioUGPEosZXsCDqWtoA4GUBCvPD4GWD7QKRgg0W6tcDsKwMcEIlCJNOhqtmKswFA7aq4Zi+ WiOtRNVctDSylBtR0V9YzmYj43J6HJZia4hQaxPxSoLGG03A646XuRpmmLwU6UkFdsYVndKrkkBU+ qMDTfWs8BbAUhb0PmOwJf2HLhK5LQYCbqDgCKl0a2sQ8TDjW1NTKdXIGcP0/MssyN4DP71rct298+ 5H3uRw+wNjWBU5byI4FDibN/5Up7I0abYPudcER7A+RC6yO0ErgAZaENxhV7Ks3ekxa4XnzZx3zf+ UugT/PMZh4ZU9VebGN/0zd/uVUe5S/rDOKC9uYuYV6fmNf2RauWL45vqGq2vu+//NvOXbB1wn26H+ fhPncVjeN3Y/9nb3lg/OM7fDXYJr40wol91lYYpBuMEE99SYjne3uw8/AQAA//8DAIk1DVg4BQAA+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be499e66c20ced1-SJC+ Cache-Control:+ - no-cache, must-revalidate+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Thu, 27 Apr 2023 05:18:11 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:+ - '23148'+ openai-version:+ - '2020-10-01'+ strict-transport-security:+ - max-age=15724800; includeSubDomains+ x-ratelimit-limit-requests:+ - '3500'+ x-ratelimit-remaining-requests:+ - '3499'+ x-ratelimit-reset-requests:+ - 17ms+ x-request-id:+ - 0c30c154a2ed5a2a8a31bff33d3448c3+ status:+ code: 200+ message: OK+- request:+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "\"\"\"Books+ to Scrape We love being scraped! Home Books Philosophy Meditations Meditations+ \u00a325.89 In stock (1 available) Warning! This is a demo website for web scraping+ purposes. Prices and ratings here were randomly assigned and have no real meaning.+ Product Description Written in Greek, without any intention of publication,+ by the only Roman emperor who was also a philosopher, the Meditations of Marcus+ Aurelius (AD 121-180) offer a remarkable series of challenging spiritual reflections+ and exercises developed as the emperor struggled to understand himself and make+ sense of the universe. Ranging from doubt and despair to conviction and ex Written+ in Greek, without any intention of publication, by the only Roman emperor who+ was also a philosopher, the Meditations of Marcus Aurelius (AD 121-180) offer+ a remarkable series of challenging spiritual reflections and exercises developed+ as the emperor struggled to understand himself and make sense of the universe.+ Ranging from doubt and despair to conviction and exaltation, they cover such+ diverse topics as the nature of moral virtue, human rationality, divine providence,+ and Marcus'' own emotions. But while the Meditations were composed to provide+ personal consolation and encouragement, in developing his beliefs Marcus Aurelius+ also created one of the greatest of all works of philosophy: a timeless collection+ of extended meditations and short aphorisms that has been consulted and admired+ by statesmen, thinkers and readers through the centuries. ...more Product Information+ UPC4f19709e47883df5 Product TypeBooks Price (excl. tax)\u00a325.89 Price (incl.+ tax)\u00a325.89 Tax\u00a30.00 Availability In stock (1 available) Number of+ reviews 0 Products you recently viewed The Nicomachean Ethics \u00a336.34 In+ stock Add to basket Run, Spot, Run: The ... \u00a320.02 In stock Add to basket+ Critique of Pure Reason \u00a320.75 In stock Add to basket At The Existentialist+ Caf\u00e9: ... \u00a329.93 In stock Add to basket Kierkegaard: A Christian Missionary+ ... \u00a347.13 In stock Add to basket Proofs of God: Classical ... \u00a354.21+ In stock Add to basket\"\"\" 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": null}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '2407'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/chat/completions+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA0SOwWrCQBRF9/2KcNeTkKgxZvYFKbiwFbqoRSaTpxlN5qWZZ2mRfE3/pF9WhNZu+ D9xzzwWuhoZtjNiub+Oi5IdlcTiv5X29ahtqnu6Xb4+b4+eseF5CgasjWfldJJa7viVx7KFgBzJC+ NXQ2X0zyYjIvS4WOa2qhceglniZ5LOeh4jidphkUzsEcCPqCfuCul53wiXyAni1yhX/3jWdzBWEx+ 7Y3kaTYq2IadpQD9ckFH4c86cEvQMCG4IMbLtZG9kL/2bxqK+sFZingfSUNRxXyKtlhR7cRcb8MW+ kQvR99ckTxZlglFh77wLzW4gE9hDIwj3UHC+pg/odHwd734AAAD//wMAj2F8NVEBAAA=+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be49aa96fbbced1-SJC+ Cache-Control:+ - no-cache, must-revalidate+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Thu, 27 Apr 2023 05:18: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:+ - user-adtx4fhfg1qsiyzdoaxciooj+ openai-processing-ms:+ - '3508'+ openai-version:+ - '2020-10-01'+ strict-transport-security:+ - max-age=15724800; includeSubDomains+ x-ratelimit-limit-requests:+ - '3500'+ x-ratelimit-remaining-requests:+ - '3499'+ x-ratelimit-reset-requests:+ - 17ms+ x-request-id:+ - 5d1aace4f6a0d761311cb9123e585128+ 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": null}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '338'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/chat/completions+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA0SOwWrCQBRF9/2K4a4nIWpjdLbFTSGrumlrkXHyNKPJvCHzLILka/on/bIitHZ7+ 4J57rvANDFxrxfWxy6olP9d13b6+PMX12SbffV5WvJofZm9yhAbvjuTkd5E77mNH4jlAww1khRqY+ yXwxLatpVTxq9NxQB4NDlGyWl5mchx1nxayYQOOc7IFgrogD91G2wicKCaZcavyr73gy1xAW291J+ VY4armXvKMG8X9FT+nMO3BEMbEo+iQ1yK+QgFG7165ZUHLwjxXslLakd80ltUFPjxd5e0wbKJ/X9+ NS3zxTLHqLH3wad2O5BNHGCQhCM0fGjoAlOMH+PDDwAAAP//AwBNSnfkTwEAAA==+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be49aca5c1cced1-SJC+ Cache-Control:+ - no-cache, must-revalidate+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Thu, 27 Apr 2023 05:18: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:+ - '2637'+ openai-version:+ - '2020-10-01'+ strict-transport-security:+ - max-age=15724800; includeSubDomains+ x-ratelimit-limit-requests:+ - '3500'+ x-ratelimit-remaining-requests:+ - '3499'+ x-ratelimit-reset-requests:+ - 17ms+ x-request-id:+ - 1b0d10e2a3a5eb7feff786645a7a4856+ status:+ code: 200+ message: OK+- request:+ body: '{"input": ["Assistant Reply: { \"thoughts\": { \"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.\", \"reasoning\": \"The task requires+ me to find the price of the book, and the browse_website command is the best+ option to achieve this.\", \"plan\": \"- Use the browse_website command+ to visit http://books.toscrape.com/catalogue/meditations_33/index.html\\n- Find+ the price of the book\\n- Write the price to a file named browse_website.txt\", \"criticism\":+ \"I need to ensure that I am using the correct URL and question to find the+ price of the book.\", \"speak\": \"I will use the browse_website command+ to visit the website and find the price of the book.\" }, \"command\":+ { \"name\": \"browse_website\", \"args\": { \"url\":+ \"http://books.toscrape.com/catalogue/meditations_33/index.html\", \"question\":+ \"What is the price of the book?\" } } } Result: 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)\\'']'',+ <selenium.webdriver.chrome.webdriver.WebDriver (session=\"6f53929874014a52eb5d50c659bb304d\")>) Human+ Feedback: "], "model": "text-embedding-ada-002", "encoding_format": "base64"}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '1758'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/embeddings+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA1SaS8+7Opfl5++nODpT+lWAEGzOjHu4xSYhIdBqtSAQEkhCuNiAS/XdS+TfqlZN+ nkFA4gFvr71+a/s//vXXX3+3eV3exr//+evv13MY//5f629FNmZ///PX//7XX3/99dd//P7+jzvL+ d14WxfNT/W7/XXx+inL++5+/+P/+5f/f9M9ff2tSLJKtsZsNVkekgmHwGGgwdXw/hFMDYf+wM4q1+ yvFF/XiP4bzYNdXi4u4v/h3eoAd2PjVqTsvn/TipMBy5DMFI30TLNqoROIJ+TyinvHq2++SN3Elm+ T3H/GgwCLqIH7EdypftGvPasVZIQLDF7UOMTVmBB5ocHwyc/EMFwr/1QBAqSny4+UyylNpjDpZBk+ tWtd6nyhasxbQBLY6w9CdXKo+hE73wnehQRgjbaWP5eGrSuGxd+wj4e5npj71JUGNCkB2Xjv53ex+ HYCY0gt27lT0l8WSHBjG7wc2ikyvR6c2z8oO+zW2v/Len9SDpv6eh81HOQF2VOsntKQXRXy0qxnh+ duobajHVUPWavWgB7vcNXt0joqh6s57UtdNAKUQd9gz47qdq4k2lF95H9C6hB7bn5plAgi8CRiZ/+ Y6xp5go+HGEgojxH+USjvoVYMgRshp2Yj0GqD3D4pAd8BkUGWLsMbzjz8IXNdDn7o30MpN07Tk2s+ fvmbP+f7LIGC672pX5u+ITi1GcNFQpi6YubXRB40CMcwgbTMpovPLqh8Q6uxJGzfuz4fpwV68Hi2+ 94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DBRIgOwWUqRDk9dJlOXs51oTJLPBFY/SsOv4bLpqE268vfvVMB//uuvv/7P74TBuy3K13owYCzn+ 8d//fVTg31mR/ZvnxX9T8c9JBDJkVfn3P//vEMLf3759f8f/O7ZN+Rn+/ucvSZD+nDf4e2zH7PU/+ Lvxrfd5//uu/AAAA//8DAP7X1ErlIAAA+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be49adbe81cced1-SJC+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Thu, 27 Apr 2023 05:18:27 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:+ - '65'+ 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:+ - 42dff468686feebf028abb07e86d8a68+ status:+ code: 200+ message: OK+- request:+ body: '{"input": ["[{''role'': ''user'', ''content'': ''Determine which next command+ to use, and respond using the format specified above:''}, {''role'': ''assistant'',+ ''content'': ''{\\n \"thoughts\": {\\n \"text\": \"I will use the+ 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 find the price of the book, and the browse_website command is the best+ option to achieve this.\",\\n \"plan\": \"- Use the browse_website command+ to visit http://books.toscrape.com/catalogue/meditations_33/index.html\\\\n-+ Find the price of the book\\\\n- Write the price to a file named browse_website.txt\",\\n \"criticism\":+ \"I need to ensure that I am using the correct URL and question to find the+ price of the book.\",\\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)\\\\\\'']\\'',+ <selenium.webdriver.chrome.webdriver.WebDriver (session=\"6f53929874014a52eb5d50c659bb304d\")>)''}]"],+ "model": "text-embedding-ada-002", "encoding_format": "base64"}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '1982'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/embeddings+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA1Sayw6zupat+/spllaXsxUggM3ucQt3MIFASKl0BCQhISFcbcClevej5N+qo+qk+ AZaIwR7zG2P6v/7x119/d2Vzq+a///XX3+/nNP/9f77XrsVc/P2vv/7jH3/99ddf//X7/V8jb215+ u16fn/o3/Hfz+bne1r//9Rf7P1f+/6B//fV3wZ1HLE2MRdm3Nr7AxzQICv1PMVJLllgYjfSJNwDU+ ca/ukAYvzGKR5F19yi4NXAEeR8Egca3EIx4XZZO4Q5uGK74JzeKvJ146iUMTwjf/KtfqHuTQa0cm+ lDq+KEmWdpNk+OGJhNPdSqb9PnlJZ4tmJLhY0Nt6zCggvA4E6WvsjWvcRTUs5dOdnPj7ZRx0R4hg+ I5gcFncpO04fdYPwWu5b/GgXFUzylk7QAKkb7h1nAWtZUyxrhydC4RaXdO5ymslnpTWI3xNPX+ND+ MMFwR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3/2LhU/RdTDJNbvchE4pZDl6meh4Yr2Rrvra/d43uoDaGNd6p3Q/fUTmeQya+ vXxVMDznsY+p8yrGtQGTAqRCE4mLoV9y3/7Dn/6EP85knG5vFP76b+HXT5QT5JxJ9s5WgxyHFmDT+ zfAF1PkcEcuK38mYr28f/PFTdpSUv/7uH3/8J39Eoqb88nNiknPm0V0VGVBw5ZEoH0/45oG7AnBc+ qBL3m4etn2wPod3nKTIOatYs986OIehvJdKKqE42aNrZn/7nxdkfx/3c8BnkXtcFWZ30KueyBhhm+ +11NlHeQgK1bn9pv//34jy6Dcpx+vBkytyaivGLPTzj39x2xBjb2aB4bJlQ59UKcuTvotPsEEvz7+ dyrgv//x11//+Tth0HbX2/t7MGC+rfM//+eowD+La/FPluX/Sfg/JxHwVNS3v//170MIf/dj1/bz+ /5271+0z/f2vvwRZ+HPe4O+5m4v3/7rxj+/z/vsf/w8AAP//AwD4jVCt5SAAAA==+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be49ae11e2dced1-SJC+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Thu, 27 Apr 2023 05:18:28 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:+ - '64'+ 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:+ - 73e42f26050de7075473636113591bef+ 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\": \"<filename>\", \"text\": \"<text>\"\n2.+ delete_file: Delete file, args: \"filename\": \"<filename>\"\n3. read_file:+ Read file, args: \"filename\": \"<filename>\"\n4. search_files: Search Files,+ args: \"directory\": \"<directory>\"\n5. write_to_file: Write to file, args:+ \"filename\": \"<filename>\", \"text\": \"<text>\"\n6. browse_website: Browse+ Website, args: \"url\": \"<url>\", \"question\": \"<what_you_want_to_find_on_website>\"\n7.+ delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n8. get_hyperlinks:+ Get text summary, args: \"url\": \"<url>\"\n9. get_text_summary: Get text summary,+ args: \"url\": \"<url>\", \"question\": \"<question>\"\n10. list_agents: List+ GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\":+ \"<key>\", \"message\": \"<message>\"\n12. start_agent: Start GPT Agent, args:+ \"name\": \"<name>\", \"task\": \"<short_task_desc>\", \"prompt\": \"<prompt>\"\n13.+ Task Complete (Shutdown): \"task_complete\", args: \"reason\": \"<reason>\"\n\nResources:\n1.+ Internet access for searches and information gathering.\n2. Long Term memory+ management.\n3. GPT-3.5 powered Agents for delegation of simple tasks.\n4. File+ output.\n\nPerformance Evaluation:\n1. Continuously review and analyze your+ actions to ensure you are performing to the best of your abilities.\n2. Constructively+ self-criticize your big-picture behavior constantly.\n3. Reflect on past decisions+ and strategies to refine your approach.\n4. Every command has a cost, so be+ smart and efficient. Aim to complete tasks in the least number of steps.\n5.+ Write all code to a file.\n\nYou should only respond in JSON format as described+ below \nResponse Format: \n{\n \"thoughts\": {\n \"text\": \"thought\",\n \"reasoning\":+ \"reasoning\",\n \"plan\": \"- short bulleted\\n- list that conveys\\n-+ long-term plan\",\n \"criticism\": \"constructive self-criticism\",\n \"speak\":+ \"thoughts summary to say to user\"\n },\n \"command\": {\n \"name\":+ \"command name\",\n \"args\": {\n \"arg name\": \"value\"\n }\n }\n}+ \nEnsure the response can be parsed by Python json.loads"}, {"role": "system",+ "content": "The current time and date is Tue Jan 01 00:00:00 2000"}, {"role":+ "system", "content": "This reminds you of these events from your past:\n[''Assistant+ Reply: {\\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 find the price of the book, and the browse_website command is the best+ option to achieve this.\",\\n \"plan\": \"- Use the browse_website command+ to visit http://books.toscrape.com/catalogue/meditations_33/index.html\\\\n-+ Find the price of the book\\\\n- Write the price to a file named browse_website.txt\",\\n \"criticism\":+ \"I need to ensure that I am using the correct URL and question to find the+ price of the book.\",\\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} \\nResult: 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)\\\\\\'']\\'',+ <selenium.webdriver.chrome.webdriver.WebDriver (session=\"6f53929874014a52eb5d50c659bb304d\")>)+ \\nHuman Feedback: '']\n\n"}, {"role": "user", "content": "Determine which+ next command to use, and respond using the format specified above:"}, {"role":+ "assistant", "content": "{\n \"thoughts\": {\n \"text\": \"I will+ use the 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 find the price of the book, and the browse_website command is the best+ option to achieve this.\",\n \"plan\": \"- Use the browse_website command+ to visit http://books.toscrape.com/catalogue/meditations_33/index.html\\n- Find+ the price of the book\\n- Write the price to a file named browse_website.txt\",\n \"criticism\":+ \"I need to ensure that I am using the correct URL and question to find the+ price of the book.\",\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)\\'']'',+ <selenium.webdriver.chrome.webdriver.WebDriver (session=\"6f53929874014a52eb5d50c659bb304d\")>)"},+ {"role": "user", "content": "Determine which next command to use, and respond+ using the format specified above:"}], "temperature": 0, "max_tokens": 2233}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '7471'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/chat/completions+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA7xTzW7bMAy+7ykEnpUgcZem8W0bsKEtemsPw1wEsszYWmzRE+kmQ5Cn2ZvsyQbZ+ SbumG9BTb5Iofj/Upx24AlKwlRHbtPVovqArrPKr4madvP/SXv/8+vCx/fyhu7v+xBPQQPl3tHLo+ GFtq2hrFkQcNNqARLCCdnl8ks3kyTxINDRVYQwplK6Oz8WwkXchpNDmbTEFDx6ZESHfQBmpaWQqt+ 0TOk0/lspuEJ/LGQTKcahMTUT3cX5+d7DbYiZ5Eh/baDBvkIHKhGSMEwOxbjJcokL+ijhV3mlVIq+ A6moKyvhDFJ1ODwUcCvxMINLtXF1rTpGJRWqTXCCS6HlytWoLDWN8YUSGgr9lTY4i4pW/SYnWsey+ UX2DNw0WKg+0YVxuMGcnOJatjDPQf/MHNEze+XIQcVuhEsNrFfBH5wKyavDVpFr1Ev8r3vHQhCyK+ 2jj2vtdWDh8iuONTdW1t/CBspO7edjA2OHHWcXN8HY/Y06DnLkQeI+pSmUZ17HzZU1kKAa30RJFn+ mAdu5RXy4jr2nergFs36jRMy8O/1Mb0H7BfhjRCDtGdaThyYUJ7mfigcxzRAvFTyDOf0u9z+016W+ ZXCDhRMT48VxG2P3+1cyG18sHq319g4uM7+HvYaV846r5fAfIAUWakGD8wVuIZ3s7/fv/gAAAP//+ AwC5hinnygQAAA==+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be49b389e94ced1-SJC+ Cache-Control:+ - no-cache, must-revalidate+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Thu, 27 Apr 2023 05:19: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:+ - user-adtx4fhfg1qsiyzdoaxciooj+ openai-processing-ms:+ - '21222'+ openai-version:+ - '2020-10-01'+ strict-transport-security:+ - max-age=15724800; includeSubDomains+ x-ratelimit-limit-requests:+ - '3500'+ x-ratelimit-remaining-requests:+ - '3499'+ x-ratelimit-reset-requests:+ - 17ms+ x-request-id:+ - dd3e3770c095157c99a11ad526d4ca9c+ status:+ code: 200+ message: OK+- request:+ body: '{"input": ["Assistant Reply: { \"thoughts\": { \"text\": \"I+ will use the write_to_file command to write the price of the book to a file+ named browse_website.txt.\", \"reasoning\": \"The task requires me to+ write the price of the book to a file, and the write_to_file command is the+ best option to achieve this.\", \"plan\": \"- Use the write_to_file+ command to write the price of the book to a file named browse_website.txt.\", \"criticism\":+ \"I need to ensure that I am using the correct filename and text to write the+ price of the book to the file.\", \"speak\": \"I will use the write_to_file+ command to write the price of the book to a file named browse_website.txt.\" }, \"command\":+ { \"name\": \"write_to_file\", \"args\": { \"filename\":+ \"browse_website.txt\", \"text\": \"The price of the book \\\"Meditations\\\"+ is \u00a325.89.\" } } } Result: Command write_to_file returned:+ File written to successfully. Human Feedback: "], "model": "text-embedding-ada-002",+ "encoding_format": "base64"}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '1110'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/embeddings+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA1SaXQ+6Spfl759PcXJumScCIlWcO95FwCoERZxMJoCKgIi8VAHV6e8+wX+nJ33j+ BZIIZe21f2vt+o9//fXX321WPfLx73/++vtdDuPf/2u9dk/H9O9//vrf//rrr7/++o/f5/+489Fk+ j/u9/BS/239flp/7Y/77n7/4/77y/2/656+/haghBHDuh80zuQ6gPiGVqtfQ8tpjrwTwxkyVJl7m+ gS0HHA5qrIyp9hwKVitvo4VTxBcEdvEzY35ax/LSFg2ZY1ut+MdWgHB67rZ475UvwAa+1MHN9RbE+ Xb4kG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hmss5fnh/PIdVKzzqF//B9z8+ ctBsivtIONxtFa75N9roj5Y1X/egQ8sSROobWMxGYXZTeJHo908eMUW3bIBpuBfJzTtf2JpnmPA3+ /9gXZ8Pjs3nkwfVjEMQ/wimbYDTpiqMCDh+W49cbnVPuyPJzl+BTnTl9K0Vaq6z++sfTBh8UuwWu+ +R21Nwctmz9k+6d/ow2GW8ASmxehnLgAca2AvSmUb+LPnyDWLTaY1nmVAkTOwvrtW/Vs1TM5aG3z+ x1tsSk2Bh8r3bSKR7O9gBl4gK1aS6tjY7QlY5M/lDPX4wf/mb4DFQJd+/Y56LzKyNR9w/+h5H90s+ xj5loUL64GX849HFMbIQHhUQoR1NW8aOojrA7d1mdM2bM6FUWAoltD77gVn9/DaN5jePowjtm36R+ 9d0Cnd3FpgfRurL54bIQ2Pd5h6SV50diFbHiv9qYnrfA9ZZdfBj+8J2lpOdq5QWi/P07FfCf//rr+ r//zO2HQtPfHez0YMD7m8d//fVTg3+k9/TfPi/+m4p+TCGRIi8ff//zXIYS/v33bfMf/O7b14zP8+ /c9f4nb757zB32M7pu//8cW/1t/7z3/9PwAAAP//AwBjM9wq5SAAAA==+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be49bdebeebced1-SJC+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Thu, 27 Apr 2023 05:19:08 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:+ - '86'+ 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:+ - 42e0557e070e90e99b138d49ebb07b3b+ status:+ code: 200+ message: OK+- request:+ body: '{"input": ["[{''role'': ''user'', ''content'': ''Determine which next command+ to use, and respond using the format specified above:''}, {''role'': ''assistant'',+ ''content'': ''{\\n \"thoughts\": {\\n \"text\": \"I will use the+ 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 find the price of the book, and the browse_website command is the best+ option to achieve this.\",\\n \"plan\": \"- Use the browse_website command+ to visit http://books.toscrape.com/catalogue/meditations_33/index.html\\\\n-+ Find the price of the book\\\\n- Write the price to a file named browse_website.txt\",\\n \"criticism\":+ \"I need to ensure that I am using the correct URL and question to find the+ price of the book.\",\\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)\\\\\\'']\\'',+ <selenium.webdriver.chrome.webdriver.WebDriver (session=\"6f53929874014a52eb5d50c659bb304d\")>)''},+ {''role'': ''user'', ''content'': ''Determine which next command to use, and+ respond using the format specified above:''}, {''role'': ''assistant'', ''content'':+ ''{\\n \"thoughts\": {\\n \"text\": \"I will use the write_to_file+ command to write 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, and the write_to_file+ command is the best option to achieve this.\",\\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 I am using the correct filename and text to write the+ price of the book to the 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.''}]"], "model":+ "text-embedding-ada-002", "encoding_format": "base64"}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '3189'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/embeddings+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA1SaWw+yzJat79ev+PLdulfkoNRk3SEgyqkKBRU7nR1RRECQUxVQnf7vO/qu9E7f+ mKBEcVLM8Ywx67/+8ddff3+SIr0Pf//rr7/feT/8/X++7z1uw+3vf/31H//466+//vqv3+v/OjOt+ kvTxyOvsd/rvw7x+pNPf//pL+J93/v9J3+/e0SMjyssw5Av9nFfBVMZEH7w2mQepX8FcE51O3k1F+ 32MFar83WGAUJW/rLSr/HB/Rpen6hbzQlA6PPcG+1od8qYx7JKQrjbi7zcflcr424To+GNFexivh+ l/4QA+6dE3Ona9v1pLJyxfZ3LcNxrSF5+SoAiIYfZBfxa8JP9z1AfS/f7BwJVkc3IwNkmmlOFSet+ Eta2VxPy4XPFtJ0z90N3yxXKB7PFMpXLbr60BVUX3c4lmxtd8SGOXq0qYH9me93bFBOpwYOVQ07E+ 2ApaJz+jnYZq3U+IeZdi3tdz8wF6NI/kvg+jZBDaT4wmV+vJTrpPyUxt8/z7PWKPN2TwHsYU1g/B+ Y+Zt2BjzSlz36DTmJR2NW2PMUySt4Hn1z8QS2OzWw+sUqWP3BLqeli7izWWi8KJdjKd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sUoZRjEtpkYPFDis+4r99P7PPDIJcxkv+ f+u/Ypcc8jgViFGGF2POg/IMK9VdMHPxDJB02hAL/erh+7KM2GnrUhAwmZmdx3JCTeN1Rr95o33Z+ 5gZ/y8EIjYx9rPCChOJh5bV/+DXt0QXxZ7TTofEhY+YWiPEnb/n7tyvgv//x11//+dthUH0e6fu7+ MWBIp+Gf/7NV4J+3x+2fgiD9k0l/diLQ/palf//r35sQ/m66T9UM/3f4lGnd//2vvxCgP/sN/h4++ w+39vz74x/f3/vsf/w8AAP//AwBCQNw65SAAAA==+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be49be3dc34ced1-SJC+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Thu, 27 Apr 2023 05:19:09 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:+ - '76'+ 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:+ - 006edc24ffa2e03bf3534ac502e0e6e7+ 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\": \"<filename>\", \"text\": \"<text>\"\n2.+ delete_file: Delete file, args: \"filename\": \"<filename>\"\n3. read_file:+ Read file, args: \"filename\": \"<filename>\"\n4. search_files: Search Files,+ args: \"directory\": \"<directory>\"\n5. write_to_file: Write to file, args:+ \"filename\": \"<filename>\", \"text\": \"<text>\"\n6. browse_website: Browse+ Website, args: \"url\": \"<url>\", \"question\": \"<what_you_want_to_find_on_website>\"\n7.+ delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n8. get_hyperlinks:+ Get text summary, args: \"url\": \"<url>\"\n9. get_text_summary: Get text summary,+ args: \"url\": \"<url>\", \"question\": \"<question>\"\n10. list_agents: List+ GPT Agents, args: () -> str\n11. message_agent: Message GPT Agent, args: \"key\":+ \"<key>\", \"message\": \"<message>\"\n12. start_agent: Start GPT Agent, args:+ \"name\": \"<name>\", \"task\": \"<short_task_desc>\", \"prompt\": \"<prompt>\"\n13.+ Task Complete (Shutdown): \"task_complete\", args: \"reason\": \"<reason>\"\n\nResources:\n1.+ Internet access for searches and information gathering.\n2. Long Term memory+ management.\n3. GPT-3.5 powered Agents for delegation of simple tasks.\n4. File+ output.\n\nPerformance Evaluation:\n1. Continuously review and analyze your+ actions to ensure you are performing to the best of your abilities.\n2. Constructively+ self-criticize your big-picture behavior constantly.\n3. Reflect on past decisions+ and strategies to refine your approach.\n4. Every command has a cost, so be+ smart and efficient. Aim to complete tasks in the least number of steps.\n5.+ Write all code to a file.\n\nYou should only respond in JSON format as described+ below \nResponse Format: \n{\n \"thoughts\": {\n \"text\": \"thought\",\n \"reasoning\":+ \"reasoning\",\n \"plan\": \"- short bulleted\\n- list that conveys\\n-+ long-term plan\",\n \"criticism\": \"constructive self-criticism\",\n \"speak\":+ \"thoughts summary to say to user\"\n },\n \"command\": {\n \"name\":+ \"command name\",\n \"args\": {\n \"arg name\": \"value\"\n }\n }\n}+ \nEnsure the response can be parsed by Python json.loads"}, {"role": "system",+ "content": "The current time and date is Tue Jan 01 00:00:00 2000"}, {"role":+ "system", "content": "This reminds you of these events from your past:\n[''Assistant+ Reply: {\\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 find the price of the book, and the browse_website command is the best+ option to achieve this.\",\\n \"plan\": \"- Use the browse_website command+ to visit http://books.toscrape.com/catalogue/meditations_33/index.html\\\\n-+ Find the price of the book\\\\n- Write the price to a file named browse_website.txt\",\\n \"criticism\":+ \"I need to ensure that I am using the correct URL and question to find the+ price of the book.\",\\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} \\nResult: 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)\\\\\\'']\\'',+ <selenium.webdriver.chrome.webdriver.WebDriver (session=\"6f53929874014a52eb5d50c659bb304d\")>)+ \\nHuman Feedback: '', ''Assistant Reply: {\\n \"thoughts\": {\\n \"text\":+ \"I will use the write_to_file command to 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, and the write_to_file command is the+ best option to achieve this.\",\\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 I am using the correct filename and text to write the+ price of the book to the 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} \\nResult: Command write_to_file returned:+ File written to successfully. \\nHuman Feedback: '']\n\n"}, {"role": "user",+ "content": "Determine which next command to use, and respond using the format+ specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":+ \"I will use the 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 find the price of the book, and the browse_website command is the best+ option to achieve this.\",\n \"plan\": \"- Use the browse_website command+ to visit http://books.toscrape.com/catalogue/meditations_33/index.html\\n- Find+ the price of the book\\n- Write the price to a file named browse_website.txt\",\n \"criticism\":+ \"I need to ensure that I am using the correct URL and question to find the+ price of the book.\",\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)\\'']'',+ <selenium.webdriver.chrome.webdriver.WebDriver (session=\"6f53929874014a52eb5d50c659bb304d\")>)"},+ {"role": "user", "content": "Determine which next command to use, and respond+ using the format specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\":+ {\n \"text\": \"I will use the write_to_file command to write 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, and the write_to_file+ command is the best option to achieve this.\",\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 I am using the correct filename and text to write the+ price of the book to the 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": 1711}'+ headers:+ Accept:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate+ Connection:+ - keep-alive+ Content-Length:+ - '9732'+ Content-Type:+ - application/json+ method: POST+ uri: https://api.openai.com/v1/chat/completions+ response:+ body:+ string: !!binary |+ H4sIAAAAAAAAA5RSTY/TMBC98ytGc3arNkvb3Ry5wAqOLItEUOU408TU8UT2pF1U5b+jNOkHRQvi+ 6nnzPub5gLbAFE2lxdSNm6we+ONqVX/w28X+af61XX3RzO/l0/L5+d0OFXL+g4yMG1PDdeNILHtU+ aAJpoQLT+fI+WayS1WKusOaCHKZYNjK5my4m0oacJ7O72RwVtlGXhOkBm8B1I2vhLfmIaZIs7xVe+ yM+D+SJRKCzaXbBvk1mn0FRsDUVMvx2wpngiDuwIU9Qx2ijaS2+TvZDvIxwyDwCQoVTclpXEDFMY+ H8cBvUj/mOEj7K1z0EYCqQhEx+16NEhguK61L0AYzm8n1DRDdU0ZSEf21pcD7+cRBpWOkBP5M0MB+ sTWGYty0zv1UcBR4VdrG4zCnKMBNf7TeDV3t3BppnPaDhwk8/SvW34hMsGKNjfXpUp5oXIpt6Im1+ wCPoGprAO1tYX4KGnXa2gOEasOHQS/ST11RiQ3r7f13cmB7YOnVqfUT+UbrXNQ1CvzHf+NGhvP0v+ 1wVf2m2CNQS8Gfphvqr6umDYBytCx9p65MY6gjzwPtJ6T3m0QlN5kXOOY5YxUuY77BRurLexWg8G+ MMUo3KBC6wt6wXTWfe/e/AIAAP//AwAYXmcn7wMAAA==+ headers:+ CF-Cache-Status:+ - DYNAMIC+ CF-RAY:+ - 7be49bed8f47ced1-SJC+ Cache-Control:+ - no-cache, must-revalidate+ Connection:+ - keep-alive+ Content-Encoding:+ - gzip+ Content-Type:+ - application/json+ Date:+ - Thu, 27 Apr 2023 05:19: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:+ - user-adtx4fhfg1qsiyzdoaxciooj+ openai-processing-ms:+ - '11504'+ openai-version:+ - '2020-10-01'+ strict-transport-security:+ - max-age=15724800; includeSubDomains+ x-ratelimit-limit-requests:+ - '3500'+ x-ratelimit-remaining-requests:+ - '3499'+ x-ratelimit-reset-requests:+ - 17ms+ x-request-id:+ - cd010e2aab478b33c13c4cd5be5292c8+ status:+ code: 200+ message: OK+version: 1diff --git a/tests/integration/goal_oriented/test_browse_website.py b/tests/integration/goal_oriented/test_browse_website.pynew file mode 100644index 0000000000..86dc39eaa6--- /dev/null+++ b/tests/integration/goal_oriented/test_browse_website.py@@ -0,0 +1,27 @@+import os++import pytest++from autogpt.commands.file_operations import read_file+from autogpt.config import Config+from tests.integration.agent_factory import create_browser_agent+from tests.integration.agent_utils import run_interaction_loop+from tests.utils import get_workspace_file_path, requires_api_key++CFG = Config()+++@requires_api_key("OPENAI_API_KEY")+def test_browse_website(workspace) -> None:+ CFG.workspace_path = workspace.root+ CFG.file_logger_path = os.path.join(workspace.root, "file_logger.txt")++ file_name = get_workspace_file_path(workspace, "browse_website.txt")+ agent = create_browser_agent(workspace)+ try:+ run_interaction_loop(agent, 40)+ # catch system exit exceptions+ except SystemExit: # the agent returns an exception when it shuts down+ content = read_file(file_name)+ assert "£25.89" in content, f"Expected £25.89, got {content}"diff --git a/tests/integration/goal_oriented/test_write_file.py b/tests/integration/goal_oriented/test_write_file.pyindex 739b0f20a1..a2f2fa5a12 100644--- a/tests/integration/goal_oriented/test_write_file.py+++ b/tests/integration/goal_oriented/test_write_file.py@@ -1,14 +1,11 @@-import concurrentimport os-import unittestimport pytest-from autogpt.agent import Agent-from autogpt.commands.command import CommandRegistry-from autogpt.commands.file_operations import delete_file, read_file-from autogpt.config import AIConfig, Config-from autogpt.memory import get_memory+from autogpt.commands.file_operations import read_file+from autogpt.config import Config+from tests.integration.agent_factory import create_writer_agent+from tests.integration.agent_utils import run_interaction_loopfrom tests.utils import requires_api_keyCFG = Config()@@ -23,59 +20,8 @@ def test_write_file(workspace) -> None:file_name = str(workspace.get_path("hello_world.txt"))agent = create_writer_agent(workspace)try:- with concurrent.futures.ThreadPoolExecutor() as executor:- future = executor.submit(agent.start_interaction_loop)- try:- result = future.result(timeout=45)- except concurrent.futures.TimeoutError:- assert False, "The process took longer than 45 seconds to complete."+ run_interaction_loop(agent, 40)# catch system exit exceptionsexcept SystemExit: # the agent returns an exception when it shuts downcontent = read_file(file_name)assert content == "Hello World", f"Expected 'Hello World', got {content}"---def create_writer_agent(workspace):- command_registry = CommandRegistry()- command_registry.import_commands("autogpt.commands.file_operations")- command_registry.import_commands("autogpt.app")-- ai_config = AIConfig(- ai_name="write_to_file-GPT",- ai_role="an AI designed to use the write_to_file command to write 'Hello World' into a file named \"hello_world.txt\" and then use the task_complete command to complete the task.",- ai_goals=[- "Use the write_to_file command to write 'Hello World' into a file named \"hello_world.txt\".",- "Use the task_complete command to complete the task.",- "Do not use any other commands.",- ],- )- ai_config.command_registry = command_registry- CFG.set_continuous_mode(True)- CFG.set_memory_backend("no_memory")- CFG.set_temperature(0)- memory = get_memory(CFG, init=True)- triggering_prompt = (- "Determine which next command to use, and respond using the"- " format specified above:"- )- system_prompt = ai_config.construct_full_prompt()-- agent = Agent(- ai_name="",- memory=memory,- full_message_history=[],- command_registry=command_registry,- config=ai_config,- next_action_count=0,- system_prompt=system_prompt,- triggering_prompt=triggering_prompt,- workspace_directory=workspace.root,- )-- os.environ["TIKTOKEN_CACHE_DIR"] = ""-- return agent---if __name__ == "__main__":- unittest.main()diff --git a/tests/utils.py b/tests/utils.pyindex e0bc74603f..2a0d25d818 100644--- a/tests/utils.py+++ b/tests/utils.py@@ -40,3 +40,7 @@ def skip_in_ci(test_function):os.environ.get("CI") == "true",reason="This test doesn't work on GitHub Actions.",)(test_function)+++def get_workspace_file_path(workspace, file_name):+ return str(workspace.get_path(file_name))