This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #336 from fetchai/develop
Merge develop into master for release 0.1.3
- Loading branch information
Showing
104 changed files
with
3,943 additions
and
927 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,17 @@ This repository contains submodules. Clone with recursive strategy: | |
|
||
git clone [email protected]:fetchai/agents-tac.git --recursive && cd agents-tac | ||
|
||
## Quick Start | ||
## Quick Start: | ||
|
||
- [x] You have followed the steps under 'Dependencies' and 'Preliminaries' below | ||
- [x] You have entered the virtual environment and launched the script: | ||
|
||
pipenv shell | ||
python scripts/launch.py | ||
|
||
The controller GUI at http://localhost:8097 provides real time insights. | ||
|
||
## Step by step: | ||
|
||
- [x] You have followed the steps under 'Dependencies' and 'Preliminaries' below | ||
- [x] In one terminal, you have built the sandbox and then launched it: | ||
|
@@ -19,7 +29,7 @@ This repository contains submodules. Clone with recursive strategy: | |
- [x] In another terminal, you have entered the virtual environment and connected a template agent to the sandbox: | ||
|
||
pipenv shell | ||
python3 templates/v1/basic.py --name my_agent --gui | ||
python templates/v1/basic.py --name my_agent --gui | ||
|
||
The sandbox is starting up: | ||
<p align="center"> | ||
|
@@ -88,7 +98,7 @@ The [competition sandbox](../master/sandbox) provides the code to build the dock | |
|
||
- Install the package: | ||
|
||
python3 setup.py install | ||
python setup.py install | ||
|
||
## Contribute | ||
|
||
|
@@ -97,6 +107,10 @@ The following dependency is only relevant if you intend to contribute to the rep | |
|
||
The following steps are only relevant if you intend to contribute to the repository. They are not required for agent development. | ||
|
||
- Clear cache | ||
|
||
pipenv --clear | ||
|
||
- Install development dependencies: | ||
|
||
pipenv install --dev | ||
|
@@ -119,7 +133,7 @@ The following steps are only relevant if you intend to contribute to the reposit | |
|
||
- We recommend you use the latest OEF build: | ||
|
||
python3 oef_search_pluto_scripts/launch.py -c ./oef_search_pluto_scripts/launch_config_latest.json | ||
python oef_search_pluto_scripts/launch.py -c ./oef_search_pluto_scripts/launch_config_latest.json | ||
|
||
## Resources | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
sequenceDiagram | ||
|
||
participant Agent_1 | ||
|
||
participant Agent_2 | ||
|
||
participant Controller | ||
|
||
activate Controller | ||
|
||
Agent_1->>Agent_2: (1) send_cfp(1, 1, "agent_2_pbk", 0, query) | ||
|
||
Agent_2->>Agent_2: (2) get_proposal() | ||
Agent_2->>Agent_2: (3) add_pending_proposal() | ||
|
||
Agent_2->>Agent_1: (4) send_propose(2, 1, "agent_1_pbk", 1, proposals) | ||
|
||
Agent_1->>Agent_1: (5) is_profitable_transaction() | ||
Agent_1->>Agent_1: (6) add_locked_tx() | ||
Agent_1->>Agent_1: (7) add_pending_initial_acceptance() | ||
|
||
Agent_1->>Agent_2: (8) send_accept(3, 1, "agent_2_pbk", 2) | ||
|
||
Agent_2->>Agent_2: (9) pop_pending_proposal() | ||
Agent_2->>Agent_2: (10) is_profitable_transaction() | ||
Agent_2->>Agent_2: (11) add_locked_tx() | ||
|
||
Agent_2->>Agent_1: (12) send_accept(4, 1, "agent_1_pbk", 3) | ||
Agent_2->>Controller: (13) send_message(4, 1, "controller_pbk", transaction) | ||
|
||
Agent_1->>Agent_1: (14) pop_pending_initial_acceptance() | ||
|
||
Agent_1->>Controller: (15) send_message(5, 1, "controller_pbk", transaction) | ||
|
||
Controller->>Agent_1: (16) TransactionConfirmation(transaction) | ||
|
||
Agent_1->>Agent_1: (17) pop_locked_tx() | ||
Agent_1->>Agent_1: (18) agent_state.update() | ||
|
||
Controller->>Agent_2: (19) TransactionConfirmation(transaction) | ||
|
||
Agent_2->>Agent_2: (20) pop_locked_tx() | ||
Agent_2->>Agent_2: (21) agent_state.update() | ||
|
||
deactivate Controller |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
sequenceDiagram | ||
|
||
participant Agent_1 | ||
|
||
participant Agent_2 | ||
|
||
participant Controller | ||
|
||
participant OEF | ||
|
||
|
||
|
||
activate Controller | ||
|
||
Agent_1->>Agent_1: (1) get_service_description() | ||
Agent_1->>OEF: (2) register_service(description) | ||
|
||
Agent_2->>Agent_2: (3) get_service_description() | ||
Agent_2->>OEF: (4) register_service(description) | ||
|
||
Agent_1->>Agent_1: (5) build_services_query() | ||
Agent_1->>OEF: (6) search_services(query) | ||
|
||
OEF->>Agent_1: (7) search_results(agents) | ||
|
||
Agent_1->>Agent_2: (8) send_cfp(1, 1, "agent_2_pbk", 0, query) | ||
Agent_2->>Agent_2: (9) get_proposal() | ||
|
||
Agent_2->>Agent_1: (10) send_propose(2, 1, "agent_1_pbk", 1, proposals) | ||
|
||
Agent_1->>Agent_2: (11) send_accept(3, 1, "agent_2_pbk", 2) | ||
|
||
Agent_2->>Agent_1: (13) send_accept(4, 1, "agent_1_pbk", 3) | ||
Agent_2->>Controller: (14) send_message(4, 1, "controller_pbk", transaction) | ||
|
||
Agent_1->>Controller: (12) send_message(5, 1, "controller_pbk", transaction) | ||
|
||
Controller->>Agent_1: (15) TransactionConfirmation(transaction) | ||
Controller->>Agent_2: (16) TransactionConfirmation(transaction) | ||
|
||
deactivate Controller |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
if [ -z $1 ] | ||
then | ||
echo "Please provide a tag argument." | ||
exit 1; | ||
fi | ||
|
||
STATUS="$(git status)" | ||
|
||
if ! [[ $STATUS == *"nothing to commit, working tree clean"* ]] | ||
then | ||
echo "The working directory is dirty. Please commit any pending changes." | ||
exit 1; | ||
fi | ||
|
||
set -e | ||
|
||
echo "Deleting old publication" | ||
rm -rf _build | ||
|
||
echo "Cloning gh-pages branch" | ||
mkdir _build -p | ||
cd _build | ||
git clone --single-branch --branch gh-pages [email protected]:fetchai/agents-tac.git html | ||
cd .. | ||
|
||
echo "Building docs" | ||
sphinx-apidoc -o reference/api/ ../tac/ | ||
make html | ||
cd _build/html | ||
|
||
echo "Pushing to gh-pages branch" | ||
git add --all && git commit -m "Publish docs ($1)" | ||
git tag $1 | ||
git push origin gh-pages | ||
|
||
echo "Delete local repo" | ||
cd ../../ | ||
make clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.