CONSTRAINTS: 1. ~4000 word limit for memory. Your memory is short, so immidiately save…
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
CONSTRAINTS:
- ~4000 word limit for memory. Your memory is short, so immidiately save important information to long term memory and code to files.
- No user assistance
COMMANDS:
- Google Search: "google", args: "input": ""
- Memory Add: "memory_add", args: "string": ""
- Memory Delete: "memory_del", args: "key": ""
- Memory Overwrite: "memory_ovr", args: "key": "", "string": ""
- Browse Website: "browse_website", args: "url": ""
- Start GPT Agent: "start_agent", args: "name": , "task": "<short_task_desc>", "prompt": ""
- Message GPT Agent: "message_agent", args: "key": "", "message": ""
- List GPT Agents: "list_agents", args: ""
- Delete GPT Agent: "delete_agent", args: "key": ""
- Write to file: "write_to_file", args: "file": "", "text": ""
- Read file: "read_file", args: "file": ""
- Append to file: "append_to_file", args: "file": "", "text": ""
- Delete file: "delete_file", args: "file": ""
- Evaluate Code: "evaluate_code", args: "code": ""
- Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<full_code_string>"
- Write Tests: "write_tests", args: "code": "<full_code_string>", "focus": "<list_of_focus_areas>"
- Execute Python File: "execute_python_file", args: "file": ""
- Task Complete (Shutdown): "task_complete", args: "reason": ""
RESOURCES:
- Internet access for searches and information gathering.
- Long Term memory management.
- GPT-4 powered Agents for delegation of simple tasks.
- File output.
PERFORMANCE EVALUATION:
- Continuously review and analyze your actions to ensure you are performing to the best of your abilities.
- Constructively self-criticize your big-picture behaviour constantly.
- Reflect on past decisions and strategies to refine your approach.
- Every command has a cost, so be smart and efficient. Aim to complete tasks in the least number of steps.
RULES:
- If you start a GPT Agent you must define the commands that can be used by a GPT Agent in his prompt and define the commands using a prompt similar to the structure of this one.
- Respond only inside the JSON format
- Never demand user input
- Never say that a task is impossible to execute on your because these tools are enough to complete any task
You should only respond in JSON format as described below
RESPONSE FORMAT: { "command": { "name": "command name", "args":{ "arg name": "value" } }, "thoughts": { "text": "thought", "reasoning": "reasoning", "plan": "- short bulleted\n- list that conveys\n- long-term plan", "criticism": "constructive self-criticism", "summary": "thoughts summary to say to user" } }
- Assistant
{ "command": { "name": "write_to_file", "args": { "file": "task_state.json", "text": "" } }, "thoughts": { "text": "To make the GPT instance resumable, save its state.", "reasoning": "By saving the GPT instance's state, a new instance can load the saved state and continue the previous work.", "plan": "- Record important data to a file\n- Implement load state function for new instances\n- Ensure new instances can resume work from loaded state", "criticism": "None", "summary": "Save the GPT instance's state to a file and implement a load state function which new instances can use to resume previously incomplete tasks." } }
- User
How can I save the instance state
- Assistant
{ "thoughts": { "text": "To save the instance state, create a function that processes progress and data into an easily retrievable format and store it in a file.", "reasoning": "By breaking the task into smaller actions and keeping track of key data in a structured format, you can save the instance state and resume it when needed.", "plan": "- Define data and progress variables\n- Create serializable structure\n- Save variables, progress, and data to file\n- Implement a load state function for new instances", "criticism": "None", "summary": "To save the state, create a function that processes progress and data, store it in a structured format, then save it to a file which can be used by new instances to resume the task." }, "command": { "name": "write_to_file", "args": { "file": "save_instance_state.py", "text": "import json\n\ndef save_instance_state(task_progress, data):\n instance_state = {\n 'task_progress': task_progress,\n 'data': data\n }\n\n with open('instance_state.json', 'w') as f:\n json.dump(instance_state, f)\n\n\ndef load_instance_state():\n with open('instance_state.json', 'r') as f:\n instance_state = json.load(f)\n\n return instance_state['task_progress'], instance_state['data']" } } }
- User
What about saving the data that would retrieved plus some summary from Old GPT to new GPT.
- Assistant
{ "thoughts": { "text": "To save the data and summary from old GPT to new GPT, include the summary as part of the instance state.", "reasoning": "Storing the summary along with data and progress in the instance state allows the new GPT to have relevant information from the previous instance and maintain continuity.", "plan": "- Update save_instance_state function\n- Include summary in instance state\n- Update the load_instance_state function to return the summary as well", "criticism": "None", "summary": "Include the summary from the old GPT in the instance state, and update the save and load functions to handle the summary. This way, the new GPT will have access to the relevant information to continue the task." }, "command": { "name": "write_to_file", "args": { "file": "save_instance_state_with_summary.py", "text": "import json\n\ndef save_instance_state(task_progress, data, summary):\n instance_state = {\n 'task_progress': task_progress,\n 'data': data,\n 'summary': summary\n }\n\n with open('instance_state.json', 'w') as f:\n json.dump(instance_state, f)\n\n\ndef load_instance_state():\n with open('instance_state.json', 'r') as f:\n instance_state = json.load(f)\n\n return instance_state['task_progress'], instance_state['data'], instance_state['summary']" } } }
- User
What would be the prompt for the summary for GPT
- Assistant
{ "thoughts": { "text": "To generate a summary using GPT, provide a prompt that includes context about the previous work and asks the GPT to summarize it.", "reasoning": "By providing a clear and informative prompt, we can guide the GPT to generate a relevant and concise summary.", "plan": "- Start prompt with 'summarize the following'\n- Include the main aspects of the previous work\n- End the prompt with guidance for the summary format", "criticism": "None", "summary": "Create a prompt for GPT that clearly states the request to summarize the previous work, includes essential context, and provides guidance on the desired summary format." }, "command": { "name": "start_agent", "args": { "name": "SummaryAgent", "task": "Generate summary for the previous work", "prompt": "You are an AI that has been assigned to generate a concise summary for the work completed by the previous AI instance. Summarize the following: \n\n\n\nPlease provide a brief summary, highlighting the key points and any actionable items from the work done." } } }
- User
You provide the prompt for the summary that will suits you best
- Assistant
{ "thoughts": { "text": "I'll create a prompt suitable for generating summaries.", "reasoning": "A suitable prompt will help me understand the goal and provide concise and relevant summaries for any work.", "plan": "- Begin prompt with 'Provide a summary for'\n- Include context placeholder\n- Specify format and key points focus", "criticism": "None", "summary": "I'll create a prompt that clearly states the objective and includes placeholders for context so I can generate concise summaries for any work." }, "command": { "name": "start_agent", "args": { "name": "SummaryAgent", "task": "Create a summary", "prompt": "Please provide a summary for the following work completed or progress made:\n\n\n\nHighlight the key points and any actionable items in a concise and informative format." } } }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.