Giter VIP home page Giter VIP logo

call-auto-gpt's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

call-auto-gpt's Issues

call benchmark

Your plan for today's work on the AutoGPT Autonomous Agents Hackathon sounds great! To run the official benchmarks in GitHub Actions and provide a comment with the /agent-action command, you should be able to use a command like this:

/agent-action benchmark plan <bot_url> <benchmark_url>

Replace <bot_url> with the URL of your AutoGPT bot and <benchmark_url> with the URL of the official benchmarks. This should help you initiate the benchmarking process and get the results in a comment. Good luck with your hackathon project!

Certainly! You can use the Python click library to create a simple command-line parser for the part after the /agent-action command. Here's a basic example:

import click

@click.command()
@click.option('--action', prompt='Enter action (e.g., benchmark):')
@click.option('--plan', prompt='Enter plan:')
@click.option('--boturl', prompt='Enter bot URL:')
@click.option('--benchmarkurl', prompt='Enter benchmark URL:')
def parse_command(action, plan, boturl, benchmarkurl):
    if action == 'benchmark':
        # You can perform the necessary actions here, e.g., running benchmarks
        click.echo(f'Action: {action}')
        click.echo(f'Plan: {plan}')
        click.echo(f'Bot URL: {boturl}')
        click.echo(f'Benchmark URL: {benchmarkurl}')
    else:
        click.echo('Invalid action.')

if __name__ == '__main__':
    parse_command()

With this code, you can create a simple command-line parser that prompts the user for the action, plan, bot URL, and benchmark URL, and then processes the action if it's "benchmark." You can expand upon this by adding the logic to run benchmarks or perform other actions as needed.

Make sure you have the click library installed in your Python environment to use this code. You can install it using pip install click.

Auto issue

  "messages": [
    {
      "role": "system",
      "content": "You are meta-autogpt, you will introspect autogpt and reveal its internals via reflection and comprehension.\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. Observe your behaviour\n2. Reflect over your outcomes\n3. Orient yourself to your knowledge\n4. Decide on your next step\n5. Act on your chosen next experiment"
    },
    {
      "role": "system",
      "content": "The current time and date is Sat Oct  7 13:02:19 2023"
    },
    {
      "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"
}```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.