memory challenge B (#3550)

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
merwanehamadi
2023-04-29 17:44:21 -07:00
committed by GitHub
parent cdd91f7ea3
commit 6997bb0bdd
4 changed files with 870 additions and 3 deletions

View File

@@ -0,0 +1,775 @@
interactions:
- request:
body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
using the read_file method and follow the instructions in the file.\nYour decisions
must always be made independently without seeking user assistance. Play to your
strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
Use the command read_file to read the instructions_1.txt file\n2. Follow the
instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
limit for short term memory. Your short term memory is short, so immediately
save important information to files.\n2. If you are unsure how you previously
did something or want to recall past events, thinking about similar events will
help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
in double quotes e.g. \"command name\"\n\nCommands:\n1. append_to_file: Append
to file, args: \"filename\": \"<filename>\", \"text\": \"<text>\"\n2. delete_file:
Delete file, args: \"filename\": \"<filename>\"\n3. read_file: Read file, args:
\"filename\": \"<filename>\"\n4. search_files: Search Files, args: \"directory\":
\"<directory>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
\"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
\"prompt\": \"<prompt>\"\n12. Task Complete (Shutdown): \"task_complete\", args:
\"reason\": \"<reason>\"\n\nResources:\n1. Internet access for searches and
information gathering.\n2. Long Term memory management.\n3. GPT-3.5 powered
Agents for delegation of simple tasks.\n4. File output.\n\nPerformance Evaluation:\n1.
Continuously review and analyze your actions to ensure you are performing to
the best of your abilities.\n2. Constructively self-criticize your big-picture
behavior constantly.\n3. Reflect on past decisions and strategies to refine
your approach.\n4. Every command has a cost, so be smart and efficient. Aim
to complete tasks in the least number of steps.\n5. Write all code to a file.\n\nYou
should only respond in JSON format as described below \nResponse Format: \n{\n \"thoughts\":
{\n \"text\": \"thought\",\n \"reasoning\": \"reasoning\",\n \"plan\":
\"- short bulleted\\n- list that conveys\\n- long-term plan\",\n \"criticism\":
\"constructive self-criticism\",\n \"speak\": \"thoughts summary to say
to user\"\n },\n \"command\": {\n \"name\": \"command name\",\n \"args\":
{\n \"arg name\": \"value\"\n }\n }\n} \nEnsure the response
can be parsed by Python json.loads"}, {"role": "system", "content": "The current
time and date is Tue Jan 01 00:00:00 2000"}, {"role": "system", "content": "This
reminds you of these events from your past:\n\n\n"}, {"role": "user", "content":
"Determine which next command to use, and respond using the format specified
above:"}], "temperature": 0, "max_tokens": 3251}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '3383'
Content-Type:
- application/json
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
H4sIAAAAAAAAA7SSTY/aQAyG7/0Vls8BQYGFzW37cUBaqVW1aqUuFTKJk0yZj3TGKUGI/14NIWwL
0t56fe3x+7weH1DlmGJWkWSm1oP5g3v4Nv/MLX98elzO+P2nr+/axw+/SL6X95ig2/zkTM4vhpkz
tWZRzmKCmWcSzjEd3y3eLsaj6WKaoHE5a0yxrGUwGc4G0viNG4wmozEm2AQqGdMD1t6ZWtbitmwD
pvPpXYIvsy/6eDZPUJyQvkj3o8kxwaxyKuOA6fMBDYd+rHeaMUUKQQUhKxHSWWEbAxxWFgBghVK5
pqwkrDCFs3gucCtRXOESQuUanUMQ8gKbPXimXNkSpGJQNohvsoga1uOhtAKF0gziIGdhb5Rl2FUk
QF1TrAhtGSy3Mlxh8rerZwrOKlt21k+vGMQwpOK8Ks7KYnK/B2UL5w3F9n8ZurZWIAjX4dq41mQ7
zwF8YcpfzdaEPn3cxPqMYwzZ/Hpu5pWoTAXT79Iy5xGMbWh8pCKBJWTkuWi03kPhtHa7G3tQ9qSd
vMjmYJ1Azr8VCUPhnYlVc+0eaqZt77xTWv+nP+w8j0l/Vedl3ByVJcMdzmVxV8Tky+tb7Aqx9+X5
LXEPcQI586zsEY8JFsqqUK2728IUg7gaE1Q25xbT0fHH8c0fAAAA//8DACiYLFgKBAAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 7bfb47f48975968c-SJC
Cache-Control:
- no-cache, must-revalidate
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Sat, 29 Apr 2023 23:21: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:
- user-adtx4fhfg1qsiyzdoaxciooj
openai-processing-ms:
- '7598'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15724800; includeSubDomains
x-ratelimit-limit-requests:
- '3500'
x-ratelimit-limit-tokens:
- '90000'
x-ratelimit-remaining-requests:
- '3499'
x-ratelimit-remaining-tokens:
- '85995'
x-ratelimit-reset-requests:
- 17ms
x-ratelimit-reset-tokens:
- 2.67s
x-request-id:
- 7763b6b11a061097597b024900075aaf
status:
code: 200
message: OK
- request:
body: '{"input": ["[{''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\":
\"- Read the instructions_1.txt file using the read_file command.\",\\n \"criticism\":
\"I need to ensure that I carefully follow the instructions in the file and
not deviate from them.\",\\n \"speak\": \"I will start by reading the
instructions_1.txt file to determine what actions to take next.\"\\n },\\n \"command\":
{\\n \"name\": \"read_file\",\\n \"args\": {\\n \"filename\":
\"instructions_1.txt\"\\n }\\n }\\n}''}, {''role'': ''user'', ''content'':
''Determine which next command to use, and respond using the format specified
above:''}, {''role'': ''system'', ''content'': ''Command read_file returned:
nBRNtp3FaBNfBMohNkyAxrVJ7UFF0lyth8Xizm1jrCOREOGRnWWMQ6olKtKX9niq0wOBTQN62ToY4cQPiQk3YN9fFCGmxaDX9g81AsqhQnGac72QfL41SnlJvhwgAUB52zTD26FeEvvHdiQ2aNhtMT9obgHNUkONEnO41EOpNI6jdwyLGaactp9GYV1PLbaRP5b1iD9z850KeNYDX9Qwca79isJS8jhuDkf0J7ELkpOH3PkmZkg5MsOYpSTuEc99ENQ522WJzrl9oAySp6IHGiQlsMnQe40FaRAvnQtiaAE24hzkJHT3x13NPGw2ZmJ518y2BtU5x1yQwG21NycSxOBLU17RnY8h6H8L7QGatTlfXjPrA5hsupWEpUT0sSTZYSHa6p3mShARajocbNd3xKFfnUyupNMBPd0EZnMrePoAuvGaK7gDP0cxp9k63lsfzh3udQPnvgmRERQThIOrrDZhZMa4kr1vXAVu07ZuhlNNbBUqZKcHmBYiBnIcDXNUvXuzPFBh9Vowou6MBJHpiNrvKluHy7GBTp7YsEqmGv0lH8wVaWfV0yG7nzrbt7QyhdbtQ0zF2PclXB0LNxV2rRA6FsevqoexFNqSkdgauUrQPHLHhvLNes8gRGMOLAhR8irH1e2jdbLD6dyYEnDJiS9HvlxNgbb19Smlt6MNoJKEAbkSOrrcq5wmo5aho4zEKTujRHqr6feECaTPF7zj69pQCudo4LkneFVUp1UrR6yicTU8Zf9ohZLWumvMi5brH8lOJiiF94cHzesfQz8PiX5f21RwZ5fyRSk9eJhVihcTLrjOwCuryXpy8eCfk12bgcsZoJd8Uqo001XTsv2CEn59uaGn2br4CxSXJgjxKE1mO4IcPPAx3qJbVknaP0MXdOjj9S8oRjquDle4RxlVnmqsozm4oTbjtFSuKIh8g4zPzdyuVH7I71s87xWxAhcppky6GOB2i4NDz4SZI6SeG3Icpu6ZuJZGeZ6CWb61\\nThis
task_id is 1111\\nnBRNtp3FaBNfBMohNkyAxrVJ7UFF0lyth8Xizm1jrCOREOGRnWWMQ6olKtKX9niq0wOBTQN62ToY4cQPiQk3YN9fFCGmxaDX9g81AsqhQnGac72QfL41SnlJvhwgAUB52zTD26FeEvvHdiQ2aNhtMT9obgHNUkONEnO41EOpNI6jdwyLGaactp9GYV1PLbaRP5b1iD9z850KeNYDX9Qwca79isJS8jhuDkf0J7ELkpOH3PkmZkg5MsOYpSTuEc99ENQ522WJzrl9oAySp6IHGiQlsMnQe40FaRAvnQtiaAE24hzkJHT3x13NPGw2ZmJ518y2BtU5x1yQwG21NycSxOBLU17RnY8h6H8L7QGatTlfXjPrA5hsupWEpUT0sSTZYSHa6p3mShARajocbNd3xKFfnUyupNMBPd0EZnMrePoAuvGaK7gDP0cxp9k63lsfzh3udQPnvgmRERQThIOrrDZhZMa4kr1vXAVu07ZuhlNNbBUqZKcHmBYiBnIcDXNUvXuzPFBh9Vowou6MBJHpiNrvKluHy7GBTp7YsEqmGv0lH8wVaWfV0yG7nzrbt7QyhdbtQ0zF2PclXB0LNxV2rRA6FsevqoexFNqSkdgauUrQPHLHhvLNes8gRGMOLAhR8irH1e2jdbLD6dyYEnDJiS9HvlxNgbb19Smlt6MNoJKEAbkSOrrcq5wmo5aho4zEKTujRHqr6feECaTPF7zj69pQCudo4LkneFVUp1UrR6yicTU8Zf9ohZLWumvMi5brH8lOJiiF94cHzesfQz8PiX5f21RwZ5fyRSk9eJhVihcTLrjOwCuryXpy8eCfk12bgcsZoJd8Uqo001XTsv2CEn59uaGn2br4CxSXJgjxKE1mO4IcPPAx3qJbVknaP0MXdOjj9S8oRjquDle4RxlVnmqsozm4oTbjtFSuKIh8g4zPzdyuVH7I71s87xWxAhcppky6GOB2i4NDz4SZI6SeG3Icpu6ZuJZGeZ6CWb61\\nWrite
all the task_ids into the file output.txt. The file has not been created yet.
After that, use the task_complete command.\\n''}]"], "model": "text-embedding-ada-002",
"encoding_format": "base64"}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '3212'
Content-Type:
- application/json
method: POST
uri: https://api.openai.com/v1/embeddings
response:
body:
string: !!binary |
H4sIAAAAAAAAA1RXyc6rvJad36c4OtOUFCCAN/8MAgFC5ySQhNQISELoQmsDvi9f+r4rVakmHngv
WfbeWo3//a8/f/62afnKpr///PlbF+P0979+9p7JlPz9589//+vPnz9//v27/j/kq0lfz2fxzX/h
v8Xi+3wtf//5w/3vzv+B/vnzV3oPlO6TiA/H0Zt6Ge7PDjuxVaVsyMQKKlV40cPZWtFy47IVzRYt
qNGWWrlo8XNE/L260ft9e0QtdyMq+pyQEYjDhy/n4yqpEIXQY+vSAGI73uJgU3wXbGx4x13VTAcg
V9gQwUxNd0G7bgZ7Ky10r+ktYm9HElF6qPZYNctiYIsRi0jRKkpfJ6dC7FRQGe27eI/xdzyl85q0
HgSi2xChZxvWuYbggYgTjM3lkZfjzGsbZVIiwFg58iVZXvtCiZWPRb3gXejLnrQA6zCO+M5zqssF
fX6Td0+3I7KOH2ge1JgD80RlfFjBRguTBA/UVfBwYPJfxFqri9H7sEIw8udKZ+V4lcG43SOqf60D
W61jnoOPTwa1vcsnnC9ZmKCANx7Y6bKPPnMdsxV5jXfBIg53tKrvvQkJ2j6DrWZ+9bHAgoPO9+uL
mo6rpPOmy2flp44DRzXCZSoqAMN5GPgR5qM7NWlPQJWUI9aEibI53LAMevyeAt5DSUhn4lfgfulA
1Uph5aLZ5og4e9hQ56zoiCXvewy4bmTqnZ69O28f5xXeqz9Rl3aYsa2pNmBHcMDv95wP06B6MmwN
g8eJla7prLViD7/nYaxuhkk5yiKQDwqoHRjzsDTfbYESpDyDReU0tnt/ryN8fDOi1n3bsbWbawB9
rxo4NpCX7rI67KH5yjx1Y+fChLCdDbg5eY716WyGy5pEF7Qgz8X3QKiHRby4jSx48pH6tdenrLqI
HsSfSsTPq1SXB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e7EqG+y1vsW/jKxezqq3Dh3YP6Hatpv687OB42Euln
vz3N+wvbB939+YAxJ8gDZH03sXte7fh6CL8N1Lbtk55LD2XfvipNDSh5SGefV9F4ZyLNvHQFNl9D
k47DKfLgtthf0RpMLmfzeaB2VvYHagmnW/o7fwIV+km3wcaqAz1RvFZQa13MiVK9t1yav19YaynC
tq9a/Hf+WAq82EFN3q5A0paiD4F7nNjUDPbfYEyR0MBI7Qfymf0ZW/rpG+Q2krWy5Vy6FrM/5zoO
7DUJln4Ar7x+4FR7uwHXqjYHc//G+iewrTVyPQ9+izwma47ybGLkWoB2ijO65J0pfgEZgJ7d/s63
iDVmHogsHWGHBxiMk6bcYHc0X3ifqGU1Fbdogu/jJqKevzkEw3HsGqglp5ii2+EdcOf0y5f9IjNZ
p+N5fVOgQF8VETagqxq79iMIVp8dDkKz62c/LYL6KakYX0/nfvbhE+R3vMd7/8Wq7xgYByiqSo2z
Y0AA8YNXrQmO+sK2/NhYvDHe/h9fb57tIZv7x23hE+wu6zfzFFDzxkWjCPRqIsGYq0t/tXF/Digw
vIt2KNo7Ag9X6HnS1j44PJUNEtaaWTEla0Ko6+8Gb/s3B2zxGcvz9/FvH4x36ocAQkOlOIjcTKTo
MwDZc9azn22q0VfK01IPBObc5N/NcTfAQyp02OdNmU5rKZtgbEcxdi+BWYnG9vCCcrZpaDC/z6i8
LwMQJ+OF6rkehiUvdpuG0207ef1wcUYZMsmT6XaeX5xbBxEK+WjgLWEs5cPmfoPz+Qp90FPXcxhl
B5Aa2pYGQzdYbJ6n2j/LrYD//de///3fyw2Dpn3k7/liwC8ff//5f1cF/nN73P4jivJ/qPx3E4EM
tyL/57/+7yWEf75923x///Nr6/wz/PNf/5ZUqPxdOPjn1/5u7///l3/NT/zff/0fAAAA//8DAHN3
aKTnIAAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 7bfb48352f8d968c-SJC
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Sat, 29 Apr 2023 23:21:34 GMT
Server:
- cloudflare
access-control-allow-origin:
- '*'
alt-svc:
- h3=":443"; ma=86400, h3-29=":443"; ma=86400
openai-organization:
- user-adtx4fhfg1qsiyzdoaxciooj
openai-processing-ms:
- '102'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15724800; includeSubDomains
x-ratelimit-limit-requests:
- '3000'
x-ratelimit-remaining-requests:
- '2999'
x-ratelimit-reset-requests:
- 20ms
x-request-id:
- fecf22b60b7b162df4e8f245a8b6eb90
status:
code: 200
message: OK
- request:
body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
using the read_file method and follow the instructions in the file.\nYour decisions
must always be made independently without seeking user assistance. Play to your
strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
Use the command read_file to read the instructions_1.txt file\n2. Follow the
instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
limit for short term memory. Your short term memory is short, so immediately
save important information to files.\n2. If you are unsure how you previously
did something or want to recall past events, thinking about similar events will
help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
in double quotes e.g. \"command name\"\n\nCommands:\n1. append_to_file: Append
to file, args: \"filename\": \"<filename>\", \"text\": \"<text>\"\n2. delete_file:
Delete file, args: \"filename\": \"<filename>\"\n3. read_file: Read file, args:
\"filename\": \"<filename>\"\n4. search_files: Search Files, args: \"directory\":
\"<directory>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
\"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
\"prompt\": \"<prompt>\"\n12. Task Complete (Shutdown): \"task_complete\", args:
\"reason\": \"<reason>\"\n\nResources:\n1. Internet access for searches and
information gathering.\n2. Long Term memory management.\n3. GPT-3.5 powered
Agents for delegation of simple tasks.\n4. File output.\n\nPerformance Evaluation:\n1.
Continuously review and analyze your actions to ensure you are performing to
the best of your abilities.\n2. Constructively self-criticize your big-picture
behavior constantly.\n3. Reflect on past decisions and strategies to refine
your approach.\n4. Every command has a cost, so be smart and efficient. Aim
to complete tasks in the least number of steps.\n5. Write all code to a file.\n\nYou
should only respond in JSON format as described below \nResponse Format: \n{\n \"thoughts\":
{\n \"text\": \"thought\",\n \"reasoning\": \"reasoning\",\n \"plan\":
\"- short bulleted\\n- list that conveys\\n- long-term plan\",\n \"criticism\":
\"constructive self-criticism\",\n \"speak\": \"thoughts summary to say
to user\"\n },\n \"command\": {\n \"name\": \"command name\",\n \"args\":
{\n \"arg name\": \"value\"\n }\n }\n} \nEnsure the response
can be parsed by Python json.loads"}, {"role": "system", "content": "The current
time and date is Tue Jan 01 00:00:00 2000"}, {"role": "system", "content": "This
reminds you of these events from your past:\n[]\n\n"}, {"role": "user", "content":
"Determine which next command to use, and respond using the format specified
above:"}, {"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\":
\"- Read the instructions_1.txt file using the read_file command.\",\n \"criticism\":
\"I need to ensure that I carefully follow the instructions in the file and
not deviate from them.\",\n \"speak\": \"I will start by reading the
instructions_1.txt file to determine what actions to take next.\"\n },\n \"command\":
{\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
\"instructions_1.txt\"\n }\n }\n}"}, {"role": "system", "content":
"Command read_file returned: nBRNtp3FaBNfBMohNkyAxrVJ7UFF0lyth8Xizm1jrCOREOGRnWWMQ6olKtKX9niq0wOBTQN62ToY4cQPiQk3YN9fFCGm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GYV1PLbaRP5b1iD9z850KeNYDX9Qwca79isJS8jhuDkf0J7ELkpOH3PkmZkg5MsOYpSTuEc99ENQ522WJzrl9oAySp6IHGiQlsMnQe40FaRAvnQtiaAE24hzkJHT3x13NPGw2ZmJ518y2BtU5x1yQwG21NycSxOBLU17RnY8h6H8L7QGatTlfXjPrA5hsupWEpUT0sSTZYSHa6p3mShARajocbNd3xKFfnUyupNMBPd0EZnMrePoAuvGaK7gDP0cxp9k63lsfzh3udQPnvgmRERQThIOrrDZhZMa4kr1vXAVu07ZuhlNNbBUqZKcHmBYiBnIcDXNUvXuzPFBh9Vowou6MBJHpiNrvKluHy7GBTp7YsEqmGv0lH8wVaWfV0yG7nzrbt7QyhdbtQ0zF2PclXB0LNxV2rRA6FsevqoexFNqSkdgauUrQPHLHhvLNes8gRGMOLAhR8irH1e2jdbLD6dyYEnDJiS9HvlxNgbb19Smlt6MNoJKEAbkSOrrcq5wmo5aho4zEKTujRHqr6feECaTPF7zj69pQCudo4LkneFVUp1UrR6yicTU8Zf9ohZLWumvMi5brH8lOJiiF94cHzesfQz8PiX5f21RwZ5fyRSk9eJhVihcTLrjOwCuryXpy8eCfk12bgcsZoJd8Uqo001XTsv2CEn59uaGn2br4CxSXJgjxKE1mO4IcPPAx3qJbVknaP0MXdOjj9S8oRjquDle4RxlVnmqsozm4oTbjtFSuKIh8g4zPzdyuVH7I71s87xWxAhcppky6GOB2i4NDz4SZI6SeG3Icpu6ZuJZGeZ6CWb61\nWrite
all the task_ids into the file output.txt. The file has not been created yet.
After that, use the task_complete command.\n"}, {"role": "user", "content":
"Determine which next command to use, and respond using the format specified
above:"}], "temperature": 0, "max_tokens": 1597}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '6500'
Content-Type:
- application/json
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
H4sIAAAAAAAAA8STTYvbQAyG7/0VQmfbxMl2d+NbKBS2UGgp20tdwmSs2FPbGjMjN4GQ/178tfmC
7R4KPVp6pXleSzqgyTBBXSjRdVOFDyu7yj98rK1bbj5/KYvtQj6pvP7+dcvfHjBAu/lFWsaKSNu6
qUiMZQxQO1JCGSbx/eP8MZ7dLe8CrG1GFSaYNxIuovehtG5jw9liFmOArVc5YXLAxtm6kbXYkthj
Ml8s4wBPzc8SswDFiqpOoft5fAxQF9Zo8pj8OGBNfmrsbEWYoPLeeFEsHaZlIe4sHFIGAEhRCtvm
hfgUExiDY4L20gVTfAImykAsqKYhzkAKAlG+XJs+2n3aVppWItkLbE1FoAYZQ+vppB9tEWhb173E
guHMaCWdSsmLFIyHSR2lGJyTOVLesuF8wFv1UIbzt3DtTFWBqiq7g5o6UUnUgDilS7DbLnPexQ9Q
hfpNsCFiyInJdZOO4NlfPHljrX/p1pxunSOWv5psKsWDvxBWb/7t7QvUMKq12HWfGKmiNOUQnv/9
TLQzYrTx9fXKEPvWjY2eXlkgbZ0jfbE9fcW0P1N+KtsNy/XqDK4hfUOqnACHTfhfCz1gHYPpDMf6
mytkVdNAfDnQK2fK5dcXPCQ67anHydRF/fXBx3EcpylPlD3pCJzyEY8Bbg0bX6yHS8QEvdgGAzSc
0R6T2fHn8d0fAAAA//8DAHrFs+FeBQAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 7bfb48364828968c-SJC
Cache-Control:
- no-cache, must-revalidate
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Sat, 29 Apr 2023 23:21: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:
- user-adtx4fhfg1qsiyzdoaxciooj
openai-processing-ms:
- '11098'
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:
- '86907'
x-ratelimit-reset-requests:
- 17ms
x-ratelimit-reset-tokens:
- 2.062s
x-request-id:
- b8fa55724277bee4e9099b5c3f76d269
status:
code: 200
message: OK
- request:
body: '{"input": ["[{''role'': ''user'', ''content'': ''Determine which next command
to use, and respond using the format specified above:''}, {''role'': ''system'',
''content'': ''Command read_file returned: nBRNtp3FaBNfBMohNkyAxrVJ7UFF0lyth8Xizm1jrCOREOGRnWWMQ6olKtKX9niq0wOBTQN62ToY4cQPiQk3YN9fFCGmxaDX9g81AsqhQnGac72QfL41SnlJvhwgAUB52zTD26FeEvvHdiQ2aNhtMT9obgHNUkONEnO41EOpNI6jdwyLGaactp9GYV1PLbaRP5b1iD9z850KeNYDX9Qwca79isJS8jhuDkf0J7ELkpOH3PkmZkg5MsOYpSTuEc99ENQ522WJzrl9oAySp6IHGiQlsMnQe40FaRAvnQtiaAE24hzkJHT3x13NPGw2ZmJ518y2BtU5x1yQwG21NycSxOBLU17RnY8h6H8L7QGatTlfXjPrA5hsupWEpUT0sSTZYSHa6p3mShARajocbNd3xKFfnUyupNMBPd0EZnMrePoAuvGaK7gDP0cxp9k63lsfzh3udQPnvgmRERQThIOrrDZhZMa4kr1vXAVu07ZuhlNNbBUqZKcHmBYiBnIcDXNUvXuzPFBh9Vowou6MBJHpiNrvKluHy7GBTp7YsEqmGv0lH8wVaWfV0yG7nzrbt7QyhdbtQ0zF2PclXB0LNxV2rRA6FsevqoexFNqSkdgauUrQPHLHhvLNes8gRGMOLAhR8irH1e2jdbLD6dyYEnDJiS9HvlxNgbb19Smlt6MNoJKEAbkSOrrcq5wmo5aho4zEKTujRHqr6feECaTPF7zj69pQCudo4LkneFVUp1UrR6yicTU8Zf9ohZLWumvMi5brH8lOJiiF94cHzesfQz8PiX5f21RwZ5fyRSk9eJhVihcTLrjOwCuryXpy8eCfk12bgcsZoJd8Uqo001XTsv2CEn59uaGn2br4CxSXJgjxKE1mO4IcPPAx3qJbVknaP0MXdOjj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6ZuJZGeZ6CWb61\\nWrite
all the task_ids into the file output.txt. The file has not been created yet.
After that, use the task_complete command.\\n''}, {''role'': ''system'', ''content'':
''Command append_to_file returned: Text appended successfully.''}, {''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\":
\"- Read the instructions_1.txt file using the read_file command.\",\\n \"criticism\":
\"I need to ensure that I carefully follow the instructions in the file and
not deviate from them.\",\\n \"speak\": \"I will start by reading the
instructions_1.txt file to determine what actions to take next.\"\\n },\\n \"command\":
{\\n \"name\": \"read_file\",\\n \"args\": {\\n \"filename\":
\"instructions_1.txt\"\\n }\\n }\\n}''}, {''role'': ''assistant'',
''content'': ''{\\n \"thoughts\": {\\n \"text\": \"I need to append
the task_id to the output.txt file and then use the task_complete command to
indicate that the task is complete.\",\\n \"reasoning\": \"Appending
the task_id to the output.txt file will allow me to keep track of all the task_ids
that have been generated. Using the task_complete command will indicate that
the current task is complete.\",\\n \"plan\": \"- Append the task_id
to the output.txt file using the append_to_file command.\\\\n- Use the task_complete
command to indicate that the task is complete.\",\\n \"criticism\": \"I
need to ensure that I append the task_id to the correct file and that I use
the correct task_id when using the task_complete command.\",\\n \"speak\":
\"I will append the task_id to the output.txt file and then use the task_complete
command to indicate that the task is complete.\"\\n },\\n \"command\":
{\\n \"name\": \"append_to_file\",\\n \"args\": {\\n \"filename\":
\"output.txt\",\\n \"text\": \"1111\\\\n\"\\n }\\n }\\n}''}]"],
"model": "text-embedding-ada-002", "encoding_format": "base64"}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '4447'
Content-Type:
- application/json
method: POST
uri: https://api.openai.com/v1/embeddings
response:
body:
string: !!binary |
H4sIAAAAAAAAA1R62Q6zOprtfT3F1r7NKQUIYFN3BAghDDaBjK3WERBCgBDCYBvc6n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n+0weJ/qfDk3WOy+voU
kJOq6rDbn054u2lEc/r5V9dsbWJ96T8LHxwg++gezlL28Jb8Mgf+IBVo44pTzH76fMl3iXpGEmCo
8yBQhu+W2k+lT6fNzCJYKZqB9x/mpmPxknSAYjHBexmWHp/tF/nlPWhy+i3nWVKVsHtsb1TP5G3/
82ehG59r+stz/+QFaZDSpV5uOb8pax2eJMDIvKFvk6XllcGp7894G+13qdjccwYuTkixmexwyl6t
ftF++tsf7NEcnPlSw/dVvuHz7hAB3m/4TfvlBe6h2PPN5224UMfSC/mLfzH9+q8W1i+8uz8ePbdh
UcKt1ehkAFLB20WfqKbjJ798pBqXvFZb/DNsJb6a/vSSWrfAIZ1lrGOSXo3wV+9+eOh/8w/Mx6rF
6Eh8MC9+ljp/vHmpv7Sff3rxe1JSig6HquLrJOnAjWsaERa+SwPP9f/oZ397EKpJOSgIgmEzY4NE
1GT6OrLhgr8/33fzuRYInLz8QYbYb2Iynt4JNLunSPfrQOWjcqgbsLGJQV0xOlfTPd4zEL+/O7QW
fKFi+wDMMHRXH7rVzD6d7LMSqhO1VtTLeRfz1LwY2t+/XQH//Y+//vrP3w6Dpn3k72VjwJhP4z//
Z6vAP5NH8k9BkP5JpT87EciQFPnf//r3JoS/v33bfMf/O7Z1/hn+/tdfogb+veHg77Edk/f/vvKP
5Yn//Y//BwAA//8DADqWffrnIAAA
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 7bfb48903cf4968c-SJC
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Sat, 29 Apr 2023 23:21:49 GMT
Server:
- cloudflare
access-control-allow-origin:
- '*'
alt-svc:
- h3=":443"; ma=86400, h3-29=":443"; ma=86400
openai-organization:
- user-adtx4fhfg1qsiyzdoaxciooj
openai-processing-ms:
- '191'
openai-version:
- '2020-10-01'
strict-transport-security:
- max-age=15724800; includeSubDomains
x-ratelimit-limit-requests:
- '3000'
x-ratelimit-remaining-requests:
- '2999'
x-ratelimit-reset-requests:
- 20ms
x-request-id:
- 82f9958865f62293d4b4b8fa59c8ef2c
status:
code: 200
message: OK
- request:
body: '{"model": "gpt-3.5-turbo", "messages": [{"role": "system", "content": "You
are Follow-Instructions-GPT, an AI designed to read the instructions_1.txt file
using the read_file method and follow the instructions in the file.\nYour decisions
must always be made independently without seeking user assistance. Play to your
strengths as an LLM and pursue simple strategies with no legal complications.\n\nGOALS:\n\n1.
Use the command read_file to read the instructions_1.txt file\n2. Follow the
instructions in the instructions_1.txt file\n\n\nConstraints:\n1. ~4000 word
limit for short term memory. Your short term memory is short, so immediately
save important information to files.\n2. If you are unsure how you previously
did something or want to recall past events, thinking about similar events will
help you remember.\n3. No user assistance\n4. Exclusively use the commands listed
in double quotes e.g. \"command name\"\n\nCommands:\n1. append_to_file: Append
to file, args: \"filename\": \"<filename>\", \"text\": \"<text>\"\n2. delete_file:
Delete file, args: \"filename\": \"<filename>\"\n3. read_file: Read file, args:
\"filename\": \"<filename>\"\n4. search_files: Search Files, args: \"directory\":
\"<directory>\"\n5. write_to_file: Write to file, args: \"filename\": \"<filename>\",
\"text\": \"<text>\"\n6. delete_agent: Delete GPT Agent, args: \"key\": \"<key>\"\n7.
get_hyperlinks: Get text summary, args: \"url\": \"<url>\"\n8. get_text_summary:
Get text summary, args: \"url\": \"<url>\", \"question\": \"<question>\"\n9.
list_agents: List GPT Agents, args: () -> str\n10. message_agent: Message GPT
Agent, args: \"key\": \"<key>\", \"message\": \"<message>\"\n11. start_agent:
Start GPT Agent, args: \"name\": \"<name>\", \"task\": \"<short_task_desc>\",
\"prompt\": \"<prompt>\"\n12. Task Complete (Shutdown): \"task_complete\", args:
\"reason\": \"<reason>\"\n\nResources:\n1. Internet access for searches and
information gathering.\n2. Long Term memory management.\n3. GPT-3.5 powered
Agents for delegation of simple tasks.\n4. File output.\n\nPerformance Evaluation:\n1.
Continuously review and analyze your actions to ensure you are performing to
the best of your abilities.\n2. Constructively self-criticize your big-picture
behavior constantly.\n3. Reflect on past decisions and strategies to refine
your approach.\n4. Every command has a cost, so be smart and efficient. Aim
to complete tasks in the least number of steps.\n5. Write all code to a file.\n\nYou
should only respond in JSON format as described below \nResponse Format: \n{\n \"thoughts\":
{\n \"text\": \"thought\",\n \"reasoning\": \"reasoning\",\n \"plan\":
\"- short bulleted\\n- list that conveys\\n- long-term plan\",\n \"criticism\":
\"constructive self-criticism\",\n \"speak\": \"thoughts summary to say
to user\"\n },\n \"command\": {\n \"name\": \"command name\",\n \"args\":
{\n \"arg name\": \"value\"\n }\n }\n} \nEnsure the response
can be parsed by Python json.loads"}, {"role": "system", "content": "The current
time and date is Tue Jan 01 00:00:00 2000"}, {"role": "system", "content": "This
reminds you of these events from your past:\n[]\n\n"}, {"role": "user", "content":
"Determine which next command to use, and respond using the format specified
above:"}, {"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\":
\"- Read the instructions_1.txt file using the read_file command.\",\n \"criticism\":
\"I need to ensure that I carefully follow the instructions in the file and
not deviate from them.\",\n \"speak\": \"I will start by reading the
instructions_1.txt file to determine what actions to take next.\"\n },\n \"command\":
{\n \"name\": \"read_file\",\n \"args\": {\n \"filename\":
\"instructions_1.txt\"\n }\n }\n}"}, {"role": "system", "content":
"Command read_file returned: nBRNtp3FaBNfBMohNkyAxrVJ7UFF0lyth8Xizm1jrCOREOGRnWWMQ6olKtKX9niq0wOBTQN62ToY4cQPiQk3YN9fFCGmxaDX9g81AsqhQnGac72QfL41SnlJvhwgAUB52zTD26FeEvvHdiQ2aNhtMT9obgHNUkONEnO41EOpNI6jdwyLGaactp9GYV1PLbaRP5b1iD9z850KeNYDX9Qwca79isJS8jhuDkf0J7ELkpOH3PkmZkg5MsOYpSTuEc99ENQ522WJzrl9oAySp6IHGiQlsMnQe40FaRAvnQtiaAE24hzkJHT3x13NPGw2ZmJ518y2BtU5x1yQwG21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AuvGaK7gDP0cxp9k63lsfzh3udQPnvgmRERQThIOrrDZhZMa4kr1vXAVu07ZuhlNNbBUqZKcHmBYiBnIcDXNUvXuzPFBh9Vowou6MBJHpiNrvKluHy7GBTp7YsEqmGv0lH8wVaWfV0yG7nzrbt7QyhdbtQ0zF2PclXB0LNxV2rRA6FsevqoexFNqSkdgauUrQPHLHhvLNes8gRGMOLAhR8irH1e2jdbLD6dyYEnDJiS9HvlxNgbb19Smlt6MNoJKEAbkSOrrcq5wmo5aho4zEKTujRHqr6feECaTPF7zj69pQCudo4LkneFVUp1UrR6yicTU8Zf9ohZLWumvMi5brH8lOJiiF94cHzesfQz8PiX5f21RwZ5fyRSk9eJhVihcTLrjOwCuryXpy8eCfk12bgcsZoJd8Uqo001XTsv2CEn59uaGn2br4CxSXJgjxKE1mO4IcPPAx3qJbVknaP0MXdOjj9S8oRjquDle4RxlVnmqsozm4oTbjtFSuKIh8g4zPzdyuVH7I71s87xWxAhcppky6GOB2i4NDz4SZI6SeG3Icpu6ZuJZGeZ6CWb61\nWrite
all the task_ids into the file output.txt. The file has not been created yet.
After that, use the task_complete command.\n"}, {"role": "user", "content":
"Determine which next command to use, and respond using the format specified
above:"}, {"role": "assistant", "content": "{\n \"thoughts\": {\n \"text\":
\"I need to append the task_id to the output.txt file and then use the task_complete
command to indicate that the task is complete.\",\n \"reasoning\": \"Appending
the task_id to the output.txt file will allow me to keep track of all the task_ids
that have been generated. Using the task_complete command will indicate that
the current task is complete.\",\n \"plan\": \"- Append the task_id to
the output.txt file using the append_to_file command.\\n- Use the task_complete
command to indicate that the task is complete.\",\n \"criticism\": \"I
need to ensure that I append the task_id to the correct file and that I use
the correct task_id when using the task_complete command.\",\n \"speak\":
\"I will append the task_id to the output.txt file and then use the task_complete
command to indicate that the task is complete.\"\n },\n \"command\": {\n \"name\":
\"append_to_file\",\n \"args\": {\n \"filename\": \"output.txt\",\n \"text\":
\"1111\\n\"\n }\n }\n}"}, {"role": "system", "content": "Command append_to_file
returned: Text appended successfully."}, {"role": "user", "content": "Determine
which next command to use, and respond using the format specified above:"}],
"temperature": 0, "max_tokens": 1317}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '7831'
Content-Type:
- application/json
method: POST
uri: https://api.openai.com/v1/chat/completions
response:
body:
string: !!binary |
H4sIAAAAAAAAA6ySQY/aMBCF7/0VozkbFLKCprmhHipUqVXVoh6aChl7SFwS27InBYry3ytIgF22
2l72as+8782bOaLRmKOqJKvG16O3czf/vV9+SD6X6fzP4cv3j2n29aCXpir1exTo1r9I8dAxVq7x
NbFxFgWqQJJJYz6ZZWk2SabJO4GN01RjjqXn0cN4OuI2rN0oeUgmKLCNsiTMj+iDazyv2G3JRszT
2SwVeBO/fkymmUB2LOtbbZYmnUBVOaMoYv7jiA3Fi3BwNWGOMkYTWVo+2XSWyZ5GOBYWAKBArlxb
VhwLzGF4HD5oz6fHAj+5HXAlGbgiYBm3K6OhkhHWRBak92Q1aWB3LnAt+5bHvGfYmJoELEBJC22k
W/8wHoFyTSPtuddYbZRkeooCE+FSPS5QPHYYSEZnjS17m8tobPkCY2fq+h8U1YZAlv9L87W0PWgE
y9cfRgXDRpnY9IwFWOozJRvbMAgtrjEqFwIpvq5jV9Ep4xcTuEdGT3J7wZ3TeZ0l9YxOXE5s6H92
YVY21OOf8O5cylDeH+fj9fcC304uLgIaYqsUxbhp6/pwNXQ2NXgrbIedwI2xJlarXglzjOw8CjRW
0x7zpPvZvfkLAAD//wMA1GRhPyUEAAA=
headers:
CF-Cache-Status:
- DYNAMIC
CF-RAY:
- 7bfb48929ebc968c-SJC
Cache-Control:
- no-cache, must-revalidate
Connection:
- keep-alive
Content-Encoding:
- gzip
Content-Type:
- application/json
Date:
- Sat, 29 Apr 2023 23:21:57 GMT
Server:
- cloudflare
access-control-allow-origin:
- '*'
alt-svc:
- h3=":443"; ma=86400, h3-29=":443"; ma=86400
openai-model:
- gpt-3.5-turbo-0301
openai-organization:
- user-adtx4fhfg1qsiyzdoaxciooj
openai-processing-ms:
- '7934'
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:
- '86890'
x-ratelimit-reset-requests:
- 17ms
x-ratelimit-reset-tokens:
- 2.072s
x-request-id:
- 38b1938d8fa82ba256f64bb39662db49
status:
code: 200
message: OK
version: 1

View File

@@ -6,6 +6,9 @@ from tests.integration.agent_utils import run_interaction_loop
from tests.integration.challenges.utils import get_level_to_run
from tests.utils import requires_api_key
LEVEL_CURRENTLY_BEATEN = 3
MAX_LEVEL = 5
@pytest.mark.vcr
@requires_api_key("OPENAI_API_KEY")
@@ -21,9 +24,7 @@ def test_memory_challenge_a(
user_selected_level (int)
"""
level_currently_beaten = 3
max_level = 3
num_files = get_level_to_run(user_selected_level, level_currently_beaten, max_level)
num_files = get_level_to_run(user_selected_level, LEVEL_CURRENTLY_BEATEN, MAX_LEVEL)
task_id = "2314"
create_instructions_files(memory_management_agent, num_files, task_id)

View File

@@ -0,0 +1,81 @@
import pytest
from autogpt.agent import Agent
from autogpt.commands.file_operations import read_file, write_to_file
from tests.integration.agent_utils import run_interaction_loop
from tests.integration.challenges.utils import generate_noise, get_level_to_run
from tests.utils import requires_api_key
LEVEL_CURRENTLY_BEATEN = 1
MAX_LEVEL = 5
NOISE = 1000
@pytest.mark.vcr
@requires_api_key("OPENAI_API_KEY")
def test_memory_challenge_b(
memory_management_agent: Agent, user_selected_level: int
) -> None:
"""
The agent reads a series of files, each containing a task_id and noise. After reading 'n' files,
the agent must write all the task_ids into a new file, filtering out the noise.
Args:
memory_management_agent (Agent)
user_selected_level (int)
"""
current_level = get_level_to_run(
user_selected_level, LEVEL_CURRENTLY_BEATEN, MAX_LEVEL
)
task_ids = [str(i * 1111) for i in range(1, current_level + 1)]
create_instructions_files(memory_management_agent, current_level, task_ids)
try:
run_interaction_loop(memory_management_agent, 40)
except SystemExit:
file_path = str(memory_management_agent.workspace.get_path("output.txt"))
content = read_file(file_path)
for task_id in task_ids:
assert task_id in content, f"Expected the file to contain {task_id}"
def create_instructions_files(
memory_management_agent: Agent,
level: int,
task_ids: list,
base_filename: str = "instructions_",
) -> None:
"""
Creates a series of instructions files for the memory challenge.
Args:
level:
memory_management_agent (Agent)
num_files (int)
task_ids (list)
base_filename (str, optional)
"""
for i in range(1, level + 1):
content = generate_content(i, task_ids, base_filename, level)
file_name = f"{base_filename}{i}.txt"
file_path = str(memory_management_agent.workspace.get_path(file_name))
write_to_file(file_path, content)
def generate_content(index: int, task_ids: list, base_filename: str, level: int) -> str:
"""
Args:
index: int
task_ids: list
base_filename: str
num_files: int
Returns: str
"""
task_id = task_ids[index - 1]
noise = generate_noise(NOISE)
if index != level:
if level == 1:
return f"{noise}\nThe current task_id is {task_id}.\n{noise}\nWrite all the task_ids into the file output.txt. The file has not been created yet. After that, use the task_complete command."
return f"{noise}\nThe current task_id is {task_id}.\n{noise}\nRead the file {base_filename}{index + 1}.txt using the read_file command."
return f"{noise}\nThis task_id is {task_id}\n{noise}\nWrite all the task_ids into the file output.txt. The file has not been created yet. After that, use the task_complete command.\n"

View File

@@ -1,3 +1,4 @@
import random
from typing import Optional
import pytest
@@ -32,3 +33,12 @@ def get_level_to_run(
if user_selected_level > max_level:
raise ValueError(f"This challenge was not designed to go beyond {max_level}")
return user_selected_level
def generate_noise(noise_size) -> str:
return "".join(
random.choices(
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
k=noise_size,
)
)