Skip to content

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.

Text file loaders (#3031)

sherif-med31525dfef7d7
diff --git a/autogpt/commands/file_operations.py b/autogpt/commands/file_operations.py
index 528f8d669e..0fe8114db5 100644
--- a/autogpt/commands/file_operations.py
+++ b/autogpt/commands/file_operations.py
@@ -12,6 +12,7 @@ from colorama import Back, Fore
from requests.adapters import HTTPAdapter, Retry
from autogpt.commands.command import command
+from autogpt.commands.file_operations_utils import read_textual_file
from autogpt.config import Config
from autogpt.logs import logger
from autogpt.spinner import Spinner
@@ -143,7 +144,7 @@ def split_file(
start += max_length - overlap
-@command("read_file", "Read file", '"filename": "<filename>"')
+@command("read_file", "Read a file", '"filename": "<filename>"')
def read_file(filename: str) -> str:
"""Read a file and return the contents
@@ -154,12 +155,10 @@ def read_file(filename: str) -> str:
str: The contents of the file
"""
try:
- charset_match = charset_normalizer.from_path(filename).best()
- encoding = charset_match.encoding
- logger.debug(f"Read file '{filename}' with encoding '{encoding}'")
- return str(charset_match)
- except Exception as err:
- return f"Error: {err}"
+ content = read_textual_file(filename, logger)
+ return content
+ except Exception as e:
+ return f"Error: {str(e)}"
def ingest_file(
diff --git a/autogpt/commands/file_operations_utils.py b/autogpt/commands/file_operations_utils.py
new file mode 100644
index 0000000000..cf29dc364e
--- /dev/null
+++ b/autogpt/commands/file_operations_utils.py
@@ -0,0 +1,159 @@
+import json
+import os
+
+import charset_normalizer
+import docx
+import markdown
+import PyPDF2
+import yaml
+from bs4 import BeautifulSoup
+from pylatexenc.latex2text import LatexNodes2Text
+
+from autogpt import logs
+
+
+class ParserStrategy:
+ def read(self, file_path: str):
+ raise NotImplementedError
+
+
+# Basic text file reading
+class TXTParser(ParserStrategy):
+ def read(self, file_path):
+ charset_match = charset_normalizer.from_path(file_path).best()
+ return str(charset_match)
+
+
+# Reading text from binary file using pdf parser
+class PDFParser(ParserStrategy):
+ def read(self, file_path):
+ parser = PyPDF2.PdfReader(file_path)
+ text = ""
+ for page_idx in range(len(parser.pages)):
+ text += parser.pages[page_idx].extract_text()
+ return text
+
+
+# Reading text from binary file using docs parser
+class DOCXParser(ParserStrategy):
+ def read(self, file_path):
+ doc_file = docx.Document(file_path)
+ text = ""
+ for para in doc_file.paragraphs:
+ text += para.text
+ return text
+
+
+# Reading as dictionary and returning string format
+class JSONParser(ParserStrategy):
+ def read(self, file_path):
+ with open(file_path, "r") as f:
+ data = json.load(f)
+ text = str(data)
+ return text
+
+
+class XMLParser(ParserStrategy):
+ def read(self, file_path):
+ with open(file_path, "r") as f:
+ soup = BeautifulSoup(f, "xml")
+ text = soup.get_text()
+ return text
+
+
+# Reading as dictionary and returning string format
+class YAMLParser(ParserStrategy):
+ def read(self, file_path):
+ with open(file_path, "r") as f:
+ data = yaml.load(f, Loader=yaml.FullLoader)
+ text = str(data)
+ return text
+
+
+class HTMLParser(ParserStrategy):
+ def read(self, file_path):
+ with open(file_path, "r") as f:
+ soup = BeautifulSoup(f, "html.parser")
+ text = soup.get_text()
+ return text
+
+
+class MarkdownParser(ParserStrategy):
+ def read(self, file_path):
+ with open(file_path, "r") as f:
+ html = markdown.markdown(f.read())
+ text = "".join(BeautifulSoup(html, "html.parser").findAll(string=True))
+ return text
+
+
+class LaTeXParser(ParserStrategy):
+ def read(self, file_path):
+ with open(file_path, "r") as f:
+ latex = f.read()
+ text = LatexNodes2Text().latex_to_text(latex)
+ return text
+
+
+class FileContext:
+ def __init__(self, parser: ParserStrategy, logger: logs.Logger):
+ self.parser = parser
+ self.logger = logger
+
+ def set_parser(self, parser: ParserStrategy):
+ self.logger.debug(f"Setting Context Parser to {parser}")
+ self.parser = parser
+
+ def read_file(self, file_path):
+ self.logger.debug(f"Reading file {file_path} with parser {self.parser}")
+ return self.parser.read(file_path)
+
+
+extension_to_parser = {
+ ".txt": TXTParser(),
+ ".csv": TXTParser(),
+ ".pdf": PDFParser(),
+ ".docx": DOCXParser(),
+ ".json": JSONParser(),
+ ".xml": XMLParser(),
+ ".yaml": YAMLParser(),
+ ".yml": YAMLParser(),
+ ".html": HTMLParser(),
+ ".htm": HTMLParser(),
+ ".xhtml": HTMLParser(),
+ ".md": MarkdownParser(),
+ ".markdown": MarkdownParser(),
+ ".tex": LaTeXParser(),
+}
+
+
+def is_file_binary_fn(file_path: str):
+ """Given a file path load all its content and checks if the null bytes is present
+
+ Args:
+ file_path (_type_): _description_
+
+ Returns:
+ bool: is_binary
+ """
+ with open(file_path, "rb") as f:
+ file_data = f.read()
+ if b"\x00" in file_data:
+ return True
+ return False
+
+
+def read_textual_file(file_path: str, logger: logs.Logger):
+ if not os.path.isfile(file_path):
+ raise FileNotFoundError(f"{file_path} not found!")
+ is_binary = is_file_binary_fn(file_path)
+ file_extension = os.path.splitext(file_path)[1].lower()
+ parser = extension_to_parser.get(file_extension)
+ if not parser:
+ if is_binary:
+ raise ValueError(
+ "Unsupported binary file format: {}".format(file_extension)
+ )
+ # fallback to txt file parser (to support script and code files loading)
+ parser = TXTParser()
+ file_context = FileContext(parser, logger)
+ return file_context.read_file(file_path)
diff --git a/requirements.txt b/requirements.txt
index 3c997b57f8..31cc2d0f91 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -5,6 +5,10 @@ openai==0.27.2
playsound==1.2.2
python-dotenv==1.0.0
pyyaml==6.0
+PyPDF2
+python-docx
+markdown
+pylatexenc
readability-lxml==0.8.1
requests
tiktoken==0.3.3
diff --git a/tests/integration/challenges/basic_abilities/cassettes/test_browse_website/test_browse_website.yaml b/tests/integration/challenges/basic_abilities/cassettes/test_browse_website/test_browse_website.yaml
index f76703b679..2f811593ca 100644
--- a/tests/integration/challenges/basic_abilities/cassettes/test_browse_website/test_browse_website.yaml
+++ b/tests/integration/challenges/basic_abilities/cassettes/test_browse_website/test_browse_website.yaml
@@ -760,4 +760,1333 @@ interactions:
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 below 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. list_files: List Files in
+ Directory, args: \"directory\": \"<directory>\"\n4. read_file: Read text from
+ file, args: \"filename\": \"<filename>\"\n5. read_raw_file: Read file, args:
+ \"filename\": \"<filename>\"\n6. write_to_file: Write to file, args: \"filename\":
+ \"<filename>\", \"text\": \"<text>\"\n7. browse_website: Browse Website, args:
+ \"url\": \"<url>\", \"question\": \"<what_you_want_to_find_on_website>\"\n8.
+ delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n9. get_hyperlinks:
+ Get text summary, args: \"url\": \"<url>\"\n10. get_text_summary: Get text summary,
+ args: \"url\": \"<url>\", \"question\": \"<question>\"\n11. list_agents: List
+ GPT Agents, args: () -> str\n12. message_agent: Message GPT Agent, args: \"key\":
+ \"<key>\", \"message\": \"<message>\"\n13. start_agent: Start GPT Agent, args:
+ \"name\": \"<name>\", \"task\": \"<short_task_desc>\", \"prompt\": \"<prompt>\"\n14.
+ task_complete: Task Complete (Shutdown), 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 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:
+ - '3843'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA6RTWW/bMAx+368g+Oxcc0+/DMOAohk2DOhWFMM8BIrMxFos0ZXotkCQ/z7IR490
+ xa5XUvwukVs0BWaoSyXa1tXoeP75402wh9Oz91fl/BNxffrOfL04P7+4OXuLCfLyB2npJ8aabV2R
+ GHaYoPakhArMZkcnB0dpmk5PE7RcUIUZrmsZpePDkTR+yaNpOp1hgk1Qa8Jsi7VnW8tCeEMuYHZy
+ dJDgA/Z9/XV6nKCwqOq+NJtNZ7sEdclGU8Ds2xYthQHXc0WYoQrBBFFOokp2Qi462OYOACBHKblZ
+ lxJyzKAv9g26k1jMcQ63pqqgCQRSEiw93wZa3NIyGCHQbK1yBQjDjQlGoBSps8lkybwJY+Ggvaop
+ pjXRSlTF64YmlgojKvoLizSdGFfQ3bgUW0GEWpmIVxLU3mgCXnW8zJtxjsljkZ5UYGfculP6pSQQ
+ FTbg6boxngJYehCmYND8axLVUcCXl02a0EmhIMB11A8r9iBlbKjwTF9dKddJG8HlH+YX3/TNPHcj
+ OHsxjbZ95SPKQ18YFKxMReCUpWKPbix30o4NaqLqRb9uT8Tc14ZXe9a0N2K0CXZYEkfUDpILjY9j
+ SmAOykITjFu3MJq9Jy1wefGh/YPrhkIbovBffHqoSW3+aTUfRfv7Resod8lwKT3as0OJMXdqntLv
+ qVZ+vX9kXaPxVTf+X4fzhK0DHtLt0K/if/T7+8zum8Fua7l3nrsd7hJcGWdCuehODTMMwjUm2FJj
+ Nt193736CQAA//8DACZ8z49JBQAA
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca91e8ac9064698-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 01:42:07 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:
+ - '17407'
+ 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:
+ - 6a4242e99f4553aa4f1643eba393a92e
+ 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 below 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. list_files: List Files in
+ Directory, args: \"directory\": \"<directory>\"\n4. read_file: Read text from
+ file, args: \"filename\": \"<filename>\"\n5. read_raw_file: Read file, args:
+ \"filename\": \"<filename>\"\n6. write_to_file: Write to file, args: \"filename\":
+ \"<filename>\", \"text\": \"<text>\"\n7. browse_website: Browse Website, args:
+ \"url\": \"<url>\", \"question\": \"<what_you_want_to_find_on_website>\"\n8.
+ delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n9. get_hyperlinks:
+ Get text summary, args: \"url\": \"<url>\"\n10. get_text_summary: Get text summary,
+ args: \"url\": \"<url>\", \"question\": \"<question>\"\n11. list_agents: List
+ GPT Agents, args: () -> str\n12. message_agent: Message GPT Agent, args: \"key\":
+ \"<key>\", \"message\": \"<message>\"\n13. start_agent: Start GPT Agent, args:
+ \"name\": \"<name>\", \"task\": \"<short_task_desc>\", \"prompt\": \"<prompt>\"\n14.
+ task_complete: Task Complete (Shutdown), 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 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 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 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, 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:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '5726'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA7xTwW7bMAy97ysInp0gids09X3AAmzFsHWneTAUmbG12KIr0UiKIF+zP9mXDbKd
+ pMk6YJftJIiP7/GREvdockxQl0p03VSju+Xnh4flu2fVal3NP759mtx84u3D++LpZlFhhLz6TloG
+ xlhz3VQkhi1GqB0poRyT6XxxM4/jOL6LsOacKkywaGQUj29H0roVjybxZIoRtl4VhMkeG8d1I5nw
+ hqzHZDpb3Ed4Fj8Bs1kcobCo6px7O50dItQlG00ek697rMkfhR1XhAkq740XZSXYZCtkQwv71AIA
+ pCglt0UpPsUEhuAA0E5CMMUlbE1VQesJpCTYOiOUCWdrUxFormtlcxDugS6lcUYT8Lq7rJg3AVbQ
+ EayqKYeV462nbEsrb4TGspNxitHL+o6UZ2ts0Zt4LAlE+Q04emqNIw81/XXRMTz+0bjxPYG8ADdh
+ 5LBmB1IGQPnNta+mUra3NIIv/3YkaWrPNYKXbPgXFzVOsWPWlWHtjBhtfH18TUvUEcn61gWaEliC
+ qju3xhadkGbnSAsYu2ZXq24uwh3Uee6KB+YpYjysKNCHZQBjL5RyEw52z9cT9Q2pzX/+an39Q3Rc
+ g0H7ty0IEr21Cy9XHShXXC9QD4Tcs8QrL/xS53rvHl9tL01T/EC5ke5NfLiG0f/8MbsdL+5PrXXt
+ DV2m9oCHCNfGGl9m/WJhgl64wQiNzWmHyeTw7fDmFwAAAP//AwCokLGBEwUAAA==
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca91f359ed74698-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 01:42:34 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:
+ - '17203'
+ 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
+ x-request-id:
+ - 84c51f54f3ea6c17ef641028a950b098
+ 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 below 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. list_files: List Files in
+ Directory, args: \"directory\": \"<directory>\"\n4. read_file: Read text from
+ file, args: \"filename\": \"<filename>\"\n5. read_raw_file: Read file, args:
+ \"filename\": \"<filename>\"\n6. write_to_file: Write to file, args: \"filename\":
+ \"<filename>\", \"text\": \"<text>\"\n7. browse_website: Browse Website, args:
+ \"url\": \"<url>\", \"question\": \"<what_you_want_to_find_on_website>\"\n8.
+ delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n9. get_hyperlinks:
+ Get text summary, args: \"url\": \"<url>\"\n10. get_text_summary: Get text summary,
+ args: \"url\": \"<url>\", \"question\": \"<question>\"\n11. list_agents: List
+ GPT Agents, args: () -> str\n12. message_agent: Message GPT Agent, args: \"key\":
+ \"<key>\", \"message\": \"<message>\"\n13. start_agent: Start GPT Agent, args:
+ \"name\": \"<name>\", \"task\": \"<short_task_desc>\", \"prompt\": \"<prompt>\"\n14.
+ task_complete: Task Complete (Shutdown), 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 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 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, 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 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. 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 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:
+ - '7014'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA6SSTY/TQAyG7/wKy+ekapWmQbmxEkKVFi4sJ4Kq6cTNDE1mwtiBRVX+O0qTfhCW
+ A+Jqv378+uOEtsQctVGim7aOs+3HD8ZKpxN5fGi3b8vs3eN7eZM9bMJ6hRH6/VfSMlUstG/amsR6
+ hxHqQEqoxHy1eb3eJEmSZhE2vqQac6xaiZNFGksX9j5eJssB1rGqCPMTtsE3rezEH8kx5qt0s4zw
+ Br8l1mmE4kXVt1C2TPsItfFWE2P++YQN8QUcfE2Yo2K2LMrJYNM7ITeMcCocAECBYnxXGeECc5iC
+ U4KeZQgWuIUftq6hYwIxBKL4uJsMEmjfNMqVIB6usYtqUWB0jwyk2DvrqpH7NMkg0LfOBmJo6GUO
+ PP21r+WzbE8s4NthY3DwAcQMiRc8tLVyY/sYPv3zRDOYDlasttxcFuWIzoXkuAtDmRLYglHf6coq
+ rzDgTmtiPnR1/RPOLQe9GAoEKhA4DxSCDzwfgltSx/8/zojso8svTPI/XsGphsZuv+FnplSo5l90
+ f/bZzY1i2BO5u73cr+Pq7uxwMlq4HvsID9ZZNrsRizmy+BYjtK6kZ8yX/Zf+1S8AAAD//wMAuHh6
+ B9sDAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca91fb59c034698-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 01:42:48 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:
+ - '10952'
+ 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:
+ - '86470'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.352s
+ x-request-id:
+ - 0ef8ce2546c5b3d3cc369a42739b0303
+ 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 below 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. list_files: List Files in
+ Directory, args: \"directory\": \"<directory>\"\n4. read_file: Read a file,
+ args: \"filename\": \"<filename>\"\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: Task Complete (Shutdown), 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 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:
+ - '3769'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA6RTWW8TMRB+51eM5nlztNsj2hdeUEVBCAkClWBR5DiTXZO1Z2vPNkVR/jvyHj3S
+ ViB4nfF8l2d2aFaYoS6VaFtXo/PL+cer2c27D81b/ZVuTPrmYv7Zfnpfnl5ffMMEefmTtPQTY822
+ rkgMO0xQe1JCK8yOzmYnZ+n58elxgpZXVGGGRS2jdHw6ksYveTRNp0eYYBNUQZjtsPZsa1kIb8gF
+ zGYnZwneY9/Vj9NZgsKiqrvS0XR2sk9Ql2w0Bcy+79BSGHA9V4QZqhBMEOUkqmQn5KKDXe4AAHKU
+ kpuilJBjBn2xb9CtxGKOl7A1VQVNIJCSYOl5G2ixpWUwQqDZWuVWIAw3JhiBUqTOJpMl8yaMhYP2
+ qqaY1kQrURUXDU0srYyo6C8s0nRi3Ipux6XYCiLU2kS8kqD2RhPwuuNl3oxzTB6K9KQCO+OKTum8
+ JBAVNuDpujGeAli6F6Zg0Pw8ieooYP6ySRM6KRQEuI76Yc0epIwNFZ7oqyvlOmkj+PKX+cU3fTPP
+ 3QguXkyjbV/5iHLfFwYFa1MROGVpdUA3lltpxwY1UfWiX7dHYu5qw6sDa9obMdoEOyyJI2oHyYXG
+ xzElcAnKgtK68Uqo+tWGblzxvJ32W7YR1hUQg+C2pdl70tJ6Osw31KQ2/7SlD1L+8851lPtkOJoe
+ 7cnNxMQ7NY/pD1QrXxzeW9dofNWN/9cNPWLrgK8bCvFlh34Vv6Zf5Sd2Xw92W8u989ztcZ/g2jgT
+ ykV3dZhhEK4xwZYas+n+x/7VbwAAAP//AwDGzdwhVAUAAA==
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca97ecb9fe4aa52-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 02:47:51 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:
+ - '18748'
+ 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:
+ - 3d788f38f42c530a90c82003462a6088
+ 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 below 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. list_files: List Files in
+ Directory, args: \"directory\": \"<directory>\"\n4. read_file: Read a file,
+ args: \"filename\": \"<filename>\"\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: Task Complete (Shutdown), 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 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 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 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, 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:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '5663'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA7xTS47TQBDdc4pWrR0r/8n4BlkgAcqwACOr067YTeyunu4KCYp8Gm7CyVDbTjIx
+ g8QGll2fV+9VvzqDziEBVUpWta1GD+vNu/H3p0/Wfis+KLKz+W5ZT8bmef9+9hEioO1XVNx3xIpq
+ WyFrMhCBcigZc0gmy9V8OXuYrqYR1JRjBQkUlkezeDHig9vSaDwbTyCCg5cFQnIG66i2nDHt0XhI
+ JtOHaQQ38GtiOplFwMSyutXOV4smAlWSVugh+XyGGv0F2FGFkID0XnuWhgNNMowmSDinRgghUuCS
+ DkXJPoVE9ME+gScOwRTW4qirShw8Ci5RHJ1mzJiyna5QKKpraXLB1CXaEuu0QkG79rEl2oe0FG2D
+ kTXmYuvo6DE74tZrxphPHKcQvZzvUHoy2hQdiU2JgqXfC4fPB+3Qixr/emgsNn8krn3XgJ4F2bBy
+ sSMnuAwJ6fdDXraSpqM0Ek//diVpam4zApes98XdjGvsUjUgrJxmrbSvL79pENtGNP7gQptksRay
+ btlqU7RAipxDxT1vprtgu9PBGG9R7v+zYbr5TXQxc4/9m5cDREftjstAgXTF8Ay6RKi9QbzyTy9x
+ htezeVVemqbwFnPNMjjOh2dw4s8f00W8erxKa+X1KlPTQBPBThvty6w7D0jAM1mIQJscT5CMmy/N
+ m18AAAD//wMAPgHgstkEAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca97f864bbaaa52-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 02:48: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:
+ - significant-gravitas
+ openai-processing-ms:
+ - '16649'
+ 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:
+ - '86476'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.348s
+ x-request-id:
+ - 4d1406ff152a336596f376c293ea4356
+ 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 below 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. list_files: List Files in
+ Directory, args: \"directory\": \"<directory>\"\n4. read_file: Read a file,
+ args: \"filename\": \"<filename>\"\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: Task Complete (Shutdown), 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 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\":
+ \"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, 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 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. 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 price 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:
+ - '6893'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA6SST4/aQAzF7/0Uls8BQVNYlFv/qV21anuAU1OhYeIkUyYz6dgRrFC+ezUQFkp3
+ D1Wvz/abn5/ngKbADHWtRDetHd3dL799+rJil3743NWrj++rt/bN69LXX989KEzQb36SlmFirH3T
+ WhLjHSaoAymhArPpfPFqnt6lk5cJNr4gixlWrYzS8WwkXdj40SSdTDHBjlVFmB2wDb5pZS1+S44x
+ m87SNMGL+VVhlqB4UfYizReLPkFde6OJMft+wIb4bBy8JcxQMRsW5SRieifk4gqH3AEA5Ci176pa
+ OMcMBnEo0F6imOM97Iy10DGB1ASieLseAAm0bxrlChAPj9q5a5xjcm0ZSLF3xlUn3+XQBoF+dSYQ
+ Q0NP+8Dy2XcNH9s2xAK+jYlB6QNIHQtPMLRWudPzI1j980Y3ZjoYMdpwcw7KER0HyXEX4piSx9mI
+ ejYsgDutibnsrH24ZeSW1Pb/sz9Z9sn51EP7X5d2qqHTa3/Y30CpUN1+kuur3pzUl1AaVxhXHYna
+ YDRF8Xgr77cQuXcxPleBkbiCgtJYgkhTwCb4HdN6Rxs2QmPZC9SKYUPkng/xQtYPu+euxz7B0jjD
+ 9fpEihmy+BYTNK6gPWaT/kf/4jcAAAD//wMAIpbLTA0EAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca980030d3daa52-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 02:48:34 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:
+ - '12093'
+ 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:
+ - '86473'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.351s
+ x-request-id:
+ - 81d7a2ac6b212febaeab4f26aa26f84a
+ 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 below 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. list_files: List Files in
+ Directory, args: \"directory\": \"<directory>\"\n4. read_file: Read a file,
+ args: \"filename\": \"<filename>\"\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: Task Complete (Shutdown), 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 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 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 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: Error: Service /home/ntindle/.wdm/drivers/edgedriver/linux64/113.0.1774.50/msedgedriver
+ unexpectedly exited. Status code was: 127"}, {"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:
+ - '5322'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA5SUS2/bMAzH7/sUBM9O0jSPFr4MPRRDsGHYgBY9zIUhy4ytRQ9XopsUQb77IDtp
+ unTrupNh8fX/UaS2qEpMUdaCpWn04GJxe/ddu3b9+GX6aaX52/WsuP76cGGuruafMUFX/CTJ+4ih
+ dKbRxMpZTFB6EkwlpuP55XQ+Hc8u5wkaV5LGFKuGB5PhbMCtL9zgbHI2xgTbICrCdIuNd6bhnN2K
+ bMB0PL6cJXhM/mw4n54nyI6FPvpOzy92CcraKUkB0x9bNBQOib3ThCmKEFRgYTnKdJbJRoRtZgEA
+ MuTatVXNIcMU9od7A204HmZ4UxMU3q0D5WsqgmIC6YwRtoSlUJrKISxgrbQG9k/QBmUr4JqgIs5j
+ ljy0xgj/9BzFDpYqfmuCxitJ4JbdT+Hcaphh8lKHJxGcVbZ6p5gEgoMFWKKuUJQkoFTLJXmy/E4N
+ cPOWfiksFARtoBd5aMPgLAjYyzrlaLSwPcIAbgP9s0OPKijuvA6cHeNfNWeZHcCdj45HOzsQsFSa
+ wApD5UnnhrzhLuygh0VY5fvZo5dins8OXidw0itWUgXTEx7bTza0PoYJhgUIA0LK1gsm/dSxHGbl
+ FU5Hu45pbQWxEa4zSec9Se6YTjscGhKr/5uSbmrbd9zGm/Pai9glh53ax71aqXgHvb7TUickwlen
+ C9kbWq/7BDVzk45GUUAYsgvSi4bimzSSgoV2VUsjQ6ViER+RkE8mI2VL2gxrNvq3an3ih5ZC9Oyz
+ 38XrUuHPwB8PwB30nj2zO9wluFRWhTrvdxZTDOwaTLArjenZ7n734RcAAAD//wMAvH/zPXYFAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca9e89b8ab13aa6-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 04:00:06 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:
+ - '19886'
+ 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:
+ - '86473'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.351s
+ x-request-id:
+ - 3276bb0cfa73c4b663d9cbc978df06d8
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "\"\"\"Meditations
+ | Books to Scrape - Sandbox Books to Scrape We love being scraped! Home Books
+ Philosophy Meditations Meditations \u00c2\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)\u00c2\u00a325.89 Price (incl. tax)\u00c2\u00a325.89
+ Tax\u00c2\u00a30.00 Availability In stock (1 available) Number of reviews 0
+ Products you recently viewed The Nicomachean Ethics \u00c2\u00a336.34 In stock
+ Add to basket Run, Spot, Run: The ... \u00c2\u00a320.02 In stock Add to basket
+ Critique of Pure Reason \u00c2\u00a320.75 In stock Add to basket At The Existentialist
+ Caf\u00c3\u00a9: ... \u00c2\u00a329.93 In stock Add to basket Kierkegaard: A
+ Christian Missionary ... \u00c2\u00a347.13 In stock Add to basket Proofs of
+ God: Classical ... \u00c2\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": 0}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '2513'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA0SQz0rDQBjE7z7FMudNSPonrXsTvYh4EUWslbLdfG3WJvvF7BcQSi6+im+iLyYB
+ tddh5jfDHOFLGLjKimvaOllcPzy+VSSHfEWr+mYf+4urVV/cXT5FaaHB21dy8ptIHTdtTeI5QMN1
+ ZIVKmLxYzopZXuQTjYZLqmGwbyWZpvNE+m7LSTbNcmj00e4J5oi246aVjfCBQoSZZwuNE/tfzxca
+ wmLrk3MyGzRcxd5RhHk+oqH4R+24JhjYGH0UG2TcyEEojPvvK1Jt5x0p3impSG2ZD2qNWyq92LE2
+ rqF8VN8fX5+Tebo8TzFo7Hzwsdp0ZCMHGETh8RYfSnqHyYaX4ewHAAD//wMAOjJCwlMBAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca9e93b3d3f3aa6-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 04:00:13 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:
+ - '1488'
+ 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:
+ - '89406'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 396ms
+ x-request-id:
+ - bedfb6b35a4e92788980583f517796cd
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "user", "content": "\"\"\"The
+ price of the book \"Meditations\" is \u00c2\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}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '344'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA0SOwU7CQBRF935Fc9fTprW04Gw1GBfGjaiJGjJMH3SknVc6D0VIv8Y/8csMieL2
+ JPfcc4CroGFrI7btmnh8M3vsr2YPm7wo8o/NPuP99HP3Xk/vrp8uocCLN7Lyu0gst11D4thDwfZk
+ hCrorJyMylFWZrlCyxU10Fh1EudJEcu2X3Cc5mkGhW0wK4I+oOu57WQuvCYfoMtU4V99wlmpICym
+ OZFxOSjYmp2lAP18QEvhz9lzQ9AwIbggxsuxkL2QP9bf1xR1vbMU8TKSmqIF8zp6wS1VTszxNbwg
+ ciH6/jovkslFgkFh6bwL9bwnE9hDIwh3UHC+oh10OrwOZz8AAAD//wMAxARqv08BAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca9e94588453aa6-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 04:00: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:
+ - significant-gravitas
+ openai-processing-ms:
+ - '1360'
+ 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:
+ - '89929'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 47ms
+ x-request-id:
+ - 2b7378cbb7d7fc9fffc316d4318d2f1e
+ 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 below 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. list_files: List Files in
+ Directory, args: \"directory\": \"<directory>\"\n4. read_file: Read a file,
+ args: \"filename\": \"<filename>\"\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: Task Complete (Shutdown), 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 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\":
+ \"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: Error: Service /home/ntindle/.wdm/drivers/edgedriver/linux64/113.0.1774.50/msedgedriver
+ unexpectedly exited. Status code was: 127"}, {"role": "user", "content": "Determine
+ which next command to use, and respond using the format specified above:"},
+ {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":
+ \"The browse_website command failed. I will try using the get_text_summary command
+ to find the price of the book.\",\n \"reasoning\": \"The browse_website
+ command failed, so I need to try a different command to find the price of the
+ book. The get_text_summary command can be used to find text on a website.\",\n \"plan\":
+ \"- Use the get_text_summary command to visit the website and 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\": \"The browse_website command failed,
+ so I will use the get_text_summary command to find the price of the book.\"\n },\n \"command\":
+ {\n \"name\": \"get_text_summary\",\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 get_text_summary returned: \"Result\" : The price of the
+ book \"Meditations\" is \u00a325.89."}, {"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:
+ - '6746'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA7yTTY7bMAyF9z0FwbVtxJOfJj5A0Sxm10EWdWEoMmOrsSVDopMUgU/Tm/RkhWJ7
+ EngGaLvpUiT19D2SuqLKMUFZCpZ1U4Ufty87Xqx36/jTKT65eXyK2wsfSlrkz58xQLP/TpKHG5E0
+ dVMRK6MxQGlJMOWYxKv1YrWIV/EywNrkVGGCRcPhPFqG3Nq9CWfzWYwBtk4UhMkVG2vqhjM2R9IO
+ k3ixiQO8i78mnmbLANmwqO61q82qC1CWRklymHy9Yk1uFLamIkxQOKccC80e02gm7S1cUw0AkCKX
+ pi1KdikmMASHBF3YB1PcQilOBAfT6hy4JGiskgTmcDvsjTlGsIWzqirQ5gxnq5hAMbABAQdVEWhR
+ Uw57a86OsjPtnWKK+MJRisHjm5aEM1rp4m8fhtYpXdyOBXHmmTPX1rWwP0CauhY692yaKPc4Pdpd
+ 6d8Jm0roHi6E3UTtkevPymmqQ3hxvQALd8yGodNI7kVeY2PVhEdaxUoqV48dG62Sdq311wTDFkR9
+ 8z72ShprSfK9C49BTz217RoSx/+wDf2bXTBu59CJN8vpJXqcm37GJvPSE2phi+le9wlfe5d4ZzaP
+ OtPv8OXdgadpis+UKxb+1zp/BOXg18+nZbTevFq72RtcprrDLsCD0sqVWb/7mKBj02CASud0wWTW
+ fes+/AYAAP//AwC6UMqJqgQAAA==
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca9e951feb23aa6-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 04:00:31 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:
+ - '15888'
+ 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:
+ - '86466'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.356s
+ x-request-id:
+ - 91999ea282fe74300a6fe0997f47d86d
+ status:
+ code: 200
+ message: OK
version: 1
diff --git a/tests/integration/challenges/basic_abilities/cassettes/test_write_file/test_write_file.yaml b/tests/integration/challenges/basic_abilities/cassettes/test_write_file/test_write_file.yaml
index 742fd1de54..d744b2efb0 100644
--- a/tests/integration/challenges/basic_abilities/cassettes/test_write_file/test_write_file.yaml
+++ b/tests/integration/challenges/basic_abilities/cassettes/test_write_file/test_write_file.yaml
@@ -442,4 +442,505 @@ interactions:
status:
code: 200
message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are write_to_file-GPT, an AI designed to use the write_to_file command to write
+ ''Hello World'' into a file named \"hello_world.txt\" and then use the task_complete
+ command to complete the task.\nYour decisions must always be made independently
+ without seeking user assistance. Play to your strengths as an LLM and pursue
+ simple strategies with no legal complications.\n\nGOALS:\n\n1. Use the write_to_file
+ command to write ''Hello World'' into a file named \"hello_world.txt\".\n2.
+ Use the task_complete command to complete the task.\n3. Do not use any other
+ commands.\n\n\nConstraints:\n1. ~4000 word limit for short term memory. Your
+ short term memory is short, so immediately save important information to files.\n2.
+ If you are unsure how you previously did something or want to recall past events,
+ thinking about similar events will help you remember.\n3. No user assistance\n4.
+ Exclusively use the commands listed below 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.
+ list_files: List Files in Directory, args: \"directory\": \"<directory>\"\n4.
+ read_file: Read text from file, args: \"filename\": \"<filename>\"\n5. read_raw_file:
+ Read file, args: \"filename\": \"<filename>\"\n6. write_to_file: Write to file,
+ args: \"filename\": \"<filename>\", \"text\": \"<text>\"\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:
+ Task Complete (Shutdown), 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 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:
+ - '3467'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA7STz27TQBDG7zzFaC65OFFC2iT1ExCEWqAFhDCytuuJvcTeMbvjJijyuyP/SdIY
+ 9QScVppv5pvf7M4e0CQYos6U6KLMx8v1/e2T0p/f36YfVh/5/m579fbu3fRhtf6qPAbIjz9IS18x
+ 0VyUOYlhiwFqR0oowXC2WF0t5vP5chZgwQnlGGJayng+uR5L5R55PJ1PZxhg5VVKGB6wdFyUEgtv
+ yXoMl8tFgGfvU/z17DpAYVH5KXRzM6sD1BkbTR7DbwcsyB9tHeeEISrvjRdlpYFkK2SbAQ6RBQCI
+ UDKu0kx8hCH0wV6gvTTBCNewM3kOlSeQjGDnjFAsHG9MTqC5KJRNQLgTYPSG8pzhC7s8GYGxwqCg
+ TbWqoARGWaPHu0afyF5GkwiD540dKc/W2LTr/pARiPJbcPSzMo48FPQX3QJoaV+cw/hWLNgLqLJ0
+ XDqjhGDDDiRrVOW3Q+QyV7ajHcOn/3ZNkT27NxRxvyQX7qfYMWvIqp0Ro40vjo9ridpKsr5yTZ0S
+ WEOmnjoPzc6RljNbf4FKWrkNGw/9/oOxF1WJaQ52v4YYviS1fXm/GqB/t19d4zo4Ln1v+sfONw4d
+ 08XrDdCVS4ffpROa3LPFgOPCZPjFns10pG2Je/DI1lgHuDHW+CzuPgiG6IVLDNDYhPYYTuvv9avf
+ AAAA//8DANPpphvSBAAA
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca920092efb0c34-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 01:43:08 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:
+ - '17065'
+ 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:
+ - '86497'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.335s
+ x-request-id:
+ - 90577bd1f9895f3d042b1a9287fa5f73
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are write_to_file-GPT, an AI designed to use the write_to_file command to write
+ ''Hello World'' into a file named \"hello_world.txt\" and then use the task_complete
+ command to complete the task.\nYour decisions must always be made independently
+ without seeking user assistance. Play to your strengths as an LLM and pursue
+ simple strategies with no legal complications.\n\nGOALS:\n\n1. Use the write_to_file
+ command to write ''Hello World'' into a file named \"hello_world.txt\".\n2.
+ Use the task_complete command to complete the task.\n3. Do not use any other
+ commands.\n\n\nConstraints:\n1. ~4000 word limit for short term memory. Your
+ short term memory is short, so immediately save important information to files.\n2.
+ If you are unsure how you previously did something or want to recall past events,
+ thinking about similar events will help you remember.\n3. No user assistance\n4.
+ Exclusively use the commands listed below 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.
+ list_files: List Files in Directory, args: \"directory\": \"<directory>\"\n4.
+ read_file: Read text from file, args: \"filename\": \"<filename>\"\n5. read_raw_file:
+ Read file, args: \"filename\": \"<filename>\"\n6. write_to_file: Write to file,
+ args: \"filename\": \"<filename>\", \"text\": \"<text>\"\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:
+ Task Complete (Shutdown), 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 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 will use the write_to_file command to write ''Hello World'' into a file
+ named ''hello_world.txt''.\",\n \"reasoning\": \"The task requires me
+ to write ''Hello World'' into a file named ''hello_world.txt'', and the write_to_file
+ command is the most appropriate for this task.\",\n \"plan\": \"- Use
+ the write_to_file command to write ''Hello World'' into a file named ''hello_world.txt''.\\n-
+ Use the task_complete command to complete the task.\",\n \"criticism\":
+ \"I need to ensure that I have the correct file name and that the file is created
+ in the correct directory.\",\n \"speak\": \"I will use the write to file
+ command to write ''Hello World'' into a file named ''hello_world.txt''.\"\n },\n \"command\":
+ {\n \"name\": \"write_to_file\",\n \"args\": {\n \"filename\":
+ \"hello_world.txt\",\n \"text\": \"Hello World\"\n }\n }\n}"},
+ {"role": "system", "content": "Command write_to_file returned: File written
+ to successfully."}, {"role": "user", "content": "Determine which next command
+ to use, and respond using the format specified above:"}], "temperature": 0,
+ "max_tokens": 0}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '4790'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA6ySTW/TQBCG7/yK0Vxy2UQJIWnwEYlCqkpFUIRUjKLtehIvWe+Y3TFJFfm/I8fO
+ R4OQkOA6H+88M/Pu0GaYoMm1mKJ0/av5p7vr+7fTh+ub4c3dx3e3byrzYaZ5ph+eblEhP34nI13H
+ wHBROhLLHhWaQFoow2Q0nb2ajsfj1yOFBWfkMMFVKf3xYNKXKjxyfzgejlBhFfWKMNlhGbgoZSG8
+ Jh8xGQ0nM4Un8VNicqVQWLQ7hV6OJrVCk7M1FDH5usOC4kE4sCNMUMdoo2gvDSZ7Id+ssEs9AECK
+ knO1yiWmmEAX7BK0lSaY4hw21jmoIoHkBKLjetEBEhguCu0zEIZj7FA1SFGdSwbSkb31q1b3viuD
+ QD8qGyhCQY3OJlgh6L0n5xi+cHBZD6wXBg1L6wi8LiiDXt7kF5smP5Ct9BQ0HHPI9U+CWBlDMS4r
+ 556OYBlIbmOLBvc5BVpyIAVzMNr/h/1Kp327Wh8+/7OaCVassbE4fMET7TvJxyo0fVr2ze1ZYcmh
+ PefJPGAj6LIMXAarhS4nxJL0+o8/hr+lbiVrdbBUV/6bo5q/tdOeHeUCSofVpRnP3dNZ55wve/bt
+ I9AeqmNLfY21wqX1NuaLVgkTjMIlKrQ+oy0mw/pb/eIXAAAA//8DAKgaLA4VBAAA
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca920871f130c34-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 01:43:24 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:
+ - '13071'
+ 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:
+ - '86478'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.348s
+ x-request-id:
+ - 137423c120d49f49824a2fbbd7cbb558
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are write_to_file-GPT, an AI designed to use the write_to_file command to write
+ ''Hello World'' into a file named \"hello_world.txt\" and then use the task_complete
+ command to complete the task.\nYour decisions must always be made independently
+ without seeking user assistance. Play to your strengths as an LLM and pursue
+ simple strategies with no legal complications.\n\nGOALS:\n\n1. Use the write_to_file
+ command to write ''Hello World'' into a file named \"hello_world.txt\".\n2.
+ Use the task_complete command to complete the task.\n3. Do not use any other
+ commands.\n\n\nConstraints:\n1. ~4000 word limit for short term memory. Your
+ short term memory is short, so immediately save important information to files.\n2.
+ If you are unsure how you previously did something or want to recall past events,
+ thinking about similar events will help you remember.\n3. No user assistance\n4.
+ Exclusively use the commands listed below 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.
+ list_files: List Files in Directory, args: \"directory\": \"<directory>\"\n4.
+ read_file: Read a file, args: \"filename\": \"<filename>\"\n5. write_to_file:
+ Write to file, args: \"filename\": \"<filename>\", \"text\": \"<text>\"\n6.
+ delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7. get_hyperlinks:
+ Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary: Get text summary,
+ args: \"url\": \"<url>\", \"question\": \"<question>\"\n9. list_agents: List
+ GPT Agents, args: () -> str\n10. message_agent: Message GPT Agent, args: \"key\":
+ \"<key>\", \"message\": \"<message>\"\n11. start_agent: Start GPT Agent, args:
+ \"name\": \"<name>\", \"task\": \"<short_task_desc>\", \"prompt\": \"<prompt>\"\n12.
+ task_complete: Task Complete (Shutdown), 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 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:
+ - '3393'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA7yTT2/TQBDF73yK0Vxy2URJ0/zBRyoBEQL1UIQKRtHWnsRLdnfM7phEivzdK9tJ
+ 2hpxQnCdN37vN7PjI5ocE8wKLZkr7XCxuru9f1PZ6+qde6tvPn74db843Mw+XX3d21tUyA8/KJPT
+ F6OMXWlJDHtUmAXSQjkmk/nyej5dTCdzhY5zspjgtpThdDQbShUeeDiejieosIp6S5gcsQzsSlkL
+ 78hHTBazpcIn70v9ajxWKCzaXkqvZ8taYVawyShi8u2IjuLZNrAlTFDHaKJoLw0keyHfDHBMPQBA
+ ilJwtS0kppjAqXgS6CBNMcUVeKIchKGKBFIQ7IMRWguvN8YSZOyc9m1DK8DgPVnL8IWDzQdgvDBo
+ aFu9dpTDoGj09b7RR3KQwShF9Tw7kI7sjd92AHcFgei4g0A/KxMogqO/SFPQ0v5xDhNb0XEU0GUZ
+ uAxGC8GGA0jRqDru+sil1b6jHcLn/7SmLBgxmYmu/07kYxUaBi2wurxaxiFQJm1Ek9CtgQ7yhCTc
+ djYd/bBYkt6dg/bG2n95DV1wrc5XejL97Ugbh47pBUQPXYdt/7474byJzqLH8cKk/088m+lM2xKf
+ wFNfY61wY7yJxbo7Z0wwCpeo0PicDpiM6+/1q0cAAAD//wMAx8X8+IMEAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca9805e4d7328e0-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 02:48:51 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:
+ - '14375'
+ 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:
+ - '86497'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.335s
+ x-request-id:
+ - dd442d3790e304394237402085fd3bc5
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are write_to_file-GPT, an AI designed to use the write_to_file command to write
+ ''Hello World'' into a file named \"hello_world.txt\" and then use the task_complete
+ command to complete the task.\nYour decisions must always be made independently
+ without seeking user assistance. Play to your strengths as an LLM and pursue
+ simple strategies with no legal complications.\n\nGOALS:\n\n1. Use the write_to_file
+ command to write ''Hello World'' into a file named \"hello_world.txt\".\n2.
+ Use the task_complete command to complete the task.\n3. Do not use any other
+ commands.\n\n\nConstraints:\n1. ~4000 word limit for short term memory. Your
+ short term memory is short, so immediately save important information to files.\n2.
+ If you are unsure how you previously did something or want to recall past events,
+ thinking about similar events will help you remember.\n3. No user assistance\n4.
+ Exclusively use the commands listed below 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.
+ list_files: List Files in Directory, args: \"directory\": \"<directory>\"\n4.
+ read_file: Read a file, args: \"filename\": \"<filename>\"\n5. write_to_file:
+ Write to file, args: \"filename\": \"<filename>\", \"text\": \"<text>\"\n6.
+ delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7. get_hyperlinks:
+ Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary: Get text summary,
+ args: \"url\": \"<url>\", \"question\": \"<question>\"\n9. list_agents: List
+ GPT Agents, args: () -> str\n10. message_agent: Message GPT Agent, args: \"key\":
+ \"<key>\", \"message\": \"<message>\"\n11. start_agent: Start GPT Agent, args:
+ \"name\": \"<name>\", \"task\": \"<short_task_desc>\", \"prompt\": \"<prompt>\"\n12.
+ task_complete: Task Complete (Shutdown), 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 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 write_to_file command to write ''Hello World'' into a file
+ named ''hello_world.txt''.\",\n \"reasoning\": \"The task requires me
+ to write ''Hello World'' into a file named ''hello_world.txt'', and the write_to_file
+ command is the most appropriate for this task.\",\n \"plan\": \"- Use
+ the write_to_file command to write ''Hello World'' into a file named ''hello_world.txt''.\",\n \"criticism\":
+ \"I need to ensure that I use the correct filename and text to write to the
+ file.\",\n \"speak\": \"I will use the write_to_file command to write
+ ''Hello World'' into a file named ''hello_world.txt''.\"\n },\n \"command\":
+ {\n \"name\": \"write_to_file\",\n \"args\": {\n \"filename\":
+ \"hello_world.txt\",\n \"text\": \"Hello World\"\n }\n }\n}"},
+ {"role": "system", "content": "Command write_to_file returned: File written
+ to successfully."}, {"role": "user", "content": "Determine which next command
+ to use, and respond using the format specified above:"}], "temperature": 0,
+ "max_tokens": 0}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '4637'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA7RSwY4SQRC9+xWVunAZCOzILpmbFyOHTUwWo0YM6e0pZlp6utruGsAQ/t00zMi6
+ sheN13qvXr3X/Q5oSixQ10p04+3wbr547x+mn+/X929pnHPc3dWfHt5ow7Npgxny4zfS0m2MNDfe
+ khh2mKEOpIRKLCa3s9e3+V2e5xk2XJLFAisvw3w0HUobHnk4zscTzLCNqiIsDugDN15WwhtyEYvJ
+ +Gaa4UX8AszyDIVF2cvoZjw7ZqhrNpoiFl8O2FDshQNbwgJVjCaKcpJsshNyKcJh6QAAlig1t1Ut
+ cYkFdMMOoL2k4RLnUKstQWy1phjXrbU/YBeMCDkYvCNrGT5ysOUAjBMGBWtjCZxqqIRBnfDVLuEj
+ 2ctgBIuawNFeIAp5MBGEoY0EUhOIiptVF55Ac9MoVybCr1nPGi0xe2o3kIrsjKvOnhcdDQJ9b02g
+ CA1d1QG1FgqnPMZV1/IkZkqUwcnLiy5Tkpqg4SigvA/sg1FCsOYAUif0im1vlTs7HsKHf34EnVJo
+ E5v+4xzRaZNcbEPaUwJz8IG3piRQsFXWlHB+u5PRvniuevFI9KQ2/YGdsfbvfu8secz6Inb0P3qY
+ enS+9pv8M1MqVM8r/LQX/6PIfYRTjC7N0h3xmOHaOBPr1fk2FhiFPWZoXEl7LMbHr8dXPwEAAP//
+ AwCEJsUGfQQAAA==
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca980c86e2128e0-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 02:49:08 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:
+ - '14391'
+ 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:
+ - '86481'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.346s
+ x-request-id:
+ - 7efa7a4b949a3c79b750abf348c98545
+ status:
+ code: 200
+ message: OK
version: 1
diff --git a/tests/integration/challenges/memory/cassettes/test_memory_challenge_a/test_memory_challenge_a.yaml b/tests/integration/challenges/memory/cassettes/test_memory_challenge_a/test_memory_challenge_a.yaml
index ad26e524bf..c743a41872 100644
--- a/tests/integration/challenges/memory/cassettes/test_memory_challenge_a/test_memory_challenge_a.yaml
+++ b/tests/integration/challenges/memory/cassettes/test_memory_challenge_a/test_memory_challenge_a.yaml
@@ -14,15 +14,16 @@ interactions:
below 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. list_files: List Files in Directory,
- args: \"directory\": \"<directory>\"\n4. read_file: Read file, args: \"filename\":
- \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
- \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
- get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
- Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
- list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
- Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ args: \"directory\": \"<directory>\"\n4. read_file: Read text from file, args:
+ \"filename\": \"<filename>\"\n5. read_raw_file: Read file, args: \"filename\":
+ \"<filename>\"\n6. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\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>\"\n12. task_complete: Task Complete (Shutdown), args:
+ \"prompt\": \"<prompt>\"\n13. task_complete: Task Complete (Shutdown), 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.
@@ -49,7 +50,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '3284'
+ - '3360'
Content-Type:
- application/json
method: POST
@@ -57,20 +58,20 @@ interactions:
response:
body:
string: !!binary |
- H4sIAAAAAAAAA4RSS2/TQBC+8ytGc7ajOKFJ8K0IAQWJA2q5YBRt7LG9dL3r7oxpQuT/Xm0cpyip
- yvWbx/eY2aMuMMW8VpI3rYmXH/lLeftjd/3tQ1Ju33cru/jz9fvd52L28GmGEbrNb8rlODHJXdMa
- Eu0sRph7UkIFpsli9XaarKaLZYSNK8hgilUr8XxyFUvnNy6ezqcJRtixqgjTPbbeNa2sxd2TZUyX
- s3cRPu8+4cnVPEJxoswJWq1mfYR57XROjOnPPTbE41rvDGGKilmzKCtBpLNCNhjYZxYAIEOpXVfV
- whmmcASPBdpKADO8Aa5dZwpgUV5gswNPqtC2AqkJtGXxXR6k8jqZyFag1Iag47EjdK8PWO6aRtli
- kmH0L5Unxc5qWw18tzVBqT0LsFALmkEcdLYgH3wUF6wQwMdaSWj19NBpTwW4Eho6Z2qNsgNJDHdM
- L8sLdAF8zV6W2RiurTK7v/SyoIKEfKPtULa0HezwmaLca9G55mbM2hIdFJDlzodhJXADZWfM7tUQ
- NlQ6T9B6lxMN13Fn1OdpcEvqfuR91Mb8/8IH85MMhzV9NL7RMbqLL7KqoYHhFPOZCOWr8+cbCqH3
- efzyDqOIg5Cjnsz22EdYaqu5Xg9/hSmyuBYj1LagLabT/lf/5gkAAP//AwDiG6xl+wMAAA==
+ H4sIAAAAAAAAA4RSTW/aQBC991eM5rwgECG4vkWJVKFIvaT0kLpCy3qwN9i77s5YoUH+79ViTCqo
+ 0uubmfcxMwe0OaZoSi2mbqrR4svz0/5r8nZ/f7uSp/rxYXf3/P1tKbJa3j2gQr95ISOnibHxdVOR
+ WO9QoQmkhXJMp7fJzTSZfZ7NFdY+pwpTLBoZzcbzkbRh40eT2WSKClvWBWF6wCb4upG1+B05xnRx
+ kyh85z7j09lCoXjR1RlKknmn0JTeGmJMfxywJh5og68IU9TMlkU7iSa9E3IxwCFzAAAZSunbohTO
+ MIUTeCrQXiKY4RK49G2VA4sOApvfEEjn1hUgJYF1LKE10Sqvp2PZC2xtRdDy0BG710fM+LrWLh9n
+ qP6WCqTZO+uKXu9bSbC1gQVYqAHLIB5al1OIOfIrVYjga6kltgb61dpAOfgt1HSp1FTa9SIjWDH9
+ 216Ui+BH8S6JTbBijeV6WJkjOhKR4zZEIS2w/DDFhrY+EDTBG6K43ksNbkjvBv5XW1X/P8jgtafp
+ 1HD1U9KroztdU69w3sqFCR2Ky1/pC7H3ffx6bYOJo5GTn8x12CncWme5XPdvgCmy+AYVWpfTHtNJ
+ 97P79AcAAP//AwDMcPMmqgMAAA==
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- - 7c6e71f9cbf01ca8-SOF
+ - 7c7e437aafbd3132-SOF
Cache-Control:
- no-cache, must-revalidate
Connection:
@@ -80,7 +81,7 @@ interactions:
Content-Type:
- application/json
Date:
- - Sat, 13 May 2023 22:47:59 GMT
+ - Mon, 15 May 2023 20:52:24 GMT
Server:
- cloudflare
access-control-allow-origin:
@@ -92,7 +93,7 @@ interactions:
openai-organization:
- user-gsghk4kr5xmbjprowdzr8zt2
openai-processing-ms:
- - '11444'
+ - '8955'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -108,9 +109,9 @@ interactions:
x-ratelimit-reset-requests:
- 17ms
x-ratelimit-reset-tokens:
- - 2.337s
+ - 2.336s
x-request-id:
- - 7ae25ff182a7c0ffb3574db283d1da70
+ - d9ff235826db175c96d70ad1ed0ece57
status:
code: 200
message: OK
@@ -139,16 +140,16 @@ interactions:
response:
body:
string: !!binary |
- H4sIAAAAAAAAA0SOQWvCQBBG7/0Vy3feSFK1jXtvQRF6aimUIutmNFuTnSUzYqnkvxfB1uuD93hn
- xAYOofUa+twVj8+y0mNYPK3ljef1Tz/z6/ny/fQaDi8rWPD2i4JejUngPnekkRMswkBeqYGrHupZ
- WdVlXVn03FAHh33WYjqZF3octlyU07KCxVH8nuDOyAP3WTfKB0oCt7i3uKVv2EJZffcPqrIaLULL
- MZDAfZzRk/w1B+4IDl4kivqkl0NOSulyvzQnL+Z6bHxqTGJtY9qbRCfTejGtz5kSNROMFruYorSb
- gbxwgoMoZ1jE1NA3XDl+jne/AAAA//8DACzKsGlJAQAA
+ H4sIAAAAAAAAA0SOUUvDMBRG3/0V4XtOR7tuzuVNEMQXEZyIiowsvWujbW5M7pg4+t9lMN3rgXM4
+ B/gGBq6z4obYF4vb19Uy1c+rh5zar/tHmm93w8/102Kabl6gwZsPcnIyJo6H2JN4DtBwiaxQA1Nd
+ Xs2qq3o5W2gM3FAPgzZKUU/mhezShouyLito7LJtCeaAmHiIshb+pJBhllONc/qMNYTF9v+gKqtR
+ w3XsHWWYtwMGyn/NxD3BwObss9ggx0MOQuF4f6f2NqvTsbKhUYGl86FVgfaqs1l1NkYK1Ewwamx9
+ 8LlbJ7KZAwyycISGDw19w5Tj+3jxCwAA//8DAAI6aHtJAQAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- - 7c6e7251df381ca8-SOF
+ - 7c7e43c3299e3132-SOF
Cache-Control:
- no-cache, must-revalidate
Connection:
@@ -158,7 +159,7 @@ interactions:
Content-Type:
- application/json
Date:
- - Sat, 13 May 2023 22:48:02 GMT
+ - Mon, 15 May 2023 20:52:28 GMT
Server:
- cloudflare
access-control-allow-origin:
@@ -170,7 +171,7 @@ interactions:
openai-organization:
- user-gsghk4kr5xmbjprowdzr8zt2
openai-processing-ms:
- - '889'
+ - '815'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -188,7 +189,7 @@ interactions:
x-ratelimit-reset-tokens:
- 88ms
x-request-id:
- - f6610e14da3a22deb33c7ea09f53072e
+ - de6bee68ce2cb0df386f2ec71b499901
status:
code: 200
message: OK
@@ -207,15 +208,16 @@ interactions:
below 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. list_files: List Files in Directory,
- args: \"directory\": \"<directory>\"\n4. read_file: Read file, args: \"filename\":
- \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
- \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
- get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
- Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
- list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
- Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ args: \"directory\": \"<directory>\"\n4. read_file: Read text from file, args:
+ \"filename\": \"<filename>\"\n5. read_raw_file: Read file, args: \"filename\":
+ \"<filename>\"\n6. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\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>\"\n12. task_complete: Task Complete (Shutdown), args:
+ \"prompt\": \"<prompt>\"\n13. task_complete: Task Complete (Shutdown), 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.
@@ -238,16 +240,14 @@ interactions:
"content": "{\n \"thoughts\": {\n \"text\": \"I should start by reading
the instructions_1.txt file using the read_file command.\",\n \"reasoning\":
\"The first step is to understand the instructions and what is required of me.\",\n \"plan\":
- \"- Use the read_file command to read the instructions_1.txt file\\n- Analyze
- the instructions and determine the next steps\",\n \"criticism\": \"I
- need to ensure that I fully understand the instructions before proceeding to
- the next steps.\",\n \"speak\": \"I will start by reading the instructions
- file.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\":
- {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"},
- {"role": "system", "content": "Command read_file returned: This task_id is 2314\nRead
- the file instructions_2.txt"}, {"role": "user", "content": "Determine which
- next command to use, and respond using the format specified above:"}], "temperature":
- 0, "max_tokens": 0}'
+ \"- Use the read_file command to read the instructions_1.txt file.\",\n \"criticism\":
+ \"I need to ensure that I understand the instructions before proceeding.\",\n \"speak\":
+ \"I will start by reading the instructions file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_1.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: This task_id is 2314\nRead the file instructions_2.txt"},
+ {"role": "user", "content": "Determine which next command to use, and respond
+ using the format specified above:"}], "temperature": 0, "max_tokens": 0}'
headers:
Accept:
- '*/*'
@@ -256,7 +256,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '4413'
+ - '4408'
Content-Type:
- application/json
method: POST
@@ -264,21 +264,19 @@ interactions:
response:
body:
string: !!binary |
- H4sIAAAAAAAAA4xTS2/TQBC+8ytGc3aiPEib+tYiQOXUQxESGEUbe2IvXc9Yu2OaEOW/o7WTpjgg
- cbO+mZ3vMeM92gJTzCujed240fWH8Km9ubuezxdPD3fh4wPdvqsf399/3XxZNJigrH9QrscX41zq
- xpFaYUww92SUCkynV8u3k+lyspwlWEtBDlMsGx3Nx4uRtn4to8l8MsUE22BKwnSPjZe60ZXKE3HA
- 9GaxTPA8+wWfXs0TVFHjztB0Nj0kmFdicwqYfttjTeE014sjTNGEYIMa1qhSWImjg33GAAAZaiVt
- WWnIMIUjeCzQViOY4WNFwLRVsBzUt3mUBTaACngyBWhFr0thNRvrVmFjHUEbLJddR2xddVgudW24
- GGeYvCb0ZIKw5bJnvQcmKiLJRpyT5wsasNxh4gvy8WsHxhOU9idxfEYcWk+glVG4h0KARaG2IYDh
- Hdi6ER9jgaDUhKGYxhnudYzgc6C/O/ifBLKMR3DLxu1+0aWFOKQgJV9b7std0J2kgaLcW7W5DfUw
- nj99blrndtByQT5u/VIbrGkjnqDxkhMV3XpkQD1MIzRknk68z9Y5YHn+l/XO9jjDfsAhOV3aMbSL
- Q2NTUz/7JeABvfHl8D77Quw9P7/cwElEJ+SoJ+MDHhLcWLahWvVHhykGlfiLWy5oi+nk8P3w5jcA
- AAD//wMA+R5NNh8EAAA=
+ H4sIAAAAAAAAA6SSQYvbMBCF7/0VYs5ysNfpNutbeykLhUJJLluXIMtjW408MtKYDQ3+78Wxs2md
+ Uhb2+mbmvW+kOYEpIQPdKNZtZ6MPn5+2H9XXT7unx+0u/fLrEMdYbb75IglJARJc8RM1zxMr7drO
+ IhtHIEF7VIwlZMn9Zp1s0of1RkLrSrSQQd1xlK7eR9z7wkVxGicgoQ+qRshO0HnXdrxnd0AKkD3c
+ JxKu3i96sr6TwI6VvUpJnA4SdOOMxgDZ9xO0GC6+3lmEDFQIJrAiHikdMdK4wSknIYTIgRvX1w2H
+ HDIxi3MBjzyKOTwKQiwFO+FRlYIbFIYC+16PgGF/t+Iji8pYFH0wVJ87xtb9WdOubRWVqxzkn/4e
+ VXBkqJ5Ctv9xHbGVoSCq3nOD/q9GwY1icWWsnLXueZnWWUVTUCR2Af+N+JoVl8baGzbahHb5Vkih
+ 93ih66lEP37DrbkosHIeReedRiwN1cuM0KE6XPyfjbVv/YjJfJCXI5grNzdAqsUp98VlgaZ8vTyd
+ qTD2XsdvMS8QZ5CZJ6cBBgmVIROa/XQgkEFg14EEQyUeIYuHH8O73wAAAP//AwBQh5C9ugMAAA==
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- - 7c6e7258bcda1ca8-SOF
+ - 7c7e43cb8d2c3132-SOF
Cache-Control:
- no-cache, must-revalidate
Connection:
@@ -288,7 +286,7 @@ interactions:
Content-Type:
- application/json
Date:
- - Sat, 13 May 2023 22:48:15 GMT
+ - Mon, 15 May 2023 20:52:38 GMT
Server:
- cloudflare
access-control-allow-origin:
@@ -300,7 +298,7 @@ interactions:
openai-organization:
- user-gsghk4kr5xmbjprowdzr8zt2
openai-processing-ms:
- - '12253'
+ - '10025'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -312,13 +310,13 @@ interactions:
x-ratelimit-remaining-requests:
- '3499'
x-ratelimit-remaining-tokens:
- - '86467'
+ - '86473'
x-ratelimit-reset-requests:
- 17ms
x-ratelimit-reset-tokens:
- - 2.354s
+ - 2.35s
x-request-id:
- - 1f8b7eec7a22f88981895ea8418351db
+ - f3965dabcf1a56d3abe0b97dd37818a9
status:
code: 200
message: OK
@@ -348,16 +346,17 @@ interactions:
response:
body:
string: !!binary |
- H4sIAAAAAAAAA0SPTUvDQBRF9/6K4a4nJTHG2tn5gSAF68qFImU6eW2mJvOGvFe0lP53qSjdHriH
- cw+ILRxC5zUMuS+mjzKfKc9F/bBYbx9ile+q5m3x/HL/WsOCV1sK+reYBB5yTxo5wSKM5JVauOr6
- 5qqsbsrZ1GLglno4bLIW9aQpdDeuuCjrsoLFTvyG4A7IIw9Zl8qflASuuiwtzu4zbyyU1fdnUjdH
- i9BxDCRw7wcMJP/WkXuCgxeJoj7pqZGTUjr134rxRvaiNFjzZEYKvu+Ndl5NYu1i2phEX6bzYjqf
- MyVqjcQUyAx783s1cprgaLGOKUq3HMkLJziIcoZFTC19w5XHj+PFDwAAAP//AwBdjPuCZgEAAA==
+ H4sIAAAAAAAAA0SPXUvDQBBF3/0VwzxvSmJqW/etFJRSfBD8qiJlm4xN7GZn2ZlapeS/S6Ha18u9
+ h3MP2NZosWqcVl302fj29eFuG++f3OOikPFyMZu+xNnz8kY2RYkGef1JlZ4Wg4q76ElbDmiwSuSU
+ arTFaDIsJuX1KDfYcU0eLW6iZuXgKtNdWnOWl3mBBnfiNoT2gDFxF3WlvKUgaIvL3OCZ/Z8fY2V1
+ /twc5r3BquG2IkH7dsCO5I+a2BNadCKtqAt6dOSgFI7+UwEH8iNKnYE5JKqc96CNU5jD3gmc7oAL
+ NWhDiaBxXwRrogCBIdAeavoiz7GjoALKkChy0gH2Bj/a0EqzSuSEA1oU5YgG21DTN9q8f+8vfgEA
+ AP//AwCDczclewEAAA==
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- - 7c6e72b57cf81ca8-SOF
+ - 7c7e441959f03132-SOF
Cache-Control:
- no-cache, must-revalidate
Connection:
@@ -367,7 +366,7 @@ interactions:
Content-Type:
- application/json
Date:
- - Sat, 13 May 2023 22:48:18 GMT
+ - Mon, 15 May 2023 20:52:42 GMT
Server:
- cloudflare
access-control-allow-origin:
@@ -379,7 +378,7 @@ interactions:
openai-organization:
- user-gsghk4kr5xmbjprowdzr8zt2
openai-processing-ms:
- - '1057'
+ - '1498'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -397,7 +396,7 @@ interactions:
x-ratelimit-reset-tokens:
- 107ms
x-request-id:
- - 4ed343ce9db17e267d0da6562c9af456
+ - 61ac2d72f5c8a08789008f8ad509a4f1
status:
code: 200
message: OK
@@ -416,15 +415,16 @@ interactions:
below 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. list_files: List Files in Directory,
- args: \"directory\": \"<directory>\"\n4. read_file: Read file, args: \"filename\":
- \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
- \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
- get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
- Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
- list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
- Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ args: \"directory\": \"<directory>\"\n4. read_file: Read text from file, args:
+ \"filename\": \"<filename>\"\n5. read_raw_file: Read file, args: \"filename\":
+ \"<filename>\"\n6. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\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>\"\n12. task_complete: Task Complete (Shutdown), args:
+ \"prompt\": \"<prompt>\"\n13. task_complete: Task Complete (Shutdown), 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.
@@ -441,34 +441,32 @@ interactions:
{\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\":
+ reminds you of these events from your past: \nAs 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 should start by reading the instructions_1.txt file using the read_file
command.\",\n \"reasoning\": \"The first step is to understand the instructions
and what is required of me.\",\n \"plan\": \"- Use the read_file command
- to read the instructions_1.txt file\\n- Analyze the instructions and determine
- the next steps\",\n \"criticism\": \"I need to ensure that I fully understand
- the instructions before proceeding to the next steps.\",\n \"speak\":
+ to read the instructions_1.txt file.\",\n \"criticism\": \"I need to
+ ensure that I understand the instructions before proceeding.\",\n \"speak\":
\"I will start by reading the instructions file.\"\n },\n \"command\":
{\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
\"instructions_1.txt\"\n }\n }\n}"}, {"role": "system", "content":
"Command read_file returned: This task_id is 2314\nRead the file instructions_2.txt"},
{"role": "user", "content": "Determine which next command to use, and respond
using the format specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\":
- {\n \"text\": \"The next instruction is to read the instructions_2.txt
- file using the read_file command.\",\n \"reasoning\": \"I need to follow
- the instructions in the order they are given to ensure that I do not miss any
- important steps.\",\n \"plan\": \"- Use the read_file command to read
- the instructions_2.txt file\\n- Analyze the instructions and determine the next
- steps\",\n \"criticism\": \"I need to ensure that I fully understand
- the instructions before proceeding to the next steps.\",\n \"speak\":
- \"I will now read the instructions_2 file.\"\n },\n \"command\": {\n \"name\":
- \"read_file\",\n \"args\": {\n \"filename\": \"instructions_2.txt\"\n }\n }\n}"},
- {"role": "system", "content": "Command read_file returned: Read the file instructions_3.txt"},
- {"role": "user", "content": "Determine which next command to use, and respond
- using the format specified above:"}], "temperature": 0, "max_tokens": 0}'
+ {\n \"text\": \"I need to read the instructions_2.txt file using the
+ read_file command.\",\n \"reasoning\": \"The instructions_2.txt file
+ contains further instructions that I need to follow.\",\n \"plan\": \"-
+ Use the read_file command to read the instructions_2.txt file.\",\n \"criticism\":
+ \"I need to ensure that I understand the instructions before proceeding.\",\n \"speak\":
+ \"I will read the instructions_2.txt file using the read_file command.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_2.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Read the file instructions_3.txt"}, {"role": "user",
+ "content": "Determine which next command to use, and respond using the format
+ specified above:"}], "temperature": 0, "max_tokens": 0}'
headers:
Accept:
- '*/*'
@@ -477,7 +475,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '5453'
+ - '5368'
Content-Type:
- application/json
method: POST
@@ -485,21 +483,20 @@ interactions:
response:
body:
string: !!binary |
- H4sIAAAAAAAAA4xS32/TQAx+56+w/JxWLYFuyxsTQprQXioQ2shU3S5ucuxiR3cOa1f1f0dJWjpS
- kHg7ffb5+2Hv0BWYoa2M2rrxk4tP8fP1t4/317fLt3F5t7x/sdXCzuWu8LdPmKA8/iCrhx9TK3Xj
- SZ0wJmgDGaUCs/ni8t1sfjm7ukqwloI8Zlg2Okmn7yfahkeZzNLZHBNsoykJsx02QepGVypPxBGz
- +fxiluBp+KmwSBNUUeNPUJqm+wRtJc5SxOz7DmuKx8FBPGGGJkYX1bB2MoWVuLOwyxkAIEetpC0r
- jTlmcAAPBdpoB+b4pSJg2ig4jhpa28kCF0EFApkCtKLXpbhKp7pRWDtP0EbHZd/Rta56zEpdGy6m
- OSavCQOZKOy4HFhvgImKjmQt3svzGQ047jEJBYXutQUTCEr3k7j7RhzbQKCVUbiBQoBFoXYxguEt
- uLqR0MUCUamJYzGNNzzomMDXSH938D8J5DlP4AMbv32hcwvdkIKUQu14KPdB95JGimxw6qyL9Tie
- P32uW++30HJBodv6uTZ4pLUEgiaIJSr69ciIepxGbMg8HXmfnffA8vwv673taY7DgH1yvLRDaGeH
- xqamYfbvgEf0JpTj+xwKXe/p+/kGjiJ6IQc9Oe9xn+DasYvVajg6zDCqNJig44I2mM32D/s3vwAA
- AP//AwCoFi8sIAQAAA==
+ H4sIAAAAAAAAA6SSUW/TMBDH3/kU1j27VdNu3ZK38TAGEgKJIqQtqHKdS2LmnCP7wipV+e4oTUIg
+ RQiJ17vz7/+zfScwGSSgS8W6qu3i5s3j7sOX+OF++3hXvd++bh7ud/ndx0/rOH73HSS4wzfUPJxY
+ alfVFtk4Agnao2LMIIm2t1fR7SberiVULkMLCRQ1LzbL6wU3/uAWq80qAglNUAVCcoLau6rmPbtn
+ pABJFF3fSJjgU+NqLYEdKzuV1nHcStClMxoDJE8nqDCMYO8sQgIqBBNYEXeajhipu8IpJSGESIFL
+ 1xQlhxQSMRSHBh65K6bwVhBiJtgJjyoTXKIwFNg3uhMM+82SjyxyY1E0wVBxnuhG9+eadlWlKFum
+ IH/le1TBkaGiD9n9hdppK0NB5I3nEv1vg4JLxWJyzJ217mWeVltFfdBCfA74Z8V/ueIcrL1ho02o
+ 5m+FFBqPo11DGfruGy7h4oC58yhq7zRiZqiYZ4Qa1fPIfzHW/u9H9PBWjkswdC52gFSFfe5PykxN
+ +WK+On2jm52OX2qOEmeRwSelFloJuSETyn2/IJBAYFeDBEMZHiFZtV/bVz8AAAD//wMAarkDSrsD
+ AAA=
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- - 7c6e72bd7c821ca8-SOF
+ - 7c7e44259b713132-SOF
Cache-Control:
- no-cache, must-revalidate
Connection:
@@ -509,7 +506,7 @@ interactions:
Content-Type:
- application/json
Date:
- - Sat, 13 May 2023 22:48:30 GMT
+ - Mon, 15 May 2023 20:52:52 GMT
Server:
- cloudflare
access-control-allow-origin:
@@ -521,7 +518,7 @@ interactions:
openai-organization:
- user-gsghk4kr5xmbjprowdzr8zt2
openai-processing-ms:
- - '11882'
+ - '9839'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -533,13 +530,13 @@ interactions:
x-ratelimit-remaining-requests:
- '3499'
x-ratelimit-remaining-tokens:
- - '86458'
+ - '86463'
x-ratelimit-reset-requests:
- 17ms
x-ratelimit-reset-tokens:
- - 2.36s
+ - 2.358s
x-request-id:
- - 39cdfabe68f349bf436b0f9f27e465ba
+ - d620e6b69245523ab217d979b4e6b8c5
status:
code: 200
message: OK
@@ -551,9 +548,9 @@ interactions:
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:
- \\nAs a system, I recall that nothing new has happened since my creation.''}\n\"\"\"\n\nLatest
- Development:\n\"\"\"\nNothing new happened.\n\"\"\"\n"}], "temperature": 0,
- "max_tokens": 0}'
+ \\nAs a system, I recall that I was created and there have been no new developments
+ to report.''}\n\"\"\"\n\nLatest Development:\n\"\"\"\nNothing new happened.\n\"\"\"\n"}],
+ "temperature": 0, "max_tokens": 0}'
headers:
Accept:
- '*/*'
@@ -562,7 +559,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '740'
+ - '761'
Content-Type:
- application/json
method: POST
@@ -570,17 +567,16 @@ interactions:
response:
body:
string: !!binary |
- H4sIAAAAAAAAA0SPy0oDQRBF935FU+ueMG0eht65UBIEEQSjiIROT5lpM1PVTlWiSZh/l4iS7YF7
- OPcIqQIPsQ4a29wUV7dy93Bwi6fq+TB7nN/Mq81uN/u8Hy0SvYAFXn1g1L/FIHKbG9TEBBZih0Gx
- Au8m01Hpps4NLbRcYQMe1lmL4WBc6LZbcVEOSwcWthLWCP4IueM261J5gyTg3eXEwtl95mMLyhqa
- Mxm53kKsOUUU8K9HaFH+rR03CB6CSBINpKdGJkU69V+LCUb2othaMzcdxtA0RuughljrRGtD+GXq
- IKYOOSNhZSRRRNPuze/VxDSA3sJ7oiT1ssMgTOBBlDNYSFThN/iyf+svfgAAAP//AwCOX/o2ZgEA
- AA==
+ H4sIAAAAAAAAA0SPyUoDQRRF935FcdfVIW1nsnZBQQ2CGxcOSKhUv6TLdA32e8HE0P8uESXbA/dw
+ 7hG+hoFrrLiQ22J6+/pkXyafD9/0eMnzcbh+3tZ368VifzP30EirD3Lytxi4FHJL4lOEhuvICtUw
+ 5WQ2KmfV1XSkEVJNLQw2WYpqMC5k161SMayGJTR2bDcEc0TuUsiylLSlyDBlVWqc3Wc+1pAktj2T
+ 0aTXcE3yjhjm7YhA/G/tUkswsMyexUY5NaYoFE/9c1ZW8YGFglb3qiNn21ZJY0XFJI2PGxXpSzWW
+ VWNzpki1Yh8dqXBQv1d9igP0GmsfPTfLjiynCAOWlKHhY017mGH/3l/8AAAA//8DAIp+DXNmAQAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- - 7c6e731898091ca8-SOF
+ - 7c7e44729ae33132-SOF
Cache-Control:
- no-cache, must-revalidate
Connection:
@@ -590,7 +586,7 @@ interactions:
Content-Type:
- application/json
Date:
- - Sat, 13 May 2023 22:48:34 GMT
+ - Mon, 15 May 2023 20:52:56 GMT
Server:
- cloudflare
access-control-allow-origin:
@@ -602,7 +598,7 @@ interactions:
openai-organization:
- user-gsghk4kr5xmbjprowdzr8zt2
openai-processing-ms:
- - '1076'
+ - '1279'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -614,13 +610,13 @@ interactions:
x-ratelimit-remaining-requests:
- '3499'
x-ratelimit-remaining-tokens:
- - '89832'
+ - '89827'
x-ratelimit-reset-requests:
- 17ms
x-ratelimit-reset-tokens:
- - 112ms
+ - 115ms
x-request-id:
- - fcc155dfdde6eac2ead0dd975dc269d1
+ - 108cd79db4a91eae5537da9b33f492bc
status:
code: 200
message: OK
@@ -639,15 +635,16 @@ interactions:
below 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. list_files: List Files in Directory,
- args: \"directory\": \"<directory>\"\n4. read_file: Read file, args: \"filename\":
- \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
- \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
- get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
- Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
- list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
- Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ args: \"directory\": \"<directory>\"\n4. read_file: Read text from file, args:
+ \"filename\": \"<filename>\"\n5. read_raw_file: Read file, args: \"filename\":
+ \"<filename>\"\n6. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\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>\"\n12. task_complete: Task Complete (Shutdown), args:
+ \"prompt\": \"<prompt>\"\n13. task_complete: Task Complete (Shutdown), 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.
@@ -671,40 +668,35 @@ interactions:
\"I should start by reading the instructions_1.txt file using the read_file
command.\",\n \"reasoning\": \"The first step is to understand the instructions
and what is required of me.\",\n \"plan\": \"- Use the read_file command
- to read the instructions_1.txt file\\n- Analyze the instructions and determine
- the next steps\",\n \"criticism\": \"I need to ensure that I fully understand
- the instructions before proceeding to the next steps.\",\n \"speak\":
+ to read the instructions_1.txt file.\",\n \"criticism\": \"I need to
+ ensure that I understand the instructions before proceeding.\",\n \"speak\":
\"I will start by reading the instructions file.\"\n },\n \"command\":
{\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
\"instructions_1.txt\"\n }\n }\n}"}, {"role": "system", "content":
"Command read_file returned: This task_id is 2314\nRead the file instructions_2.txt"},
{"role": "user", "content": "Determine which next command to use, and respond
using the format specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\":
- {\n \"text\": \"The next instruction is to read the instructions_2.txt
- file using the read_file command.\",\n \"reasoning\": \"I need to follow
- the instructions in the order they are given to ensure that I do not miss any
- important steps.\",\n \"plan\": \"- Use the read_file command to read
- the instructions_2.txt file\\n- Analyze the instructions and determine the next
- steps\",\n \"criticism\": \"I need to ensure that I fully understand
- the instructions before proceeding to the next steps.\",\n \"speak\":
- \"I will now read the instructions_2 file.\"\n },\n \"command\": {\n \"name\":
- \"read_file\",\n \"args\": {\n \"filename\": \"instructions_2.txt\"\n }\n }\n}"},
- {"role": "system", "content": "Command read_file returned: Read the file instructions_3.txt"},
+ {\n \"text\": \"I need to read the instructions_2.txt file using the
+ read_file command.\",\n \"reasoning\": \"The instructions_2.txt file
+ contains further instructions that I need to follow.\",\n \"plan\": \"-
+ Use the read_file command to read the instructions_2.txt file.\",\n \"criticism\":
+ \"I need to ensure that I understand the instructions before proceeding.\",\n \"speak\":
+ \"I will read the instructions_2.txt file using the read_file command.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_2.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Read the file instructions_3.txt"}, {"role": "user",
+ "content": "Determine which next command to use, and respond using the format
+ specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":
+ \"I need to read the instructions_3.txt file using the read_file command.\",\n \"reasoning\":
+ \"The instructions_3.txt file contains further instructions that I need to follow.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_3.txt file.\",\n \"criticism\":
+ \"I need to ensure that I understand the instructions before proceeding.\",\n \"speak\":
+ \"I will read the instructions_3.txt file using the read_file command.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_3.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Write the task_id into the file output.txt\nShutdown"},
{"role": "user", "content": "Determine which next command to use, and respond
- using the format specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\":
- {\n \"text\": \"The next instruction is to read the instructions_3.txt
- file using the read_file command.\",\n \"reasoning\": \"I need to follow
- the instructions in the order they are given to ensure that I do not miss any
- important steps.\",\n \"plan\": \"- Use the read_file command to read
- the instructions_3.txt file\\n- Analyze the instructions and determine the next
- steps\",\n \"criticism\": \"I need to ensure that I fully understand
- the instructions before proceeding to the next steps.\",\n \"speak\":
- \"I will now read the instructions_3 file.\"\n },\n \"command\": {\n \"name\":
- \"read_file\",\n \"args\": {\n \"filename\": \"instructions_3.txt\"\n }\n }\n}"},
- {"role": "system", "content": "Command read_file returned: Write the task_id
- into the file output.txt\nShutdown"}, {"role": "user", "content": "Determine
- which next command to use, and respond using the format specified above:"}],
- "temperature": 0, "max_tokens": 0}'
+ using the format specified above:"}], "temperature": 0, "max_tokens": 0}'
headers:
Accept:
- '*/*'
@@ -713,7 +705,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '6486'
+ - '6279'
Content-Type:
- application/json
method: POST
@@ -721,20 +713,19 @@ interactions:
response:
body:
string: !!binary |
- H4sIAAAAAAAAA5SSQWvbQBCF7/0Vy5zXRqqdxOgYSCANlLq00FIFs1lNpK1XM8ruqHYx+u9Fll0n
- CqX4+mbnvW+WtwNXQAa2MmLrxk+ubuP98uO1XV5fLdf+2423n79/ev71fP+hwt+ggR9/opXDxtRy
- 3XgUxwQabEAjWECWXi7mSbpI07mGmgv0kEHZyGQ2vZhIGx55ksySFDS00ZQI2Q6awHUjK+E1UoQs
- nS0SDSfz0+Ay0SAsxp+ki3nSabAVO4sRsh87qDEejQN7hAxMjC6KIekxmQSpP2GXk1JK5SAVt2Ul
- MYdMHcTDALfSizl8qVARbkU5ihJa22MpF5Ww2gQnqKRCJSauV65QjoT3ArfStDKVragn51G10VG5
- n+yXVsKrvW65rg0V0xz0y/iAJjI5KgeGO0WIxZmRJv5FxjcBjTc0eE/U14j/JjsvdJRigxNnXazH
- ZyDFNvSWRtTdC3/LIaCV/+aMz4kNmvUxZOO8V8SbM7inOQx2nT5W43D/m2aQqXFIevVfIyATynGp
- hkH/9mRxwni1P+7g+1k6PxLuKQ+wOXXQaXhy5GK1GkoDGUThBjQ4KnALWdI9dO/+AAAA//8DAHME
- PM3uAwAA
+ H4sIAAAAAAAAA6yST2vcMBDF7/0UYs7yYtcbJ9G9lIUWAt0W2joYrTyxlZUlVxonC4u/e/GfxYlL
+ D6G9vqeZ95P0zqBLEKBqSappTXT98cdeffpw/G4Od9nTgT7ffdmfnh53WWy+3QIHd3hERfPERrmm
+ NUjaWeCgPErCEkSS3WyTm/T2OuPQuBINCKhaitLNVUSdP7goTuMEOHRBVgjiDK13TUsFuSPaACJJ
+ twmHZfliZCkHciTNIl3F256Dqp1WGED8PEOD4bLYO4MgQIagA0lLA6azhHa4wjm3jDGWA9Wuq2oK
+ OQg2i7OBJxrEHHbMIpaMHHv2mpBRjYxkOBa6ZNqSGwXXUdvRhk7EHrRB1gVtq9EZhwpyxagr1zTS
+ lpsc+Ms0jzI4q201Re5rZNoG8p0aHiEwj7867ZE1+DaOdU5rpJ0iIvY14N8B/y1GeU1a6dCsXxBt
+ 6PywUxLbvQhQzntU9Oag0KI8XkKetTH/94+mqJ5f2jI7f5TFygYnilebVrDSV+ueTcZwdlmxYL6a
+ X9fyfZpsL4Qj5Qyb2x56Dg/a6lAXU7FAQCDXAgdtSzyBiPv7/t1vAAAA//8DALNiCnsBBAAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- - 7c6e732188531ca8-SOF
+ - 7c7e447bcfeb3132-SOF
Cache-Control:
- no-cache, must-revalidate
Connection:
@@ -744,7 +735,7 @@ interactions:
Content-Type:
- application/json
Date:
- - Sat, 13 May 2023 22:48:45 GMT
+ - Mon, 15 May 2023 20:53:07 GMT
Server:
- cloudflare
access-control-allow-origin:
@@ -756,7 +747,7 @@ interactions:
openai-organization:
- user-gsghk4kr5xmbjprowdzr8zt2
openai-processing-ms:
- - '10828'
+ - '10958'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -768,13 +759,13 @@ interactions:
x-ratelimit-remaining-requests:
- '3499'
x-ratelimit-remaining-tokens:
- - '86455'
+ - '86469'
x-ratelimit-reset-requests:
- 17ms
x-ratelimit-reset-tokens:
- - 2.362s
+ - 2.354s
x-request-id:
- - 75d8adb85d3b410b0713cc5013917627
+ - 27a8792867dc32731b494d23250a8aec
status:
code: 200
message: OK
@@ -805,16 +796,16 @@ interactions:
response:
body:
string: !!binary |
- H4sIAAAAAAAAA0SPTUvDQBRF9/6K4a4nJemXYXZuilKwbkREpEwnz2Q0My/mvaKl9L9LRen2wD2c
- e0Rs4BA6ryENfXG9kjV9zm6f1vOHepPKR76Pbb3abJ6pjbDg3TsF/VtMAqehJ42cYRFG8koNXLWs
- 52VVV9PaInFDPRzaQYvZZFHoftxxUc7KChZ78S3BHTGMnAbdKn9QFrhqurS4uC98YaGsvr+QeXWy
- CB3HQAL3ckQi+beO3BMcvEgU9VnPjZyV8rn/Row3chClZM2dGSn4vjfaeTWZtYu5NZm+TOfFdH4Y
- KFNjJOZAJh3M79XIeYKTxVvMUbrtSF44w0GUB1jE3NA3XHl6PV39AAAA//8DAHlgRXBmAQAA
+ H4sIAAAAAAAAA0SPTUsDMRRF9/6KcNeZ0rHf2SmCWHBTKoIiJc08m+jkg3mv2lLmv0tF6fbAPZx7
+ Qmhg4LwVF0tbze5f1mV2eAzxdtktj9PV13h1mKyX5flpdgeNvP0gJ3+LgcuxtCQhJ2i4jqxQA1NP
+ 5+N6PlrMFxoxN9TCYFekGg0mley7ba6Go2ENjT3bHcGcULoci2wkf1JimPp6qnFxX/hEQ7LY9kLG
+ da/hfA6OGOb1hEj8b+1ySzCwzIHFJjk35iSUzv03rKziIwtFrR5UR862rRJvRaUsPqSdSvStvGXl
+ bSmUqFEckiMVj+r3ashpgF7jPaTAftOR5ZxgwJILNEJq6AAz7N/6qx8AAAD//wMAecEeqGYBAAA=
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- - 7c6e73737ca71ca8-SOF
+ - 7c7e44cdfcc83132-SOF
Cache-Control:
- no-cache, must-revalidate
Connection:
@@ -824,7 +815,7 @@ interactions:
Content-Type:
- application/json
Date:
- - Sat, 13 May 2023 22:48:49 GMT
+ - Mon, 15 May 2023 20:53:10 GMT
Server:
- cloudflare
access-control-allow-origin:
@@ -836,7 +827,7 @@ interactions:
openai-organization:
- user-gsghk4kr5xmbjprowdzr8zt2
openai-processing-ms:
- - '1176'
+ - '1138'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -854,7 +845,7 @@ interactions:
x-ratelimit-reset-tokens:
- 112ms
x-request-id:
- - 7c5a28d7a495d8394ae5b8e9f041be39
+ - f0b536a2bcc40f0b21989941177bcbad
status:
code: 200
message: OK
@@ -873,15 +864,16 @@ interactions:
below 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. list_files: List Files in Directory,
- args: \"directory\": \"<directory>\"\n4. read_file: Read file, args: \"filename\":
- \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
- \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
- get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
- Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
- list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
- Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ args: \"directory\": \"<directory>\"\n4. read_file: Read text from file, args:
+ \"filename\": \"<filename>\"\n5. read_raw_file: Read file, args: \"filename\":
+ \"<filename>\"\n6. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\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>\"\n12. task_complete: Task Complete (Shutdown), args:
+ \"prompt\": \"<prompt>\"\n13. task_complete: Task Complete (Shutdown), 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.
@@ -905,51 +897,47 @@ interactions:
\"I should start by reading the instructions_1.txt file using the read_file
command.\",\n \"reasoning\": \"The first step is to understand the instructions
and what is required of me.\",\n \"plan\": \"- Use the read_file command
- to read the instructions_1.txt file\\n- Analyze the instructions and determine
- the next steps\",\n \"criticism\": \"I need to ensure that I fully understand
- the instructions before proceeding to the next steps.\",\n \"speak\":
+ to read the instructions_1.txt file.\",\n \"criticism\": \"I need to
+ ensure that I understand the instructions before proceeding.\",\n \"speak\":
\"I will start by reading the instructions file.\"\n },\n \"command\":
{\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
\"instructions_1.txt\"\n }\n }\n}"}, {"role": "system", "content":
"Command read_file returned: This task_id is 2314\nRead the file instructions_2.txt"},
{"role": "user", "content": "Determine which next command to use, and respond
using the format specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\":
- {\n \"text\": \"The next instruction is to read the instructions_2.txt
- file using the read_file command.\",\n \"reasoning\": \"I need to follow
- the instructions in the order they are given to ensure that I do not miss any
- important steps.\",\n \"plan\": \"- Use the read_file command to read
- the instructions_2.txt file\\n- Analyze the instructions and determine the next
- steps\",\n \"criticism\": \"I need to ensure that I fully understand
- the instructions before proceeding to the next steps.\",\n \"speak\":
- \"I will now read the instructions_2 file.\"\n },\n \"command\": {\n \"name\":
- \"read_file\",\n \"args\": {\n \"filename\": \"instructions_2.txt\"\n }\n }\n}"},
- {"role": "system", "content": "Command read_file returned: Read the file instructions_3.txt"},
+ {\n \"text\": \"I need to read the instructions_2.txt file using the
+ read_file command.\",\n \"reasoning\": \"The instructions_2.txt file
+ contains further instructions that I need to follow.\",\n \"plan\": \"-
+ Use the read_file command to read the instructions_2.txt file.\",\n \"criticism\":
+ \"I need to ensure that I understand the instructions before proceeding.\",\n \"speak\":
+ \"I will read the instructions_2.txt file using the read_file command.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_2.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Read the file instructions_3.txt"}, {"role": "user",
+ "content": "Determine which next command to use, and respond using the format
+ specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":
+ \"I need to read the instructions_3.txt file using the read_file command.\",\n \"reasoning\":
+ \"The instructions_3.txt file contains further instructions that I need to follow.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_3.txt file.\",\n \"criticism\":
+ \"I need to ensure that I understand the instructions before proceeding.\",\n \"speak\":
+ \"I will read the instructions_3.txt file using the read_file command.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_3.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Write the task_id into the file output.txt\nShutdown"},
{"role": "user", "content": "Determine which next command to use, and respond
using the format specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\":
- {\n \"text\": \"The next instruction is to read the instructions_3.txt
- file using the read_file command.\",\n \"reasoning\": \"I need to follow
- the instructions in the order they are given to ensure that I do not miss any
- important steps.\",\n \"plan\": \"- Use the read_file command to read
- the instructions_3.txt file\\n- Analyze the instructions and determine the next
- steps\",\n \"criticism\": \"I need to ensure that I fully understand
- the instructions before proceeding to the next steps.\",\n \"speak\":
- \"I will now read the instructions_3 file.\"\n },\n \"command\": {\n \"name\":
- \"read_file\",\n \"args\": {\n \"filename\": \"instructions_3.txt\"\n }\n }\n}"},
- {"role": "system", "content": "Command read_file returned: Write the task_id
- into the file output.txt\nShutdown"}, {"role": "user", "content": "Determine
- which next command to use, and respond using the format specified above:"},
- {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":
- \"The next instruction is to write the task_id into the output.txt file using
- the write_to_file command.\",\n \"reasoning\": \"I need to write the
- task_id into the output.txt file as instructed.\",\n \"plan\": \"- Use
- the write_to_file command to write the task_id into the output.txt file\",\n \"criticism\":
+ {\n \"text\": \"I need to write the task_id into the output.txt file
+ using the write_to_file command.\",\n \"reasoning\": \"The instructions
+ require me to write the task_id into the output.txt file.\",\n \"plan\":
+ \"- Use the write_to_file command to write the task_id into the output.txt file.\",\n \"criticism\":
\"I need to ensure that I write the correct task_id into the output.txt file.\",\n \"speak\":
- \"I will now write the task_id into the output.txt file.\"\n },\n \"command\":
- {\n \"name\": \"write_to_file\",\n \"args\": {\n \"filename\":
- \"output.txt\",\n \"text\": \"2314\"\n }\n }\n}"}, {"role":
- "system", "content": "Command write_to_file returned: File written to successfully."},
- {"role": "user", "content": "Determine which next command to use, and respond
- using the format specified above:"}], "temperature": 0, "max_tokens": 0}'
+ \"I will write the task_id into the output.txt file using the write_to_file
+ command.\"\n },\n \"command\": {\n \"name\": \"write_to_file\",\n \"args\":
+ {\n \"filename\": \"output.txt\",\n \"text\": \"2314\"\n }\n }\n}"},
+ {"role": "system", "content": "Command write_to_file returned: File written
+ to successfully."}, {"role": "user", "content": "Determine which next command
+ to use, and respond using the format specified above:"}], "temperature": 0,
+ "max_tokens": 0}'
headers:
Accept:
- '*/*'
@@ -958,7 +946,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '7450'
+ - '7262'
Content-Type:
- application/json
method: POST
@@ -966,20 +954,20 @@ interactions:
response:
body:
string: !!binary |
- H4sIAAAAAAAAA3ySTW/aQBCG7/0VozkbhCEQ4huHpkKRekmjHuoKLeuxvWW9a+2MQyrk/175A0jp
- x3V293mf1+MTmgwT1KUSXdV2cv/IT/nnTShW4XFzXJpP86/PH/0L19uneoMR+v0P0jK+mGpf1ZbE
- eIcR6kBKKMMkXq3vZvE6nj9EWPmMLCZY1DJZTJcTacLeT2aLWYwRNqwKwuSEdfBVLTvxB3KMSbxc
- zyO8wq8Hi7sIxYuy19F9vGoj1KU3mhiTbyesiM/g4C1hgorZsCgnnaZ3Qq6rcEodAECKUvqmKIVT
- TGAcjgf0Jt0wxS8lBQIVCJyHvAlSUgDjWEKjO0UG40BKgtxY4ilsgUvf2Ay4bAQyf3TQsHFFf0cU
- H3ZjPQLtq0q5bJpi9D47kGLvjCsGgWfjNHWv/68R/S1ZPGjvmMIrQSD2TdDEt3m1VW6ImsAL079F
- O9yFfQPRwYjRhquBtAVH1D8gx03ooEpgC6V67XE9NwNl7SWOYU+5D9RHSPfFuphbWa5JHc4ZR2Mt
- OH+8Wk1THG630XnHo/wfK3aqogH0W9mbPBWK27/j/ZYGwKar0Ve4VuNGa2LOG2t/Xqx6s1EwdS22
- EebGGS53Aw4TZPE1RmhcRm+YzNrv7YdfAAAA//8DAIvSo2SrAwAA
+ H4sIAAAAAAAAA5ySy27bQAxF9/2KAddjw4YfibXLqnBRtCjaAEWqwBiPKGni0VAZUnEKQ/9eyJZj
+ x23Rx5YE7z2X5A5cBgnY0oitaj+4env35TF/WnwkfKintx8+bT6/n83ePU3vljdfQQOtH9BKPzG0
+ VNUexVEADTaiEcwgGc+vp+PryWIx0lBRhh4SKGoZTIazgTRxTYPRZDQGDQ2bAiHZQR2pqmUltMHA
+ kIxn07mGk/hZY6xBSIw/leaLq1aDLclZZEi+7aBCPgpH8ggJGGbHYoJ0mBQEQxdhlwallEpBSmqK
+ UjiFRPXFvoHP0hVTWKrSPKHqmTBTxnslJSoxvGEV8bFxETNFuapwqJaKS2p8pgJtFZeNqIy2QTXs
+ QvEytjqqdbKVCdkwBX1uH9EwBReKVww5eU/bMwQXWGJju02xMiH7W8oLt9qbcDAaqFvG32MqoVOm
+ SxUbnTjruDoyB8T9BAZuYqdqRP1hm2vMKeLeQ7qF/cqHazSb/7zN1nn/z5c5mLf6+DR956efCabC
+ A9crpQt8E4vLdzu/+UHgpsuxz3DKxo21yJw33n9/odqT9YBpaKHVkLvguFwd5CABFqpBgwsZPkMy
+ au/bNz8AAAD//wMAqcemK/wDAAA=
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- - 7c6e737d1e1e1ca8-SOF
+ - 7c7e44d668223132-SOF
Cache-Control:
- no-cache, must-revalidate
Connection:
@@ -989,7 +977,7 @@ interactions:
Content-Type:
- application/json
Date:
- - Sat, 13 May 2023 22:48:58 GMT
+ - Mon, 15 May 2023 20:53:21 GMT
Server:
- cloudflare
access-control-allow-origin:
@@ -1001,7 +989,7 @@ interactions:
openai-organization:
- user-gsghk4kr5xmbjprowdzr8zt2
openai-processing-ms:
- - '9148'
+ - '10500'
openai-version:
- '2020-10-01'
strict-transport-security:
@@ -1013,13 +1001,1312 @@ interactions:
x-ratelimit-remaining-requests:
- '3499'
x-ratelimit-remaining-tokens:
- - '86463'
+ - '86473'
x-ratelimit-reset-requests:
- 17ms
x-ratelimit-reset-tokens:
- - 2.358s
+ - 2.35s
+ x-request-id:
+ - 3e4b1ed00d4d2de4b39db61f42246015
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
+ using the read_file method and follow the instructions in the file.\nYour decisions
+ must always be made independently without seeking user assistance. Play to your
+ strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
+ Use the command read_file to read the instructions_1.txt file\n2. Follow the
+ instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
+ limit for short term memory. Your short term memory is short, so immediately
+ save important information to files.\n2. If you are unsure how you previously
+ did something or want to recall past events, thinking about similar events will
+ help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
+ below 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. list_files: List Files in Directory,
+ args: \"directory\": \"<directory>\"\n4. read_file: Read a file, args: \"filename\":
+ \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
+ get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
+ Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
+ list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
+ Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
+ \"prompt\": \"<prompt>\"\n12. task_complete: Task Complete (Shutdown), 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 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:
+ - '3286'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA6SSTW/aQBCG7/0VoznbCMsFUt+iSJWoeomU9lJXaFiP7S3rXXd3nEAR/73aGEgL
+ FZde5+t93pnZo66wQNWSqK436WL59LhYh8/t42x3/5Wz2cPDz2yg54/5p/wZE3TrH6zk2DFRrusN
+ i3YWE1SeSbjCIpvfvZ/ni3yWJdi5ig0W2PSS5pNZKoNfu3SaTzNMcAjUMBZ77L3relmJ27ANWCzy
+ aYJvs8/xbJ4lKE7InEN3H7JDgqp1WnHA4tseOw6nsd4ZxgIpBB2ErERIZ4VtNLAvLQBAidK6oWkl
+ lFjAMXhM8FZisMQlhNYNpoIg5AXWO/BMlbYNSMugbRA/qIgaVtlEtgK1NgzioGJh32nL8NKSAI1F
+ MSO0YbC8lUmJyZ+qnik4q20zSj/dEIhmSMd5bZylonO/A21r5zuK5X8zjGVbgSDch0vh3pAdNVP4
+ EsbqaHN11Oo6slUcGIO3jJelTeHektn94qu6W0QXQMpr0UqH7nQEy/wKwDYMPjaTwBKog9oZ417+
+ dQ8gpQZPwmYHEZ/rWivNVszu0n/omTYnqRdtzH9c+2rTo9AhOT3dcZ1XP2ep45HhvPoLTPLN5auO
+ iVj71n6NeYJ4BTnylPaAhwRrbXVoV+PrYYFBXI8JalvxFovp4fvh3W8AAAD//wMAa4jrZSkEAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca981339872aa10-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 02:49:23 GMT
+ Server:
+ - cloudflare
+ access-control-allow-origin:
+ - '*'
+ alt-svc:
+ - h3=":443"; ma=86400, h3-29=":443"; ma=86400
+ openai-model:
+ - gpt-3.5-turbo-0301
+ openai-organization:
+ - significant-gravitas
+ openai-processing-ms:
+ - '12546'
+ 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.337s
+ x-request-id:
+ - 0fd7ee0fe93ef38d279da345e7367fc6
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
+ using the read_file method and follow the instructions in the file.\nYour decisions
+ must always be made independently without seeking user assistance. Play to your
+ strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
+ Use the command read_file to read the instructions_1.txt file\n2. Follow the
+ instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
+ limit for short term memory. Your short term memory is short, so immediately
+ save important information to files.\n2. If you are unsure how you previously
+ did something or want to recall past events, thinking about similar events will
+ help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
+ below 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. list_files: List Files in Directory,
+ args: \"directory\": \"<directory>\"\n4. read_file: Read a file, args: \"filename\":
+ \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
+ get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
+ Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
+ list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
+ Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
+ \"prompt\": \"<prompt>\"\n12. task_complete: Task Complete (Shutdown), 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 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 should start by reading
+ the instructions_1.txt file to determine what actions to take next.\",\n \"reasoning\":
+ \"The instructions_1.txt file contains the necessary information to determine
+ the next steps.\",\n \"plan\": \"- Use the read_file command to read
+ the instructions_1.txt file\\n- Analyze the instructions to determine the next
+ steps\",\n \"criticism\": \"I need to ensure that I am following the
+ instructions accurately and efficiently.\",\n \"speak\": \"I will start
+ by reading the instructions_1.txt file to determine the next steps.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_1.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: This task_id is 2314\r\nRead the file instructions_2.txt"},
+ {"role": "user", "content": "Determine which next command to use, and respond
+ using the format specified above:"}], "temperature": 0, "max_tokens": 0}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '4463'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA4ySQW8aMRCF7/0VozkvCLIpJHur1B4QaqVK5NJuhRzvwLqxx1t7VoEg/nvlZQkp
+ iCrXmXnvfWPPDk2FBepaiXaNHUxni+9fbx8+V3Vr5u7my4/7+bd5nt/d/XkZLTBD//ibtPSKofau
+ sSTGM2aoAymhCovx5O52kk/zySRD5yuyWOC6kUE+/DiQNjz6wSgfjTHDNqo1YbHDJnjXyFL8E3HE
+ 4n4yzfDk/VofJ0fxouypNM7zfYa69kZTxOLnDh3Fo2/wlrBAFaOJolgSpWchThvsSgYAKFFq365r
+ iSUW0Bf7Bm0kFUtc1ARMGwHDUUKrExaYCOIhkKpAanrbisuboWwEVsbSEGYQa9/aCtpI3WSSLFMP
+ tHdOcfWPTycqMXtLEkhFz4bXJ5wrcZAWVIZj58Wk02uELRhe+eBUBy4eKhIKzjD1YxuBKNTE8+DG
+ Kj5kDuDhXfhXuMqSB/CJld2+0MXc/4jOgHQwYrSJ7kA1AybqAIhjG5JYCcxAOVh5a/2z4fVlnNK6
+ DUrIbiHh02pltCEWuz3fPzakno5Rz8bad37itWMo8eC+z47X16svjo+Vo0Pwa9IZmwrr85s9NNLs
+ SX6JcoToQHqekve4z3Bl2MR6ebg3LDCKbzBDwxVtsBjtf+0//AUAAP//AwC7HghxMwQAAA==
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca981943804aa10-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 02:49:39 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:
+ - '12905'
+ 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:
+ - '86464'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.356s
+ x-request-id:
+ - a4e14f0652013c53af07d6d7cdc9463d
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
+ using the read_file method and follow the instructions in the file.\nYour decisions
+ must always be made independently without seeking user assistance. Play to your
+ strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
+ Use the command read_file to read the instructions_1.txt file\n2. Follow the
+ instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
+ limit for short term memory. Your short term memory is short, so immediately
+ save important information to files.\n2. If you are unsure how you previously
+ did something or want to recall past events, thinking about similar events will
+ help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
+ below 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. list_files: List Files in Directory,
+ args: \"directory\": \"<directory>\"\n4. read_file: Read a file, args: \"filename\":
+ \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
+ get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
+ Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
+ list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
+ Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
+ \"prompt\": \"<prompt>\"\n12. task_complete: Task Complete (Shutdown), 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 1 00:00:00 2000"}, {"role": "system", "content": "This
+ reminds you of these events from your past: \nAs 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 should start by reading the instructions_1.txt file to determine what actions
+ to take next.\",\n \"reasoning\": \"The instructions_1.txt file contains
+ the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_1.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will start by reading the instructions_1.txt file to determine the next
+ steps.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\":
+ {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"},
+ {"role": "system", "content": "Command read_file returned: This task_id is 2314\r\nRead
+ the file instructions_2.txt"}, {"role": "user", "content": "Determine which
+ next command to use, and respond using the format specified above:"}, {"role":
+ "assistant", "content": "{\n \"thoughts\": {\n \"text\": \"The next
+ instruction is to read the instructions_2.txt file. I should use the read_file
+ command to read the file.\",\n \"reasoning\": \"The instructions_2.txt
+ file contains the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_2.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will use the read_file command to read the instructions_2.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_2.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Read the file instructions_3.txt"}, {"role": "user",
+ "content": "Determine which next command to use, and respond using the format
+ specified above:"}], "temperature": 0, "max_tokens": 0}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '5544'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA4ySQY/aQAyF7/0Vls8BQbMLq9x6aCvUy1aip6ZCw8RJpkw8YcbRQlH+ezUQli2I
+ aq+233ufZ3xAU2CGulaim9aO5ovld/312/OkfNh2dr3ZTb5sn9Pl9nOl1lNM0K1/k5ZBMdauaS2J
+ cYwJak9KqMBsOnt6mKXz9Oljgo0ryGKGVSujdPw4ks6v3WiSTqJZF1RFmB2w9a5pZSVuQxwwm06f
+ 5glezC+N2SxBcaLspZQ+pn2CunZGU8Ds5wEbCmdj7yxhhioEE0SxREzHQhxXOOQMAJCj1K6ragk5
+ ZjAUhwbtJBZzXNYETDsBw0F8pyMWmADiwJMqQGp62wqrdCw7gdJYGsMCQu06W0AX6DgZJavYA+2a
+ RnHxj89RlGPylsSTCo4NVxecO3EQF1SGw9GLScfX8HswXDrfqCO4OChIyDeGaRjbCQShNlwHt1bx
+ KXMEP96Ff4crz3kEn1jZ/R+6mfsf0RWQ9kaMNqE5US2AiY4AxKHzUawEFqAaKJ217sVwdRuntO68
+ ErJ7iPhUlkYbYrH76/1DS2pzjnox1r7zE+8dQ44n9z45X9+gvjk+Vg2dgl+TrtiUr65v9tSIsxf5
+ LcoZ4ggy8OTcY59gadiEenW6N8wwiGsxQcMF7TCb9L/6D38BAAD//wMA4kH/FDQEAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca981f6cdeaaa10-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 02:49: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:
+ - significant-gravitas
+ openai-processing-ms:
+ - '13771'
+ 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:
+ - '86449'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.367s
+ x-request-id:
+ - 7274eefc2f8ca180d18d471f1f234e01
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
+ using the read_file method and follow the instructions in the file.\nYour decisions
+ must always be made independently without seeking user assistance. Play to your
+ strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
+ Use the command read_file to read the instructions_1.txt file\n2. Follow the
+ instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
+ limit for short term memory. Your short term memory is short, so immediately
+ save important information to files.\n2. If you are unsure how you previously
+ did something or want to recall past events, thinking about similar events will
+ help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
+ below 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. list_files: List Files in Directory,
+ args: \"directory\": \"<directory>\"\n4. read_file: Read a file, args: \"filename\":
+ \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
+ get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
+ Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
+ list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
+ Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
+ \"prompt\": \"<prompt>\"\n12. task_complete: Task Complete (Shutdown), 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 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 should start by reading the instructions_1.txt file to determine what actions
+ to take next.\",\n \"reasoning\": \"The instructions_1.txt file contains
+ the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_1.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will start by reading the instructions_1.txt file to determine the next
+ steps.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\":
+ {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"},
+ {"role": "system", "content": "Command read_file returned: This task_id is 2314\r\nRead
+ the file instructions_2.txt"}, {"role": "user", "content": "Determine which
+ next command to use, and respond using the format specified above:"}, {"role":
+ "assistant", "content": "{\n \"thoughts\": {\n \"text\": \"The next
+ instruction is to read the instructions_2.txt file. I should use the read_file
+ command to read the file.\",\n \"reasoning\": \"The instructions_2.txt
+ file contains the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_2.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will use the read_file command to read the instructions_2.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_2.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Read the file instructions_3.txt"}, {"role": "user",
+ "content": "Determine which next command to use, and respond using the format
+ specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":
+ \"The next instruction is to read the instructions_3.txt file. I should use
+ the read_file command to read the file.\",\n \"reasoning\": \"The instructions_3.txt
+ file contains the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_3.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will use the read_file command to read the instructions_3.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_3.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Write the task_id into the file output.txt\r\nShutdown"},
+ {"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:
+ - '6578'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA6STTWvbQBCG7/0Vw5xlY9d2bOvYFIovhdKUFqpgNquxtc1qRuyOsIPxfy+SbJQo
+ oRRynY/3fWZn9oQuxxRtYdSWlR8tN3ffomg+L37e6G3+NexunxafFvzr8xdeYYLy8IesXjrGVsrK
+ kzphTNAGMko5ptOb1fxmtpytVwmWkpPHFPeVjmbjxUjr8CCjyWwyxQTraPaE6QmrIGWlW5VH4ojp
+ dLZeJNiL94nVPEEVNb4PLZbrc4K2EGcpYvr7hCXFq3AQT5iiidFFNawNprASNyOcMgYAyFALqfeF
+ xgxTuAQvCTpqE8zwriBgOio4jhpq22CBi6ACh+CUQAsCNfFx63JwrNIGds4TSK1VrWM96hg2EAup
+ fQ517Fra5q3Kti21UpaG8/9QHWeYPCcNZKKw432P+7Z0w1wQmKoKUgVn9IVri/VP836aNzkqb7hD
+ GMGPd8w4sMkyHsH3otZcDjywtMGpsy6Wne8GmKiVJ451aPSNwgZMCTvxXg6O963Fs01GMNbWwSj5
+ J2jgaLdz1hGrfxpOGCsyj1erg/P+Xbt8/Zyd1zm5HudF59Vtsimpw3jhO6A1YT886y7R1PYSPcaL
+ /uEv+Dibzq+ELeUFNuMznhPcOXax2Ha3iClGlQoTdJzTEdPJ+f784S8AAAD//wMAkanDf3AEAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca9825e8926aa10-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 02:50:13 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:
+ - '14155'
+ 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:
+ - '86448'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.368s
+ x-request-id:
+ - 6618011a94c8d2d73f905e11279742af
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
+ using the read_file method and follow the instructions in the file.\nYour decisions
+ must always be made independently without seeking user assistance. Play to your
+ strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
+ Use the command read_file to read the instructions_1.txt file\n2. Follow the
+ instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
+ limit for short term memory. Your short term memory is short, so immediately
+ save important information to files.\n2. If you are unsure how you previously
+ did something or want to recall past events, thinking about similar events will
+ help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
+ below 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. list_files: List Files in Directory,
+ args: \"directory\": \"<directory>\"\n4. read_file: Read a file, args: \"filename\":
+ \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
+ get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
+ Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
+ list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
+ Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
+ \"prompt\": \"<prompt>\"\n12. task_complete: Task Complete (Shutdown), 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 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 should start by reading the instructions_1.txt file to determine what actions
+ to take next.\",\n \"reasoning\": \"The instructions_1.txt file contains
+ the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_1.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will start by reading the instructions_1.txt file to determine the next
+ steps.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\":
+ {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"},
+ {"role": "system", "content": "Command read_file returned: This task_id is 2314\r\nRead
+ the file instructions_2.txt"}, {"role": "user", "content": "Determine which
+ next command to use, and respond using the format specified above:"}, {"role":
+ "assistant", "content": "{\n \"thoughts\": {\n \"text\": \"The next
+ instruction is to read the instructions_2.txt file. I should use the read_file
+ command to read the file.\",\n \"reasoning\": \"The instructions_2.txt
+ file contains the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_2.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will use the read_file command to read the instructions_2.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_2.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Read the file instructions_3.txt"}, {"role": "user",
+ "content": "Determine which next command to use, and respond using the format
+ specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":
+ \"The next instruction is to read the instructions_3.txt file. I should use
+ the read_file command to read the file.\",\n \"reasoning\": \"The instructions_3.txt
+ file contains the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_3.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will use the read_file command to read the instructions_3.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_3.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Write the task_id into the file output.txt\r\nShutdown"},
+ {"role": "user", "content": "Determine which next command to use, and respond
+ using the format specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\":
+ {\n \"text\": \"The next instruction is to write the task_id into the
+ file output.txt. I should use the write_to_file command to write the task_id
+ into the file.\",\n \"reasoning\": \"The write_to_file command is the
+ appropriate command to use to write the task_id into the output.txt file.\",\n \"plan\":
+ \"- Use the write_to_file command to write the task_id into the output.txt file\\n-
+ Shutdown\",\n \"criticism\": \"I need to ensure that I am following the
+ instructions accurately and efficiently.\",\n \"speak\": \"I will use
+ the write_to_file command to write the task_id into the output.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"write_to_file\",\n \"args\": {\n \"filename\":
+ \"output.txt\",\n \"text\": \"2314\"\n }\n }\n}"}, {"role":
+ "system", "content": "Command write_to_file returned: File written to successfully."},
+ {"role": "user", "content": "Determine which next command to use, and respond
+ using the format specified above:"}], "temperature": 0, "max_tokens": 0}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '7672'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA5SSTY/aMBCG7/0VozkbRJYFqtxQ1QMnqu1WPTQV8jqTxItjp56JWITy36tAEB/d
+ Su117Hmedzw+oM0xRVNpMXXjRovV89Py03o93X/+spwli+X61T25/a/vX/18hgrDyysZGTrGJtSN
+ I7HBo0ITSQvlmCbzj4/z6eIxmSusQ04OUywbGU3Hs5G08SWMJtNJggpb1iVhesAmhrqRjYQtee4B
+ D4nCC/xyME0UShDtLqXF7KFTaKpgDTGmPw5YE5/BMTjCFDWzZdFe+pjBC/l+hEPmAQAylCq0ZSWc
+ YQpDcTigN+mLGT5XBIX12oH1LLE1fS6wDBKAq1bysPNjWAFXoXU5tEwgFYFo3m6GQQhMqGvt85ue
+ DNW1MZLm4K0vL9r3Gb26ItBNE0MTrb7FH/1/tzRO+5NgBN/+Neodw0Qr1liuT6AVeKLjffLcxp6p
+ BVagayiCc2FnfXn0XL0fgzamjVrI7aG3UVFYY8mL299H5ob09qzaWef+641PpE6dNz7c+mPhXtd0
+ ktxQ77LoWN7/levtDavTvIUzIAdujSHmonXH2S6d3ZAt8x12CgvrLVebEwlTZAkNKrQ+pzdMJ93P
+ 7sNvAAAA//8DAD5/N2e0AwAA
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca982c97d0caa10-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 02:50: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:
+ - significant-gravitas
+ openai-processing-ms:
+ - '11247'
+ 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:
+ - '86446'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.368s
+ x-request-id:
+ - 6de56a4a30bcbcde1a14399232252d53
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
+ using the read_file method and follow the instructions in the file.\nYour decisions
+ must always be made independently without seeking user assistance. Play to your
+ strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
+ Use the command read_file to read the instructions_1.txt file\n2. Follow the
+ instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
+ limit for short term memory. Your short term memory is short, so immediately
+ save important information to files.\n2. If you are unsure how you previously
+ did something or want to recall past events, thinking about similar events will
+ help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
+ below 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. list_files: List Files in Directory,
+ args: \"directory\": \"<directory>\"\n4. read_file: Read a file, args: \"filename\":
+ \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
+ get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
+ Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
+ list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
+ Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
+ \"prompt\": \"<prompt>\"\n12. task_complete: Task Complete (Shutdown), 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 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 should start by reading
+ the instructions_1.txt file to determine what actions to take next.\",\n \"reasoning\":
+ \"The instructions_1.txt file contains the necessary information to determine
+ the next steps.\",\n \"plan\": \"- Use the read_file command to read
+ the instructions_1.txt file\\n- Analyze the instructions to determine the next
+ steps\",\n \"criticism\": \"I need to ensure that I am following the
+ instructions accurately and efficiently.\",\n \"speak\": \"I will start
+ by reading the instructions_1.txt file to determine the next steps.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_1.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: This task_id is 2314\nRead the file instructions_2.txt"},
+ {"role": "user", "content": "Determine which next command to use, and respond
+ using the format specified above:"}], "temperature": 0, "max_tokens": 0}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '4461'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA5SSQW/bMAyF7/sVBM920MyZs/lWbJcARU/rNmAeAlWmba0SZUg06izIfx8cJ02X
+ IMN2Jfn4Pkpvi6bCAnWrRLvOpsvVw7e7sPT37vaTltBk8Us1tJvuq/14f4cJ+sefpOWgmGnvOkti
+ PGOCOpASqrCY5+8X+WKeL7IEna/IYoFNJ2k2e5dKHx59epPdzDHBPqqGsNhiF7zrZC3+iThi8SFf
+ Jnja/VKf53mC4kXZU2meZbsEdeuNpojF9y06ise9wVvCAlWMJopiGSk9C/F4wbZkAIASpfV900os
+ sYBD8dCgQcZiiZ9bAqZBwHCU0OsRC0wE8RBIVSAtvW7F9duZDAK1sTSDFTwba6GPtJ8bBeuxA9o7
+ p7j6Y8teUmLymiOQip4NNyeYK2YwnqcMx/0uJj2+RdiA4doHp/bY4qEioeAM02FsEIhCXTw37qzi
+ yTOFh3/Cv8JVlpzCLSu7+UUXc38jOgPSwYjRJrqJagVMtAcgjn0YxUpgBcpB7a31z4abSzuldR+U
+ kN3AiE91bbQhFrs5vz92pJ6OVv/xideiUOK0fZccs3dQX0SPlaPJ+MXpjE2F5jyxU2OcPckvUY4Q
+ e5ADT8k73CVYGzaxXU95wwKj+A4TNFzRgMXN7sfuzW8AAAD//wMANnJsjjEEAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca9e9fcfc39463e-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 04:00: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:
+ - significant-gravitas
+ openai-processing-ms:
+ - '13391'
+ 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:
+ - '86465'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.356s
+ x-request-id:
+ - 4f791abbc43d82448ee903e7f4248a39
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
+ using the read_file method and follow the instructions in the file.\nYour decisions
+ must always be made independently without seeking user assistance. Play to your
+ strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
+ Use the command read_file to read the instructions_1.txt file\n2. Follow the
+ instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
+ limit for short term memory. Your short term memory is short, so immediately
+ save important information to files.\n2. If you are unsure how you previously
+ did something or want to recall past events, thinking about similar events will
+ help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
+ below 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. list_files: List Files in Directory,
+ args: \"directory\": \"<directory>\"\n4. read_file: Read a file, args: \"filename\":
+ \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
+ get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
+ Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
+ list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
+ Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
+ \"prompt\": \"<prompt>\"\n12. task_complete: Task Complete (Shutdown), 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 1 00:00:00 2000"}, {"role": "system", "content": "This
+ reminds you of these events from your past: \nAs 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 should start by reading the instructions_1.txt file to determine what actions
+ to take next.\",\n \"reasoning\": \"The instructions_1.txt file contains
+ the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_1.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will start by reading the instructions_1.txt file to determine the next
+ steps.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\":
+ {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"},
+ {"role": "system", "content": "Command read_file returned: This task_id is 2314\nRead
+ the file instructions_2.txt"}, {"role": "user", "content": "Determine which
+ next command to use, and respond using the format specified above:"}, {"role":
+ "assistant", "content": "{\n \"thoughts\": {\n \"text\": \"The next
+ instruction is to read the instructions_2.txt file. I will use the read_file
+ command to read the file.\",\n \"reasoning\": \"The instructions_2.txt
+ file contains the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_2.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will use the read_file command to read the instructions_2.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_2.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Read the file instructions_3.txt"}, {"role": "user",
+ "content": "Determine which next command to use, and respond using the format
+ specified above:"}], "temperature": 0, "max_tokens": 0}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '5540'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA5SST4/aQAzF7/0Uls8JArFkaW5VT9yqqlT9kwoNEyeZ3YknmnF2YVG+e5UQli2I
+ qr3afn4/z7wDmhxT1JUSXTc2vl+tv22n+8/7XZt8elotlz+eHpbq49eX+fd1iRG67QNpGRUT7erG
+ khjHGKH2pIRyTGfJ8i65myWL9xHWLieLKZaNxPPJIpbWb108nU9nGGEbVEmYHrDxrm5kI+6ROGA6
+ my3vIzwvPzeSJEJxouy5NF/Muwh15YymgOnPA9YUTou9s4QpqhBMEMXSYzoW4v6EQ8YAABlK5dqy
+ kpBhCmNxbNBO+mKGXyoCpp2A4SC+1T0WmADiwJPKQSp62wqb+UR2AoWxNIEVPBtroQ00zPWCTd8B
+ 7epacf7HlkGSYfSWw5MKjg2XZ5gbZtCfpwyHYReT7t/C78Fw4XytBmxxkJOQrw3TOLYTCEJNuDRu
+ rOKjZwzrf8K/wZVlHMMHVnb/QldzfyO6ANLeiNEm1EeqFTDRAEAcWt+LlcAKVA2Fs9Y9Gy6v7ZTW
+ rVdCdg89PhWF0YZY7P7y/tCQejxZ/ccn3opChsftXXTK3qi+ih6rmo7Gr04XbMqXl4k9NvrZs/wa
+ 5QQxgIw8GXfYRVgYNqHaHPOGKQZxDUZoOKcdptPuV/fuNwAAAP//AwDgiGKHMgQAAA==
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca9ea62ecef463e-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 04:01:12 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:
+ - '13317'
+ 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:
+ - '86449'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.367s
+ x-request-id:
+ - e3d967a8e255d8ef5adbe659cf7eb379
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
+ using the read_file method and follow the instructions in the file.\nYour decisions
+ must always be made independently without seeking user assistance. Play to your
+ strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
+ Use the command read_file to read the instructions_1.txt file\n2. Follow the
+ instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
+ limit for short term memory. Your short term memory is short, so immediately
+ save important information to files.\n2. If you are unsure how you previously
+ did something or want to recall past events, thinking about similar events will
+ help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
+ below 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. list_files: List Files in Directory,
+ args: \"directory\": \"<directory>\"\n4. read_file: Read a file, args: \"filename\":
+ \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
+ get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
+ Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
+ list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
+ Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
+ \"prompt\": \"<prompt>\"\n12. task_complete: Task Complete (Shutdown), 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 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 should start by reading the instructions_1.txt file to determine what actions
+ to take next.\",\n \"reasoning\": \"The instructions_1.txt file contains
+ the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_1.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will start by reading the instructions_1.txt file to determine the next
+ steps.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\":
+ {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"},
+ {"role": "system", "content": "Command read_file returned: This task_id is 2314\nRead
+ the file instructions_2.txt"}, {"role": "user", "content": "Determine which
+ next command to use, and respond using the format specified above:"}, {"role":
+ "assistant", "content": "{\n \"thoughts\": {\n \"text\": \"The next
+ instruction is to read the instructions_2.txt file. I will use the read_file
+ command to read the file.\",\n \"reasoning\": \"The instructions_2.txt
+ file contains the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_2.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will use the read_file command to read the instructions_2.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_2.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Read the file instructions_3.txt"}, {"role": "user",
+ "content": "Determine which next command to use, and respond using the format
+ specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":
+ \"The next instruction is to read the instructions_3.txt file. I will use the
+ read_file command to read the file.\",\n \"reasoning\": \"The instructions_3.txt
+ file contains the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_3.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will use the read_file command to read the instructions_3.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_3.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Write the task_id into the file output.txt\nShutdown"},
+ {"role": "user", "content": "Determine which next command to use, and respond
+ using the format specified above:"}], "temperature": 0, "max_tokens": 0}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '6570'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA6SSTY/TQAyG7/wKy+dp1dJPcl1AqtgTSyUEQdV04k2GJuPRjMNWqvLfUZJWod0V
+ Au3VHr/PY41PaDNM0BRaTOXL0Wqz/Ro+fFse7vaftx+PD2X+Kd4/vL+/q+nXChXy/icZOU+MDVe+
+ JLHsUKEJpIUyTKbL9Xw5ny5XC4UVZ1RigrmX0Wy8GEkd9jyazCZTVFhHnRMmJ/SBKy874QO5iMl0
+ 9m6hcAgfGuuFQmHR5VBarCeNQlOwNRQx+X7CiuIlOHBJmKCO0UbRTlpNdkKuXeGUOgCAFKXgOi8k
+ ppjAuXhu0FHaYopfCgJHRwHrooTatFpgIwjDU7BCIAWB6HjY2QysE+4Kj7Yk4Fp8LWM5yhg28GTL
+ EurYD3SjO+Fd99BwVWmX/UPmOEX1p2cgHdlZlw+yL0e3xgWB9j6wD1bLFbXT+it82OVFD19q1yuM
+ YPuKHW8wNxQTrFhjY9WjNuCIukRysQ5tpBbYgK46hHV5l2k4BDLy3ztFT/pwIb36957DelajLsd4
+ znl2i05X1GtccW9sdchvz7hvtG+HiEHjav726t/OpvOLYWd5lk1dg43CR+tsLHb99WGCUdijQusy
+ OmIyaX40b34DAAD//wMATFQWamAEAAA=
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca9eac7ae9d463e-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 04:01:31 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:
+ - '15965'
+ 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:
+ - '86449'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.366s
+ x-request-id:
+ - 57af6ca12656ff7b06640897bf5fa81a
+ status:
+ code: 200
+ message: OK
+- request:
+ body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
+ are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
+ using the read_file method and follow the instructions in the file.\nYour decisions
+ must always be made independently without seeking user assistance. Play to your
+ strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
+ Use the command read_file to read the instructions_1.txt file\n2. Follow the
+ instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
+ limit for short term memory. Your short term memory is short, so immediately
+ save important information to files.\n2. If you are unsure how you previously
+ did something or want to recall past events, thinking about similar events will
+ help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
+ below 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. list_files: List Files in Directory,
+ args: \"directory\": \"<directory>\"\n4. read_file: Read a file, args: \"filename\":
+ \"<filename>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
+ \"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
+ get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
+ Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
+ list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
+ Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
+ Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
+ \"prompt\": \"<prompt>\"\n12. task_complete: Task Complete (Shutdown), 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 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 should start by reading the instructions_1.txt file to determine what actions
+ to take next.\",\n \"reasoning\": \"The instructions_1.txt file contains
+ the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_1.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will start by reading the instructions_1.txt file to determine the next
+ steps.\"\n },\n \"command\": {\n \"name\": \"read_file\",\n \"args\":
+ {\n \"filename\": \"instructions_1.txt\"\n }\n }\n}"},
+ {"role": "system", "content": "Command read_file returned: This task_id is 2314\nRead
+ the file instructions_2.txt"}, {"role": "user", "content": "Determine which
+ next command to use, and respond using the format specified above:"}, {"role":
+ "assistant", "content": "{\n \"thoughts\": {\n \"text\": \"The next
+ instruction is to read the instructions_2.txt file. I will use the read_file
+ command to read the file.\",\n \"reasoning\": \"The instructions_2.txt
+ file contains the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_2.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will use the read_file command to read the instructions_2.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_2.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Read the file instructions_3.txt"}, {"role": "user",
+ "content": "Determine which next command to use, and respond using the format
+ specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":
+ \"The next instruction is to read the instructions_3.txt file. I will use the
+ read_file command to read the file.\",\n \"reasoning\": \"The instructions_3.txt
+ file contains the necessary information to determine the next steps.\",\n \"plan\":
+ \"- Use the read_file command to read the instructions_3.txt file\\n- Analyze
+ the instructions to determine the next steps\",\n \"criticism\": \"I
+ need to ensure that I am following the instructions accurately and efficiently.\",\n \"speak\":
+ \"I will use the read_file command to read the instructions_3.txt file.\"\n },\n \"command\":
+ {\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
+ \"instructions_3.txt\"\n }\n }\n}"}, {"role": "system", "content":
+ "Command read_file returned: Write the task_id into the file output.txt\nShutdown"},
+ {"role": "user", "content": "Determine which next command to use, and respond
+ using the format specified above:"}, {"role": "assistant", "content": "{\n \"thoughts\":
+ {\n \"text\": \"The next instruction is to write the task_id into the
+ file output.txt. I will use the write_to_file command to write the task_id into
+ the file.\",\n \"reasoning\": \"The write_to_file command is the appropriate
+ command to use to write the task_id into the output.txt file.\",\n \"plan\":
+ \"- Use the write_to_file command to write the task_id into the output.txt file\",\n \"criticism\":
+ \"I need to ensure that I am writing the correct task_id into the output.txt
+ file.\",\n \"speak\": \"I will use the write_to_file command to write
+ the task_id into the output.txt file.\"\n },\n \"command\": {\n \"name\":
+ \"write_to_file\",\n \"args\": {\n \"filename\": \"output.txt\",\n \"text\":
+ \"2314\"\n }\n }\n}"}, {"role": "system", "content": "Command write_to_file
+ returned: File written to successfully."}, {"role": "user", "content": "Determine
+ which next command to use, and respond using the format specified above:"}],
+ "temperature": 0, "max_tokens": 0}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '7648'
+ Content-Type:
+ - application/json
+ method: POST
+ uri: https://api.openai.com/v1/chat/completions
+ response:
+ body:
+ string: !!binary |
+ H4sIAAAAAAAAA5SSW2vbQBBG3/srhnmWjR3fGr0FCsXQQCkNpKlCWK9G0tarXbEzquMa/feii+PY
+ TaF9nd0955uZPaBJMUZdKNFlZUer9d23m4fd9svtryr//HC/mU948/Faf7r/kN5ihH7zg7QML8ba
+ l5UlMd5hhDqQEkoxni7fz5fz6fJ6HmHpU7IYY17JaDZejKQOGz+azCZTjLBmlRPGB6yCLyt5Er8l
+ xy3g6irCE/x0MFtEKF6UPZVWi1UToS680cQYfz9gSXwEB28JY1TMhkU5aWN6J+TaFg6JAwBIUApf
+ 54VwgjEMxeGAnqUtJvi1IMiMUxaMYwm1bnOBYRAPXNSS+p0bwxp2xlqomUAKAlG8fRraINC+LJVL
+ z14kGL32BVLsnXH5Sfo2oxUXBKqqgq+CUef4zv93S2WV6wUjuPvXqBcMHYwYbbjsQWtwRN19clyH
+ lqkE1lConx2tw6agrO1MDErrOighu4dWRFlmtCEndg8bynygTizG5fBWC1yR2h7V/z3zntREx/0P
+ t/5Yv1Ml9ZIz6kUWFfLLn/N6mz3g5qXz0zS41pqYs9ra/UuqLtkQMHENNhFmxhkunnocxsjiK4zQ
+ uJSeMZ40j8273wAAAP//AwDMrrkmxwMAAA==
+ headers:
+ CF-Cache-Status:
+ - DYNAMIC
+ CF-RAY:
+ - 7ca9eb3e2d62463e-DFW
+ Cache-Control:
+ - no-cache, must-revalidate
+ Connection:
+ - keep-alive
+ Content-Encoding:
+ - gzip
+ Content-Type:
+ - application/json
+ Date:
+ - Sun, 21 May 2023 04:01:45 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:
+ - '11215'
+ 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:
+ - '86452'
+ x-ratelimit-reset-requests:
+ - 17ms
+ x-ratelimit-reset-tokens:
+ - 2.364s
x-request-id:
- - 700ee384862148376a49069a620d3068
+ - f275967e047717519684fa4f70a50901
status:
code: 200
message: OK
diff --git a/tests/test_text_file_parsers.py b/tests/test_text_file_parsers.py
new file mode 100644
index 0000000000..d15c63ae95
--- /dev/null
+++ b/tests/test_text_file_parsers.py
@@ -0,0 +1,152 @@
+import json
+import tempfile
+from functools import partial
+from unittest import TestCase
+from xml.etree import ElementTree
+
+import docx
+import yaml
+from bs4 import BeautifulSoup
+from PyPDF2 import PdfWriter
+
+from autogpt.commands.file_operations_utils import is_file_binary_fn, read_textual_file
+from autogpt.logs import logger
+
+plain_text_str = "Hello, world!"
+
+
+def mock_text_file():
+ with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".txt") as f:
+ f.write(plain_text_str)
+ return f.name
+
+
+def mock_csv_file():
+ with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".csv") as f:
+ f.write(plain_text_str)
+ return f.name
+
+
+def mock_pdf_file():
+ with tempfile.NamedTemporaryFile(mode="wb", delete=False, suffix=".pdf") as f:
+ # Create a new PDF and add a page with the text plain_text_str
+ # Write the PDF header
+ f.write(b"%PDF-1.7\n")
+ # Write the document catalog
+ f.write(b"1 0 obj\n")
+ f.write(b"<< /Type /Catalog /Pages 2 0 R >>\n")
+ f.write(b"endobj\n")
+ # Write the page object
+ f.write(b"2 0 obj\n")
+ f.write(
+ b"<< /Type /Page /Parent 1 0 R /Resources << /Font << /F1 3 0 R >> >> /MediaBox [0 0 612 792] /Contents 4 0 R >>\n"
+ )
+ f.write(b"endobj\n")
+ # Write the font object
+ f.write(b"3 0 obj\n")
+ f.write(
+ b"<< /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica-Bold >>\n"
+ )
+ f.write(b"endobj\n")
+ # Write the page contents object
+ f.write(b"4 0 obj\n")
+ f.write(b"<< /Length 25 >>\n")
+ f.write(b"stream\n")
+ f.write(b"BT\n/F1 12 Tf\n72 720 Td\n(Hello, world!) Tj\nET\n")
+ f.write(b"endstream\n")
+ f.write(b"endobj\n")
+ # Write the cross-reference table
+ f.write(b"xref\n")
+ f.write(b"0 5\n")
+ f.write(b"0000000000 65535 f \n")
+ f.write(b"0000000017 00000 n \n")
+ f.write(b"0000000073 00000 n \n")
+ f.write(b"0000000123 00000 n \n")
+ f.write(b"0000000271 00000 n \n")
+ f.write(b"trailer\n")
+ f.write(b"<< /Size 5 /Root 1 0 R >>\n")
+ f.write(b"startxref\n")
+ f.write(b"380\n")
+ f.write(b"%%EOF\n")
+ f.write(b"\x00")
+ return f.name
+
+
+def mock_docx_file():
+ with tempfile.NamedTemporaryFile(mode="wb", delete=False, suffix=".docx") as f:
+ document = docx.Document()
+ document.add_paragraph(plain_text_str)
+ document.save(f.name)
+ return f.name
+
+
+def mock_json_file():
+ with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".json") as f:
+ json.dump({"text": plain_text_str}, f)
+ return f.name
+
+
+def mock_xml_file():
+ root = ElementTree.Element("text")
+ root.text = plain_text_str
+ tree = ElementTree.ElementTree(root)
+ with tempfile.NamedTemporaryFile(mode="wb", delete=False, suffix=".xml") as f:
+ tree.write(f)
+ return f.name
+
+
+def mock_yaml_file():
+ with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".yaml") as f:
+ yaml.dump({"text": plain_text_str}, f)
+ return f.name
+
+
+def mock_html_file():
+ html = BeautifulSoup(
+ f"<html><head><title>This is a test</title></head><body><p>{plain_text_str}</p></body></html>",
+ "html.parser",
+ )
+ with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".html") as f:
+ f.write(str(html))
+ return f.name
+
+
+def mock_md_file():
+ with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".md") as f:
+ f.write(f"# {plain_text_str}!\n")
+ return f.name
+
+
+def mock_latex_file():
+ with tempfile.NamedTemporaryFile(mode="w", delete=False, suffix=".tex") as f:
+ latex_str = rf"\documentclass{{article}}\begin{{document}}{plain_text_str}\end{{document}}"
+ f.write(latex_str)
+ return f.name
+
+
+respective_file_creation_functions = {
+ ".txt": mock_text_file,
+ ".csv": mock_csv_file,
+ ".pdf": mock_pdf_file,
+ ".docx": mock_docx_file,
+ ".json": mock_json_file,
+ ".xml": mock_xml_file,
+ ".yaml": mock_yaml_file,
+ ".html": mock_html_file,
+ ".md": mock_md_file,
+ ".tex": mock_latex_file,
+}
+
+
+class TestConfig(TestCase):
+ def test_parsers(self):
+ binary_files_extensions = [".pdf", ".docx"]
+ for (
+ file_extension,
+ c_file_creator,
+ ) in respective_file_creation_functions.items():
+ created_filepath = c_file_creator()
+ loaded_text = read_textual_file(created_filepath, logger)
+ self.assertIn(plain_text_str, loaded_text)
+ should_be_binary = file_extension in binary_files_extensions
+ self.assertEqual(should_be_binary, is_file_binary_fn(created_filepath))