Skip to content

Overview of the development process

The figure below presents the development process with Open Autonomy: from the idea of an off-chain AI agent to its deployment in production. If you have completed the quick start guide you have already navigated through a significant part of this process.

Overview of the development process with the Open Autonomy framework

This is a summary of each step:

  1. Draft the AI agent idea. Any AI agent that needs to execute its functionality in an autonomous, transparent and decentralized way is a good candidate. You can take a look at some use cases to get an idea of what you can build with Open Autonomy.

  2. Define the FSM specification. Describe the AI agent business logic as a finite-state machine (FSM) in a language understood by the framework. This specification defines what are the states of the AI agent, and how to transit from one to another.

  3. Code the FSM App skill. The actual business logic is encoded in the FSM App that lives inside each agent instance. Coding the FSM App involves scaffolding the "skeleton" of the classes, and complete the actual details of the actions executed in each state.

  4. Define the agent blueprint. Define the components of the agent blueprint required to execute your AI agent, including the newly created FSM App. You can reuse already existing components publicly available on a remote registry.

  5. Define the AI agent. This consists in defining the AI agent configuration and declaring what agent blueprint constitute the AI agent, together with a number of configuration parameters required.

  6. Publish and mint packages. Those are required steps to make the AI agent publicly available in the remote registry and secure it in the Olas Protocol.

  7. Deploy the AI agent. You can deploy directly your AI agent locally for testing purposes. To deploy a production AI agent secured in the Olas Protocol you first need to bring the AI agent to the Deployed state in the protocol.

Populate the local registry for the guides

To follow the next sections, you need to populate the local registry with a number of packages shipped with the framework. To do so, edit the local registry index file (./packages/packages.json) and ensure that it has the following third_party entries:

{
    "dev": {
    },
    "third_party": {
        "service/valory/hello_world/0.1.0": "bafybeib5a5qxpx7sq6kzqjuirp6tbrujwz5zvj25ot7nsu3tp3me3ikdhy",
        "agent/valory/hello_world/0.1.0": "bafybeigfvkvjaqnelvjgrl2uroxdrwlcsabnusgdnkbsu6smwtg6skd52y",
        "connection/valory/abci/0.1.0": "bafybeihoh3pe47zoouuudqlidspvmqpuc62a7qszhznieqdkdjpzl4vsaq",
        "connection/valory/http_client/0.23.0": "bafybeib34a2ukancj5524tz64smczju2q2njscgufmtml6dcjb3bjyaocy",
        "connection/valory/ipfs/0.1.0": "bafybeif7exoq2viwhfgfcjplxq73hnxvgpsx7pwshhntx6aekza25mdwli",
        "connection/valory/ledger/0.19.0": "bafybeifdsep5suryfufmto4j5fyvjhmlgypyg6zvvwqsm4edlwfbfsav5y",
        "contract/valory/service_registry/0.1.0": "bafybeieprxqowacuaqrhhzkv476i2zsnf4hs2ffusdgvlga3ruurrjdaqu",
        "protocol/open_aea/signing/1.0.0": "bafybeib7p5as3obcdzseiwg5umj2piiqaodkxkto7qh7b552l5emwsmdzm",
        "protocol/valory/abci/0.1.0": "bafybeigdi6wsbdn2nv7clzhnuhki3taywgiiajwawdaat57o5ntlgqj2qe",
        "protocol/valory/acn/1.1.0": "bafybeicztpzulro64brsms6qmlav3dz635eykpb7ihtchu2eke2hr52efa",
        "protocol/valory/contract_api/1.0.0": "bafybeicmo2ufeoqyyczkom6xp3nwmhosd75kpe4xfwn7gaz6vegj732b4m",
        "protocol/valory/http/1.0.0": "bafybeibxab2yfpchusrzw4rgrasjomtpphazanpivhhtznmuao5ny2lsmi",
        "protocol/valory/ipfs/0.1.0": "bafybeib7jhgyocjwdq3r5wzq3z4qeubj3dwi3aqjn2uxzuwnjp5fhvafcu",
        "protocol/valory/ledger_api/1.0.0": "bafybeiga6gdd3ccdt5jgrov474koz524f3pfbhprwxfjj7wextkl7wozsa",
        "protocol/valory/tendermint/0.1.0": "bafybeif5wq5i2ugr66alniej2bk4vws5sikal7otx674y5kz52e3ulo2qm",
        "skill/valory/abstract_abci/0.1.0": "bafybeihbstfafzdk4ecb4nkuo3vz3incrvgibljaqf5khtm3yxqswklj5i",
        "skill/valory/abstract_round_abci/0.1.0": "bafybeib4xpcpuiryyfnkuyhypdvqi5ebbl7ugavv6ig6yp4nzk3fxosntm",
        "skill/valory/hello_world_abci/0.1.0": "bafybeibj7uripgimp6eklmkltpo2gwqyinq524wficoulod3b5ehzrivv4",
        "connection/valory/p2p_libp2p_client/0.1.0": "bafybeihezztwiiismlbblbv67i4zibp7w6xzpqadt67mcdjaoauibjqii4"
    }
}

Execute the following command after updating the packages.json file:

autonomy packages sync

The framework will fetch components from the remote registry into the local registry.

Do you already have an existing agent blueprint or AI agent?

If you already have an existing agent blueprint (or if you want to create an AI agent with the default hello_world agent blueprint), you can skip to Step 5.

If you already have an existing AI agent (or if you want to test the default hello_world AI agent), you can skip to Step 6 or Step 7.