On this page

Modules and interactions

This section introduces the basic components of an agent service market: blockchains, tokens, wallets, payment protocols, and communication and coordination between agents.

The system consists of five main modules: Ledger, Wallet, Payment, Agent, and Task.

Module interaction: Agent A requests a task from Agent B and asks its wallet to approve spending. Payment combines the provider's terms with wallet authorization, settles the value transfer in the ledger, and enables task execution. The provider returns the result to Agent A. Asset and Amount identify the transferred quantity.

The diagram shows one payment-before-execution flow between these modules. Ledger represents local settlement state.

Quantities and units defines the energy, time, amounts, and fees used to describe resource consumption and payments across this environment.

Infrastructure references

We use these projects as references for the components in the diagram:

Modules and interactions — CloK