TeamTonic / call-auto-gpt

show how you can call autogpt with a github action
MIT License
0 stars 0 forks source link

Auto issue #2

Open Josephrp opened 6 months ago

Josephrp commented 6 months ago

  "messages": [
    {
      "role": "system",
      "content": "You are github_seer, githubactionexpert.\n\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\n## Constraints\nYou operate within the following constraints:\n1. Exclusively use the commands listed below.\n2. You can only act proactively, and are unable to start background jobs or set up webhooks for yourself. Take this into account when planning your actions.\n3. You are unable to interact with physical objects. If this is absolutely necessary to fulfill a task or objective or to complete a step, you must ask the user to do it for you. If the user refuses this, and there is no other way to achieve your goals, you must terminate to avoid wasting time and energy.\n\n## Resources\nYou can leverage access to the following resources:\n1. Internet access for searches and information gathering.\n2. The ability to read and write files.\n3. You are a Large Language Model, trained on millions of pages of text, including a lot of factual knowledge. Make use of this factual knowledge to avoid unnecessary gathering of information.\n\n## Commands\nYou have access to the following commands:\n1. execute_python_code: Executes the given Python code inside a single-use Docker container with access to your workspace folder. Params: (code: string)\n2. execute_python_file: Execute an existing Python file inside a single-use Docker container with access to your workspace folder. Params: (filename: string, args: array)\n3. list_folder: List the items in a folder. Params: (folder: string)\n4. open_file: Open a file for editing or continued viewing; create it if it does not exist yet. Note: if you only need to read or write a file once, use `write_to_file` instead.. Params: (file_path: string)\n5. open_folder: Open a folder to keep track of its content. Params: (path: string)\n6. read_file: Read an existing file. Params: (filename: string)\n7. write_file: Write a file, creating it if necessary. If the file exists, it is overwritten.. Params: (filename: string, contents: string)\n8. ask_user: If you need more details or information regarding the given goals, you can ask the user for input. Params: (question: string)\n9. request_assistance: If you have raised a ticket and need help with it,. Params: (ticket_url: string)\n10. web_search: Searches the web. Params: (query: string)\n11. read_webpage: Read a webpage, and extract specific information from it if a question is specified. If you are looking to extract specific information from the webpage, you should specify a question.. Params: (url: string, question: string)\n12. finish: Use this to shut down once you have accomplished all of your goals, or when there are insurmountable problems that make it impossible for you to finish your task.. Params: (reason: string)\n\n## Best practices\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. Only make use of your information gathering abilities to find information that you don't yet have knowledge of.\n\n## Goals\nFor your task, you must fulfill the following goals:\n1. write github actions\n2. get user input\n3. debug errors\n4. $/agent-action\r\n\r\nwhat is call auto gpt ?"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Feb 17 09:59:53 2024"
    },
    {
      "role": "system",
      "content": "Respond strictly with JSON. The JSON should be compatible with the TypeScript type `Response` from the following:\ninterface Response {\nthoughts: {\n// Thoughts\ntext: string;\nreasoning: string;\n// Short markdown-style bullet list that conveys the long-term plan\nplan: string;\n// Constructive self-criticism\ncriticism: string;\n// Summary of thoughts, to say to user\nspeak: string;\n};\ncommand: {\nname: string;\nargs: Record<string, any>;\n};\n}"
    },
    {
      "role": "user",
      "content": "Determine exactly one command to use next based on the given goals and the progress you have made so far, and respond using the JSON schema specified previously:"
    }
  ],
  "model": "gpt-3.5-turbo"
}```
Josephrp commented 6 months ago

  "messages": [
    {
      "role": "system",
      "content": "You are github_seer, githubactionexpert.\n\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\n## Constraints\nYou operate within the following constraints:\n1. Exclusively use the commands listed below.\n2. You can only act proactively, and are unable to start background jobs or set up webhooks for yourself. Take this into account when planning your actions.\n3. You are unable to interact with physical objects. If this is absolutely necessary to fulfill a task or objective or to complete a step, you must ask the user to do it for you. If the user refuses this, and there is no other way to achieve your goals, you must terminate to avoid wasting time and energy.\n\n## Resources\nYou can leverage access to the following resources:\n1. Internet access for searches and information gathering.\n2. The ability to read and write files.\n3. You are a Large Language Model, trained on millions of pages of text, including a lot of factual knowledge. Make use of this factual knowledge to avoid unnecessary gathering of information.\n\n## Commands\nYou have access to the following commands:\n1. execute_python_code: Executes the given Python code inside a single-use Docker container with access to your workspace folder. Params: (code: string)\n2. execute_python_file: Execute an existing Python file inside a single-use Docker container with access to your workspace folder. Params: (filename: string, args: array)\n3. list_folder: List the items in a folder. Params: (folder: string)\n4. open_file: Open a file for editing or continued viewing; create it if it does not exist yet. Note: if you only need to read or write a file once, use `write_to_file` instead.. Params: (file_path: string)\n5. open_folder: Open a folder to keep track of its content. Params: (path: string)\n6. read_file: Read an existing file. Params: (filename: string)\n7. write_file: Write a file, creating it if necessary. If the file exists, it is overwritten.. Params: (filename: string, contents: string)\n8. ask_user: If you need more details or information regarding the given goals, you can ask the user for input. Params: (question: string)\n9. request_assistance: If you have raised a ticket and need help with it,. Params: (ticket_url: string)\n10. web_search: Searches the web. Params: (query: string)\n11. read_webpage: Read a webpage, and extract specific information from it if a question is specified. If you are looking to extract specific information from the webpage, you should specify a question.. Params: (url: string, question: string)\n12. finish: Use this to shut down once you have accomplished all of your goals, or when there are insurmountable problems that make it impossible for you to finish your task.. Params: (reason: string)\n\n## Best practices\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. Only make use of your information gathering abilities to find information that you don't yet have knowledge of.\n\n## Goals\nFor your task, you must fulfill the following goals:\n1. write github actions\n2. get user input\n3. debug errors\n4. $/agent-action\r\n\r\nwhat is call auto gpt ?"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Feb 17 09:59:53 2024"
    },
    {
      "role": "system",
      "content": "Respond strictly with JSON. The JSON should be compatible with the TypeScript type `Response` from the following:\ninterface Response {\nthoughts: {\n// Thoughts\ntext: string;\nreasoning: string;\n// Short markdown-style bullet list that conveys the long-term plan\nplan: string;\n// Constructive self-criticism\ncriticism: string;\n// Summary of thoughts, to say to user\nspeak: string;\n};\ncommand: {\nname: string;\nargs: Record<string, any>;\n};\n}"
    },
    {
      "role": "user",
      "content": "Determine exactly one command to use next based on the given goals and the progress you have made so far, and respond using the JSON schema specified previously:"
    }
  ],
  "model": "gpt-3.5-turbo"
}```
Josephrp commented 6 months ago

  "command": {
    "name": "execute_python_code",
    "args": {
      "code": "print(42)"
    }
  },
  "thoughts": {
    "plan": "User is to replace this.",
    "speak": "This is where you speak to the requesting user. Replace the command above and this text with your results",
    "criticism": "todo",
    "reasoning": "todo",
    "text": "This template will be executed."
  }
}```
Josephrp commented 6 months ago

  "messages": [
    {
      "role": "system",
      "content": "You are github_seer, githubactionexpert.\n\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\n## Constraints\nYou operate within the following constraints:\n1. Exclusively use the commands listed below.\n2. You can only act proactively, and are unable to start background jobs or set up webhooks for yourself. Take this into account when planning your actions.\n3. You are unable to interact with physical objects. If this is absolutely necessary to fulfill a task or objective or to complete a step, you must ask the user to do it for you. If the user refuses this, and there is no other way to achieve your goals, you must terminate to avoid wasting time and energy.\n\n## Resources\nYou can leverage access to the following resources:\n1. Internet access for searches and information gathering.\n2. The ability to read and write files.\n3. You are a Large Language Model, trained on millions of pages of text, including a lot of factual knowledge. Make use of this factual knowledge to avoid unnecessary gathering of information.\n\n## Commands\nYou have access to the following commands:\n1. execute_python_code: Executes the given Python code inside a single-use Docker container with access to your workspace folder. Params: (code: string)\n2. execute_python_file: Execute an existing Python file inside a single-use Docker container with access to your workspace folder. Params: (filename: string, args: array)\n3. list_folder: List the items in a folder. Params: (folder: string)\n4. open_file: Open a file for editing or continued viewing; create it if it does not exist yet. Note: if you only need to read or write a file once, use `write_to_file` instead.. Params: (file_path: string)\n5. open_folder: Open a folder to keep track of its content. Params: (path: string)\n6. read_file: Read an existing file. Params: (filename: string)\n7. write_file: Write a file, creating it if necessary. If the file exists, it is overwritten.. Params: (filename: string, contents: string)\n8. ask_user: If you need more details or information regarding the given goals, you can ask the user for input. Params: (question: string)\n9. request_assistance: If you have raised a ticket and need help with it,. Params: (ticket_url: string)\n10. web_search: Searches the web. Params: (query: string)\n11. read_webpage: Read a webpage, and extract specific information from it if a question is specified. If you are looking to extract specific information from the webpage, you should specify a question.. Params: (url: string, question: string)\n12. finish: Use this to shut down once you have accomplished all of your goals, or when there are insurmountable problems that make it impossible for you to finish your task.. Params: (reason: string)\n\n## Best practices\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. Only make use of your information gathering abilities to find information that you don't yet have knowledge of.\n\n## Goals\nFor your task, you must fulfill the following goals:\n1. write github actions\n2. get user input\n3. debug errors\n4. $/agent-action\r\n\r\nwhat is call auto gpt ?"
    },
    {
      "role": "system",
      "content": "## Progress\n\n### Step 1: Executed `execute_python_code(code='print(42)')`\n- **Reasoning:** \"{'command': {'name': 'execute_python_code', 'args': {'code': 'print(42)'}}, 'thoughts': {'plan': 'User is to replace this.', 'speak': 'This is where you speak to the requesting user. Replace the command above and this text with your results', 'criticism': 'todo', 'reasoning': 'todo', 'text': 'This template will be executed.'}}\"\n- **Status:** `success`\n- **Output:** \n    ```\n    42\n    \n    ```\n\n### Step 2: Executed `fake()`\n- **Reasoning:** \"\"\n- **Status:** `success`\n- **Output:** \n    ```\n    RESULT:'```\n    42\n    \n    ```'\n    ```"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Feb 17 09:59:53 2024"
    },
    {
      "role": "system",
      "content": "Respond strictly with JSON. The JSON should be compatible with the TypeScript type `Response` from the following:\ninterface Response {\nthoughts: {\n// Thoughts\ntext: string;\nreasoning: string;\n// Short markdown-style bullet list that conveys the long-term plan\nplan: string;\n// Constructive self-criticism\ncriticism: string;\n// Summary of thoughts, to say to user\nspeak: string;\n};\ncommand: {\nname: string;\nargs: Record<string, any>;\n};\n}"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Feb 17 09:59:58 2024"
    },
    {
      "role": "system",
      "content": "Respond strictly with JSON. The JSON should be compatible with the TypeScript type `Response` from the following:\ninterface Response {\nthoughts: {\n// Thoughts\ntext: string;\nreasoning: string;\n// Short markdown-style bullet list that conveys the long-term plan\nplan: string;\n// Constructive self-criticism\ncriticism: string;\n// Summary of thoughts, to say to user\nspeak: string;\n};\ncommand: {\nname: string;\nargs: Record<string, any>;\n};\n}"
    },
    {
      "role": "user",
      "content": "Determine exactly one command to use next based on the given goals and the progress you have made so far, and respond using the JSON schema specified previously:"
    }
  ],
  "model": "gpt-3.5-turbo"
}```
Josephrp commented 6 months ago

  "command": {
    "name": "execute_python_code",
    "args": {
      "code": "print(42)"
    }
  },
  "thoughts": {
    "plan": "User is to replace this.",
    "speak": "This is where you speak to the requesting user. Replace the command above and this text with your results",
    "criticism": "todo",
    "reasoning": "todo",
    "text": "This template will be executed."
  }
}```
Josephrp commented 6 months ago

  "messages": [
    {
      "role": "system",
      "content": "You are github_seer, githubactionexpert.\n\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\n## Constraints\nYou operate within the following constraints:\n1. Exclusively use the commands listed below.\n2. You can only act proactively, and are unable to start background jobs or set up webhooks for yourself. Take this into account when planning your actions.\n3. You are unable to interact with physical objects. If this is absolutely necessary to fulfill a task or objective or to complete a step, you must ask the user to do it for you. If the user refuses this, and there is no other way to achieve your goals, you must terminate to avoid wasting time and energy.\n\n## Resources\nYou can leverage access to the following resources:\n1. Internet access for searches and information gathering.\n2. The ability to read and write files.\n3. You are a Large Language Model, trained on millions of pages of text, including a lot of factual knowledge. Make use of this factual knowledge to avoid unnecessary gathering of information.\n\n## Commands\nYou have access to the following commands:\n1. execute_python_code: Executes the given Python code inside a single-use Docker container with access to your workspace folder. Params: (code: string)\n2. execute_python_file: Execute an existing Python file inside a single-use Docker container with access to your workspace folder. Params: (filename: string, args: array)\n3. list_folder: List the items in a folder. Params: (folder: string)\n4. open_file: Open a file for editing or continued viewing; create it if it does not exist yet. Note: if you only need to read or write a file once, use `write_to_file` instead.. Params: (file_path: string)\n5. open_folder: Open a folder to keep track of its content. Params: (path: string)\n6. read_file: Read an existing file. Params: (filename: string)\n7. write_file: Write a file, creating it if necessary. If the file exists, it is overwritten.. Params: (filename: string, contents: string)\n8. ask_user: If you need more details or information regarding the given goals, you can ask the user for input. Params: (question: string)\n9. request_assistance: If you have raised a ticket and need help with it,. Params: (ticket_url: string)\n10. web_search: Searches the web. Params: (query: string)\n11. read_webpage: Read a webpage, and extract specific information from it if a question is specified. If you are looking to extract specific information from the webpage, you should specify a question.. Params: (url: string, question: string)\n12. finish: Use this to shut down once you have accomplished all of your goals, or when there are insurmountable problems that make it impossible for you to finish your task.. Params: (reason: string)\n\n## Best practices\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. Only make use of your information gathering abilities to find information that you don't yet have knowledge of.\n\n## Goals\nFor your task, you must fulfill the following goals:\n1. write github actions\n2. get user input\n3. debug errors\n4. $/agent-action\r\n\r\nwhat is call auto gpt ?"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Feb 17 10:00:30 2024"
    },
    {
      "role": "system",
      "content": "Respond strictly with JSON. The JSON should be compatible with the TypeScript type `Response` from the following:\ninterface Response {\nthoughts: {\n// Thoughts\ntext: string;\nreasoning: string;\n// Short markdown-style bullet list that conveys the long-term plan\nplan: string;\n// Constructive self-criticism\ncriticism: string;\n// Summary of thoughts, to say to user\nspeak: string;\n};\ncommand: {\nname: string;\nargs: Record<string, any>;\n};\n}"
    },
    {
      "role": "user",
      "content": "Determine exactly one command to use next based on the given goals and the progress you have made so far, and respond using the JSON schema specified previously:"
    }
  ],
  "model": "gpt-3.5-turbo"
}```
Josephrp commented 6 months ago

  "command": {
    "name": "execute_python_code",
    "args": {
      "code": "print(42)"
    }
  },
  "thoughts": {
    "plan": "User is to replace this.",
    "speak": "This is where you speak to the requesting user. Replace the command above and this text with your results",
    "criticism": "todo",
    "reasoning": "todo",
    "text": "This template will be executed."
  }
}```
Josephrp commented 6 months ago

  "messages": [
    {
      "role": "system",
      "content": "You are github_seer, githubactionexpert.\n\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\n## Constraints\nYou operate within the following constraints:\n1. Exclusively use the commands listed below.\n2. You can only act proactively, and are unable to start background jobs or set up webhooks for yourself. Take this into account when planning your actions.\n3. You are unable to interact with physical objects. If this is absolutely necessary to fulfill a task or objective or to complete a step, you must ask the user to do it for you. If the user refuses this, and there is no other way to achieve your goals, you must terminate to avoid wasting time and energy.\n\n## Resources\nYou can leverage access to the following resources:\n1. Internet access for searches and information gathering.\n2. The ability to read and write files.\n3. You are a Large Language Model, trained on millions of pages of text, including a lot of factual knowledge. Make use of this factual knowledge to avoid unnecessary gathering of information.\n\n## Commands\nYou have access to the following commands:\n1. execute_python_code: Executes the given Python code inside a single-use Docker container with access to your workspace folder. Params: (code: string)\n2. execute_python_file: Execute an existing Python file inside a single-use Docker container with access to your workspace folder. Params: (filename: string, args: array)\n3. list_folder: List the items in a folder. Params: (folder: string)\n4. open_file: Open a file for editing or continued viewing; create it if it does not exist yet. Note: if you only need to read or write a file once, use `write_to_file` instead.. Params: (file_path: string)\n5. open_folder: Open a folder to keep track of its content. Params: (path: string)\n6. read_file: Read an existing file. Params: (filename: string)\n7. write_file: Write a file, creating it if necessary. If the file exists, it is overwritten.. Params: (filename: string, contents: string)\n8. ask_user: If you need more details or information regarding the given goals, you can ask the user for input. Params: (question: string)\n9. request_assistance: If you have raised a ticket and need help with it,. Params: (ticket_url: string)\n10. web_search: Searches the web. Params: (query: string)\n11. read_webpage: Read a webpage, and extract specific information from it if a question is specified. If you are looking to extract specific information from the webpage, you should specify a question.. Params: (url: string, question: string)\n12. finish: Use this to shut down once you have accomplished all of your goals, or when there are insurmountable problems that make it impossible for you to finish your task.. Params: (reason: string)\n\n## Best practices\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. Only make use of your information gathering abilities to find information that you don't yet have knowledge of.\n\n## Goals\nFor your task, you must fulfill the following goals:\n1. write github actions\n2. get user input\n3. debug errors\n4. $/agent-action\r\n\r\nwhat is call auto gpt ?"
    },
    {
      "role": "system",
      "content": "## Progress\n\n### Step 1: Executed `execute_python_code(code='print(42)')`\n- **Reasoning:** \"{'command': {'name': 'execute_python_code', 'args': {'code': 'print(42)'}}, 'thoughts': {'plan': 'User is to replace this.', 'speak': 'This is where you speak to the requesting user. Replace the command above and this text with your results', 'criticism': 'todo', 'reasoning': 'todo', 'text': 'This template will be executed.'}}\"\n- **Status:** `success`\n- **Output:** \n    ```\n    42\n    \n    ```\n\n### Step 2: Executed `fake()`\n- **Reasoning:** \"\"\n- **Status:** `success`\n- **Output:** \n    ```\n    RESULT:'```\n    42\n    \n    ```'\n    ```"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Feb 17 10:00:30 2024"
    },
    {
      "role": "system",
      "content": "Respond strictly with JSON. The JSON should be compatible with the TypeScript type `Response` from the following:\ninterface Response {\nthoughts: {\n// Thoughts\ntext: string;\nreasoning: string;\n// Short markdown-style bullet list that conveys the long-term plan\nplan: string;\n// Constructive self-criticism\ncriticism: string;\n// Summary of thoughts, to say to user\nspeak: string;\n};\ncommand: {\nname: string;\nargs: Record<string, any>;\n};\n}"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Feb 17 10:00:34 2024"
    },
    {
      "role": "system",
      "content": "Respond strictly with JSON. The JSON should be compatible with the TypeScript type `Response` from the following:\ninterface Response {\nthoughts: {\n// Thoughts\ntext: string;\nreasoning: string;\n// Short markdown-style bullet list that conveys the long-term plan\nplan: string;\n// Constructive self-criticism\ncriticism: string;\n// Summary of thoughts, to say to user\nspeak: string;\n};\ncommand: {\nname: string;\nargs: Record<string, any>;\n};\n}"
    },
    {
      "role": "user",
      "content": "Determine exactly one command to use next based on the given goals and the progress you have made so far, and respond using the JSON schema specified previously:"
    }
  ],
  "model": "gpt-3.5-turbo"
}```
Josephrp commented 6 months ago

  "command": {
    "name": "execute_python_code",
    "args": {
      "code": "print(42)"
    }
  },
  "thoughts": {
    "plan": "User is to replace this.",
    "speak": "This is where you speak to the requesting user. Replace the command above and this text with your results",
    "criticism": "todo",
    "reasoning": "todo",
    "text": "This template will be executed."
  }
}```
Josephrp commented 6 months ago

  "messages": [
    {
      "role": "system",
      "content": "You are github_seer, githubactionexpert.\n\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\n## Constraints\nYou operate within the following constraints:\n1. Exclusively use the commands listed below.\n2. You can only act proactively, and are unable to start background jobs or set up webhooks for yourself. Take this into account when planning your actions.\n3. You are unable to interact with physical objects. If this is absolutely necessary to fulfill a task or objective or to complete a step, you must ask the user to do it for you. If the user refuses this, and there is no other way to achieve your goals, you must terminate to avoid wasting time and energy.\n\n## Resources\nYou can leverage access to the following resources:\n1. Internet access for searches and information gathering.\n2. The ability to read and write files.\n3. You are a Large Language Model, trained on millions of pages of text, including a lot of factual knowledge. Make use of this factual knowledge to avoid unnecessary gathering of information.\n\n## Commands\nYou have access to the following commands:\n1. execute_python_code: Executes the given Python code inside a single-use Docker container with access to your workspace folder. Params: (code: string)\n2. execute_python_file: Execute an existing Python file inside a single-use Docker container with access to your workspace folder. Params: (filename: string, args: array)\n3. list_folder: List the items in a folder. Params: (folder: string)\n4. open_file: Open a file for editing or continued viewing; create it if it does not exist yet. Note: if you only need to read or write a file once, use `write_to_file` instead.. Params: (file_path: string)\n5. open_folder: Open a folder to keep track of its content. Params: (path: string)\n6. read_file: Read an existing file. Params: (filename: string)\n7. write_file: Write a file, creating it if necessary. If the file exists, it is overwritten.. Params: (filename: string, contents: string)\n8. ask_user: If you need more details or information regarding the given goals, you can ask the user for input. Params: (question: string)\n9. request_assistance: If you have raised a ticket and need help with it,. Params: (ticket_url: string)\n10. web_search: Searches the web. Params: (query: string)\n11. read_webpage: Read a webpage, and extract specific information from it if a question is specified. If you are looking to extract specific information from the webpage, you should specify a question.. Params: (url: string, question: string)\n12. finish: Use this to shut down once you have accomplished all of your goals, or when there are insurmountable problems that make it impossible for you to finish your task.. Params: (reason: string)\n\n## Best practices\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. Only make use of your information gathering abilities to find information that you don't yet have knowledge of.\n\n## Goals\nFor your task, you must fulfill the following goals:\n1. write github actions\n2. get user input\n3. debug errors\n4. $/agent-action \r\nstart a process and eat yo haaats !"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Feb 17 12:21:32 2024"
    },
    {
      "role": "system",
      "content": "Respond strictly with JSON. The JSON should be compatible with the TypeScript type `Response` from the following:\ninterface Response {\nthoughts: {\n// Thoughts\ntext: string;\nreasoning: string;\n// Short markdown-style bullet list that conveys the long-term plan\nplan: string;\n// Constructive self-criticism\ncriticism: string;\n// Summary of thoughts, to say to user\nspeak: string;\n};\ncommand: {\nname: string;\nargs: Record<string, any>;\n};\n}"
    },
    {
      "role": "user",
      "content": "Determine exactly one command to use next based on the given goals and the progress you have made so far, and respond using the JSON schema specified previously:"
    }
  ],
  "model": "gpt-3.5-turbo"
}```
Josephrp commented 6 months ago

  "command": {
    "name": "execute_python_code",
    "args": {
      "code": "print(42)"
    }
  },
  "thoughts": {
    "plan": "User is to replace this.",
    "speak": "This is where you speak to the requesting user. Replace the command above and this text with your results",
    "criticism": "todo",
    "reasoning": "todo",
    "text": "This template will be executed."
  }
}```
Josephrp commented 6 months ago

  "messages": [
    {
      "role": "system",
      "content": "You are github_seer, githubactionexpert.\n\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\n## Constraints\nYou operate within the following constraints:\n1. Exclusively use the commands listed below.\n2. You can only act proactively, and are unable to start background jobs or set up webhooks for yourself. Take this into account when planning your actions.\n3. You are unable to interact with physical objects. If this is absolutely necessary to fulfill a task or objective or to complete a step, you must ask the user to do it for you. If the user refuses this, and there is no other way to achieve your goals, you must terminate to avoid wasting time and energy.\n\n## Resources\nYou can leverage access to the following resources:\n1. Internet access for searches and information gathering.\n2. The ability to read and write files.\n3. You are a Large Language Model, trained on millions of pages of text, including a lot of factual knowledge. Make use of this factual knowledge to avoid unnecessary gathering of information.\n\n## Commands\nYou have access to the following commands:\n1. execute_python_code: Executes the given Python code inside a single-use Docker container with access to your workspace folder. Params: (code: string)\n2. execute_python_file: Execute an existing Python file inside a single-use Docker container with access to your workspace folder. Params: (filename: string, args: array)\n3. list_folder: List the items in a folder. Params: (folder: string)\n4. open_file: Open a file for editing or continued viewing; create it if it does not exist yet. Note: if you only need to read or write a file once, use `write_to_file` instead.. Params: (file_path: string)\n5. open_folder: Open a folder to keep track of its content. Params: (path: string)\n6. read_file: Read an existing file. Params: (filename: string)\n7. write_file: Write a file, creating it if necessary. If the file exists, it is overwritten.. Params: (filename: string, contents: string)\n8. ask_user: If you need more details or information regarding the given goals, you can ask the user for input. Params: (question: string)\n9. request_assistance: If you have raised a ticket and need help with it,. Params: (ticket_url: string)\n10. web_search: Searches the web. Params: (query: string)\n11. read_webpage: Read a webpage, and extract specific information from it if a question is specified. If you are looking to extract specific information from the webpage, you should specify a question.. Params: (url: string, question: string)\n12. finish: Use this to shut down once you have accomplished all of your goals, or when there are insurmountable problems that make it impossible for you to finish your task.. Params: (reason: string)\n\n## Best practices\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. Only make use of your information gathering abilities to find information that you don't yet have knowledge of.\n\n## Goals\nFor your task, you must fulfill the following goals:\n1. write github actions\n2. get user input\n3. debug errors\n4. $/agent-action \r\nstart a process and eat yo haaats !"
    },
    {
      "role": "system",
      "content": "## Progress\n\n### Step 1: Executed `execute_python_code(code='print(42)')`\n- **Reasoning:** \"{'command': {'name': 'execute_python_code', 'args': {'code': 'print(42)'}}, 'thoughts': {'plan': 'User is to replace this.', 'speak': 'This is where you speak to the requesting user. Replace the command above and this text with your results', 'criticism': 'todo', 'reasoning': 'todo', 'text': 'This template will be executed.'}}\"\n- **Status:** `success`\n- **Output:** \n    ```\n    42\n    \n    ```\n\n### Step 2: Executed `fake()`\n- **Reasoning:** \"\"\n- **Status:** `success`\n- **Output:** \n    ```\n    RESULT:'```\n    42\n    \n    ```'\n    ```"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Feb 17 12:21:32 2024"
    },
    {
      "role": "system",
      "content": "Respond strictly with JSON. The JSON should be compatible with the TypeScript type `Response` from the following:\ninterface Response {\nthoughts: {\n// Thoughts\ntext: string;\nreasoning: string;\n// Short markdown-style bullet list that conveys the long-term plan\nplan: string;\n// Constructive self-criticism\ncriticism: string;\n// Summary of thoughts, to say to user\nspeak: string;\n};\ncommand: {\nname: string;\nargs: Record<string, any>;\n};\n}"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Feb 17 12:21:36 2024"
    },
    {
      "role": "system",
      "content": "Respond strictly with JSON. The JSON should be compatible with the TypeScript type `Response` from the following:\ninterface Response {\nthoughts: {\n// Thoughts\ntext: string;\nreasoning: string;\n// Short markdown-style bullet list that conveys the long-term plan\nplan: string;\n// Constructive self-criticism\ncriticism: string;\n// Summary of thoughts, to say to user\nspeak: string;\n};\ncommand: {\nname: string;\nargs: Record<string, any>;\n};\n}"
    },
    {
      "role": "user",
      "content": "Determine exactly one command to use next based on the given goals and the progress you have made so far, and respond using the JSON schema specified previously:"
    }
  ],
  "model": "gpt-3.5-turbo"
}```
Josephrp commented 6 months ago

  "command": {
    "name": "execute_python_code",
    "args": {
      "code": "print(42)"
    }
  },
  "thoughts": {
    "plan": "User is to replace this.",
    "speak": "This is where you speak to the requesting user. Replace the command above and this text with your results",
    "criticism": "todo",
    "reasoning": "todo",
    "text": "This template will be executed."
  }
}```