Skip to content

valory-xyz/hello-world

Hello World AI agent

Example of an autonomous AI agent using the Open Autonomy framework. It comprises a set of 4 autonomous agent instances designed to achieve consensus. The objective is to decide which instance should print a "Hello World" message on its console in each iteration. Please refer to the Open Autonomy documentation - Demos - Hello World for more detailed information.

System requirements

Prepare the environment

  • Clone the repository:

    git clone git@github.com:valory-xyz/hello-world.git
    
  • Create development environment:

    make new_env && pipenv shell
    
  • Configure the Open Autonomy CLI:

    autonomy init --reset --author valory --remote --ipfs --ipfs-node "/dns/registry.autonolas.tech/tcp/443/https"
    
  • Pull packages:

    autonomy packages sync --update-packages
    

Deploy the AI agent

  • Fetch the AI agent from the local registry:

    autonomy fetch valory/hello_world:0.1.0 --local --service --alias hello_world_service; cd hello_world_service
    
  • Build the agent blueprint docker image:

    autonomy build-image
    
  • Generate testing keys for 4 agent instances:

    autonomy generate-key ethereum -n 4
    

    This will generate a keys.json file.

  • Export the environment variable ALL_PARTICIPANTS. You must use the 4 agent instance addresses found in keys.json above:

    export ALL_PARTICIPANTS='["0xAddress1", "0xAddress2", "0xAddress3", "0xAddress4"]'
    
  • Build the deployment (Docker Compose):

    autonomy deploy build ./keys.json -ltm
    
  • Run the deployment:

    autonomy deploy run --build-dir ./abci_build/
    

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 11