Skip to content

Commit

Permalink
minor agent example to show agents monitoring and updating inventory (#…
Browse files Browse the repository at this point in the history
…32)

* minor agent example

* db file

---------

Co-authored-by: Joshua Croft <[email protected]>
  • Loading branch information
devjsc and Joshua Croft authored Jan 16, 2025
1 parent 4e7d16f commit abb6cc8
Show file tree
Hide file tree
Showing 5 changed files with 1,630 additions and 0 deletions.
28 changes: 28 additions & 0 deletions 2-solutions/inventory-monitoring/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Minimal multi-agent inventory monitoring

This project demonstrates a simple example of supply level monitoring, and how two agents can work together to keep a supply level consistent. These agents are working as siloed monitors, one agent tracks a fuel level, and another add more fuel to the store. A third agent randomly takes some fuel.

## Prerequisites
- [Poetry](https://python-poetry.org/docs/#installation) installed on your machine

## Dependencies
- Python >= 3.10
- tiny_db >= 2.9.9
- uagents == 0.13.0 (compatible with Python >= 3.10, < 3.13)

## Project Structure
```
.inventory-monitoring 
├── README.md
└── src
├── db.json
└── main.py
```



## How run the project
- git clone `https://github.com/fetchai/docs_examples.git`
- Navigate to the cloned repo
- in the root folder of the repo run `poetry install`
- then `cd src && poetry run python main.py`
Loading

0 comments on commit abb6cc8

Please sign in to comment.