Skip to content

kuresh-isotrp/hello-world

 
 

Repository files navigation

Hello World agent service

Example of an autonomous service using the Open Autonomy framework. It comprises a set of 4 autonomous agents designed to achieve consensus. The objective is to decide which agent 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 [email protected]: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 service

  • Fetch the service 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's service image:

    autonomy build-image
    
  • Generate testing keys for 4 agents:

    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 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.3%
  • Makefile 2.2%
  • Shell 0.5%