Car Park Agent Application
The Fetch.ai car park agent demo is documented in its own repo here.
To test the AEA functionality (without the detection)
Let's reference a diagram
sequenceDiagram participant Agent_0 participant Agent_1 participant Agent_2 participant Controller participant OEF activate Controller Agent_1->>Agent_2: send_cfp(msg_id: 1, dialogue_id: 1, destination: agent_2_pbk, target: 0, query=Query) Agent_2->>Agent_1: send_propose(msg_id: 2, dialogue_id: 1, destination: agent_1_pbk, target: 1, proposals=List[Description]) Agent_1->>Agent_2: send_accept(msg_id: 3, dialogue_id: 1, destination: agent_2_pbk, target: 2) Agent_1->>Controller: send_message(msg_id: 3, dialogue_id: 1, destination: controller_pbk, msg: Transaction) Agent_2->>Agent_1: send_accept(msg_id: 4, dialogue_id: 1, destination: agent_1_pbk, target: 3) Agent_2->>Controller: send_message(msg_id: 4, dialogue_id: 1, destination: controller_pbk, msg: Transaction) deactivate Controllermkdocs mermaid
First, create the carpark detection agent:
aea create car_detector
cd car_detector
aea add skill carpark_detection
aea install
Then, create the carpark client agent:
aea create car_data_buyer
cd car_data_buyer
aea add skill carpark_client
aea install
aea generate-key fetchai
Add the ledger info to both aea configs:
ledger_apis:
- ledger_api:
ledger: fetchai
addr: alpha.fetch-ai.com
port: 80
Fund the carpark client agent:
cd ..
python scripts/fetchai_wealth_generation.py --private-key car_data_buyer/fet_private_key.txt --amount 10000000000 --addr alpha.fetch-ai.com --port 80
Then, in the carpark detection agent comment out database related settings:
# db_is_rel_to_cwd: true
# db_rel_dir: ../temp_files
Then, in the client agent do:
max_detection_age: 36000000
Then, launch an OEF node instance:
python scripts/oef/launch.py -c ./scripts/oef/launch_config.json
Finally, run both agents with aea run
.