Skip to content

Commit

Permalink
Merge pull request #226 from valory-xyz/feat/metrics
Browse files Browse the repository at this point in the history
Feat/metrics
  • Loading branch information
dvilelaf authored Nov 12, 2024
2 parents 3999538 + df414bf commit fe1eb4a
Show file tree
Hide file tree
Showing 13 changed files with 81 additions and 94 deletions.
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ In order to run a local demo service based on the IEKit:
2. Fetch the IEKit.

```bash
autonomy fetch valory/impact_evaluator:0.1.0:bafybeib2vgoo73qr46y3isldlg5kwjjlbuv75bbqvu2m32gty6d6r73uoa --service
autonomy fetch valory/impact_evaluator:0.1.0:bafybeihbdws7fzicgmbvvrnwbaeuznqve7n7njt3nmcmznrynlcr7y5whq --service
```

3. Build the Docker image of the service agents
Expand Down Expand Up @@ -95,7 +95,7 @@ In order to run a local demo service based on the IEKit:
TWITTER_SEARCH_ARGS=query=%23OlasNetwork&tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=100&since_id={since_id}
MAX_POINTS_PER_PERIOD=5000
USE_ACN=false
TWITTER_TWEETS_ARGS=tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=10&start_time={start_time}
TWITTER_TWEETS_ARGS=tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=10&start_time={start_time}
DEFAULT_CHAIN_ID=gnosis
USE_TWITTER_STAGING_API=true
TWITTER_API_BASE=https://api.twitter.com/
Expand Down
12 changes: 6 additions & 6 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@
"connection/valory/openai/0.1.0": "bafybeifz2n6s6u3zvvryhhxpkvn6guyp2jwpagtyjducvgwoldtmz7ea64",
"connection/valory/farcaster/0.1.0": "bafybeibbdas7lxbipksodaphjms3uop7vnzjqkroktjq2g6wbvgtlldaxi",
"skill/valory/dynamic_nft_abci/0.1.0": "bafybeic7w6vqpt6rqlw6t7opzm3px2gwb6doo2a6etyyqueez24mbrcqqy",
"skill/valory/twitter_scoring_abci/0.1.0": "bafybeigmwav5wgz27f4tzt7ilgw7ehow52lu4amu3jxqhwienbxif2medm",
"skill/valory/twitter_scoring_abci/0.1.0": "bafybeier6oydc5saiyt2e47moz3n54degmlq2ekcifeagc4ggfcj6aemna",
"skill/valory/ceramic_read_abci/0.1.0": "bafybeigz7rzfls3niv3urfb4z4vwr525ooxveelgg3djpvkg5jzetxlm2u",
"skill/valory/ceramic_write_abci/0.1.0": "bafybeic6c3iub3nsr5tmr7g5vzoixbin6w64ewudfiq6u4r2fiqwbg753i",
"skill/valory/impact_evaluator_abci/0.1.0": "bafybeihnuxvhridnqhkw2itkz5xu5teke3qcafx4ubble4wz5kxrlaoti4",
"skill/valory/impact_evaluator_abci/0.1.0": "bafybeiblxwctj3dzgpn5ev6jpfcm73cdrwhjxetl35sjsyy5hpecbcmozi",
"skill/valory/generic_scoring_abci/0.1.0": "bafybeiffup7abnyqjinsakjawzwr6t6pp32joiuoz4gara7jm7tlfo725q",
"skill/valory/twitter_write_abci/0.1.0": "bafybeibp7zai2qwvfjd5fgpayx44x5c2zshbukpobvz2la7ws2l5f5fjde",
"skill/valory/llm_abci/0.1.0": "bafybeib2k62hilwglfad33bzxkjlviw5bxwiw7z3rjvweyeamatdjznpeq",
"skill/valory/decision_making_abci/0.1.0": "bafybeidj3owli2etpxxfgpfevqis7mtlxmnujsrfqw3pwfq6zvfc5rhfy4",
"skill/valory/olas_week_abci/0.1.0": "bafybeigtfaejaspebcdaeyrhhstkeowxysx7fwdhuli3rnj273qzzxl3by",
"skill/valory/olas_week_abci/0.1.0": "bafybeihtfb7c6m5ncznftfiww62pjwi3w2mkpzbjdwry5mf5msh5szzjt4",
"skill/valory/mech_interact_abci/0.1.0": "bafybeibzhywzwowfmebf4o2bppyjupdpjkdsawceetam4ac3lmh5yp22xy",
"skill/valory/farcaster_write_abci/0.1.0": "bafybeigx2wyujnojer7er7g2eufm5lojon2dckotvsgwb6tn5iyiwdfgsu",
"skill/valory/farcaster_test_abci/0.1.0": "bafybeihd3h37ngkxlqo6o3vuvdik54bwmbrjmqcxtgsr5is3tqgbk73yoa",
"skill/valory/staking_abci/0.1.0": "bafybeieutg3epfnqtaucw6rpkq7vzzt5pkziqt4zlpjmispz2gqzth45ay",
"agent/valory/impact_evaluator/0.1.0": "bafybeicechifb5xod7lbadhjamirl25d6iwo2c6vhvd4b24e3p2scukjqa",
"agent/valory/impact_evaluator/0.1.0": "bafybeicno3rvvk6racd3ounebvhh5vcghbnbgjkdqqdj633nuwarkchfou",
"agent/valory/farcaster_test/0.1.0": "bafybeiefui6dnhhy5leqyvfrbkeleb64gap5tzctkrzzggjf4ubbxamjvy",
"service/valory/impact_evaluator/0.1.0": "bafybeib2vgoo73qr46y3isldlg5kwjjlbuv75bbqvu2m32gty6d6r73uoa",
"service/valory/impact_evaluator_local/0.1.0": "bafybeiaan42jpcp356p7hnrs6ccfwezzv4qlgqow6xjwgu7thwpavm6ium"
"service/valory/impact_evaluator/0.1.0": "bafybeihbdws7fzicgmbvvrnwbaeuznqve7n7njt3nmcmznrynlcr7y5whq",
"service/valory/impact_evaluator_local/0.1.0": "bafybeidnu46oftf25amc54lc4glx27pih62xq5xc4xii66ga62njli74fa"
},
"third_party": {
"protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",
Expand Down
12 changes: 6 additions & 6 deletions packages/valory/agents/impact_evaluator/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ protocols:
skills:
- valory/abstract_abci:0.1.0:bafybeieo7pe5wqjphs5izpz5aujjbubymlxub62b3rhx6yglu65ibalffu
- valory/abstract_round_abci:0.1.0:bafybeibiw4oqwqvo4jccwz5fb73iardzychgvcl66tceiildohoju2ikti
- valory/impact_evaluator_abci:0.1.0:bafybeihnuxvhridnqhkw2itkz5xu5teke3qcafx4ubble4wz5kxrlaoti4
- valory/impact_evaluator_abci:0.1.0:bafybeiblxwctj3dzgpn5ev6jpfcm73cdrwhjxetl35sjsyy5hpecbcmozi
- valory/generic_scoring_abci:0.1.0:bafybeiffup7abnyqjinsakjawzwr6t6pp32joiuoz4gara7jm7tlfo725q
- valory/twitter_scoring_abci:0.1.0:bafybeigmwav5wgz27f4tzt7ilgw7ehow52lu4amu3jxqhwienbxif2medm
- valory/twitter_scoring_abci:0.1.0:bafybeier6oydc5saiyt2e47moz3n54degmlq2ekcifeagc4ggfcj6aemna
- valory/ceramic_read_abci:0.1.0:bafybeigz7rzfls3niv3urfb4z4vwr525ooxveelgg3djpvkg5jzetxlm2u
- valory/ceramic_write_abci:0.1.0:bafybeic6c3iub3nsr5tmr7g5vzoixbin6w64ewudfiq6u4r2fiqwbg753i
- valory/dynamic_nft_abci:0.1.0:bafybeic7w6vqpt6rqlw6t7opzm3px2gwb6doo2a6etyyqueez24mbrcqqy
Expand All @@ -58,7 +58,7 @@ skills:
- valory/twitter_write_abci:0.1.0:bafybeibp7zai2qwvfjd5fgpayx44x5c2zshbukpobvz2la7ws2l5f5fjde
- valory/decision_making_abci:0.1.0:bafybeidj3owli2etpxxfgpfevqis7mtlxmnujsrfqw3pwfq6zvfc5rhfy4
- valory/llm_abci:0.1.0:bafybeib2k62hilwglfad33bzxkjlviw5bxwiw7z3rjvweyeamatdjznpeq
- valory/olas_week_abci:0.1.0:bafybeigtfaejaspebcdaeyrhhstkeowxysx7fwdhuli3rnj273qzzxl3by
- valory/olas_week_abci:0.1.0:bafybeihtfb7c6m5ncznftfiww62pjwi3w2mkpzbjdwry5mf5msh5szzjt4
- valory/mech_interact_abci:0.1.0:bafybeibzhywzwowfmebf4o2bppyjupdpjkdsawceetam4ac3lmh5yp22xy
- valory/staking_abci:0.1.0:bafybeieutg3epfnqtaucw6rpkq7vzzt5pkziqt4zlpjmispz2gqzth45ay
default_ledger: ethereum
Expand Down Expand Up @@ -252,13 +252,13 @@ models:
twitter_api_base: ${str:https://api.twitter.com/}
twitter_api_bearer_token: ${str:<default_bearer_token>}
twitter_mentions_endpoint: ${str:2/users/1450081635559428107/mentions?}
twitter_mentions_args: ${str:tweet.fields=author_id&user.fields=name&expansions=author_id&max_results={max_results}&since_id={since_id}}
twitter_mentions_args: ${str:tweet.fields=author_id,created_at,public_metrics&user.fields=name&expansions=author_id&max_results={max_results}&since_id={since_id}}
twitter_max_pages: ${int:1}
max_tweet_pulls_allowed: ${int:80}
twitter_search_endpoint: ${str:2/tweets/search/recent?}
twitter_search_args: ${str:query={search_query}&tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results={max_results}&since_id={since_id}}
twitter_search_args: ${str:query={search_query}&tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results={max_results}&since_id={since_id}}
twitter_tweets_endpoint: ${str:2/users/1450081635559428107/tweets?}
twitter_tweets_args: ${str:tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
twitter_tweets_args: ${str:tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
openai_call_window_size: ${float:3600.0}
openai_calls_allowed_in_window: ${int:100}
tx_timeout: 10.0
Expand Down
26 changes: 13 additions & 13 deletions packages/valory/services/impact_evaluator/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeign56hilwuoa6bgos3uqabss4gew4vadkik7vhj3ucpqw6nxtqtpe
fingerprint_ignore_patterns: []
agent: valory/impact_evaluator:0.1.0:bafybeicechifb5xod7lbadhjamirl25d6iwo2c6vhvd4b24e3p2scukjqa
agent: valory/impact_evaluator:0.1.0:bafybeicno3rvvk6racd3ounebvhh5vcghbnbgjkdqqdj633nuwarkchfou
number_of_agents: 4
deployment:
agent:
Expand Down Expand Up @@ -101,13 +101,13 @@ extra:
twitter_api_base: ${TWITTER_API_BASE:str:https://api.twitter.com/}
twitter_api_bearer_token: ${TWITTER_API_BEARER_TOKEN:str:null}
twitter_mentions_endpoint: ${TWITTER_MENTIONS_ENDPOINT:str:2/users/1450081635559428107/mentions?}
twitter_mentions_args: ${TWITTER_MENTIONS_ARGS:str:tweet.fields=author_id&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_mentions_args: ${TWITTER_MENTIONS_ARGS:str:tweet.fields=author_id,created_at,public_metrics&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_max_pages: ${TWITTER_MAX_PAGES:int:1}
max_tweet_pulls_allowed: ${MAX_TWEET_PULLS_ALLOWED:int:80}
twitter_search_endpoint: ${TWITTER_SEARCH_ENDPOINT:str:2/tweets/search/recent?}
twitter_search_args: ${TWITTER_SEARCH_ARGS:str:query={search_query}&tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_search_args: ${TWITTER_SEARCH_ARGS:str:query={search_query}&tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_tweets_endpoint: ${TWITTER_TWEETS_ENDPOINT:str:2/users/1450081635559428107/tweets?}
twitter_tweets_args: ${TWITTER_TWEETS_ARGS:str:tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
twitter_tweets_args: ${TWITTER_TWEETS_ARGS:str:tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:true}
validate_timeout: 1205
Expand Down Expand Up @@ -197,13 +197,13 @@ extra:
twitter_api_base: ${TWITTER_API_BASE:str:https://api.twitter.com/}
twitter_api_bearer_token: ${TWITTER_API_BEARER_TOKEN:str:null}
twitter_mentions_endpoint: ${TWITTER_MENTIONS_ENDPOINT:str:2/users/1450081635559428107/mentions?}
twitter_mentions_args: ${TWITTER_MENTIONS_ARGS:str:tweet.fields=author_id&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_mentions_args: ${TWITTER_MENTIONS_ARGS:str:tweet.fields=author_id,created_at,public_metrics&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_max_pages: ${TWITTER_MAX_PAGES:int:1}
max_tweet_pulls_allowed: ${MAX_TWEET_PULLS_ALLOWED:int:80}
twitter_search_endpoint: ${TWITTER_SEARCH_ENDPOINT:str:2/tweets/search/recent?}
twitter_search_args: ${TWITTER_SEARCH_ARGS:str:query={search_query}&tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_search_args: ${TWITTER_SEARCH_ARGS:str:query={search_query}&tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_tweets_endpoint: ${TWITTER_TWEETS_ENDPOINT:str:2/users/1450081635559428107/tweets?}
twitter_tweets_args: ${TWITTER_TWEETS_ARGS:str:tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
twitter_tweets_args: ${TWITTER_TWEETS_ARGS:str:tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:true}
validate_timeout: 1205
Expand Down Expand Up @@ -293,13 +293,13 @@ extra:
twitter_api_base: ${TWITTER_API_BASE:str:https://api.twitter.com/}
twitter_api_bearer_token: ${TWITTER_API_BEARER_TOKEN:str:null}
twitter_mentions_endpoint: ${TWITTER_MENTIONS_ENDPOINT:str:2/users/1450081635559428107/mentions?}
twitter_mentions_args: ${TWITTER_MENTIONS_ARGS:str:tweet.fields=author_id&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_mentions_args: ${TWITTER_MENTIONS_ARGS:str:tweet.fields=author_id,created_at,public_metrics&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_max_pages: ${TWITTER_MAX_PAGES:int:1}
max_tweet_pulls_allowed: ${MAX_TWEET_PULLS_ALLOWED:int:80}
twitter_search_endpoint: ${TWITTER_SEARCH_ENDPOINT:str:2/tweets/search/recent?}
twitter_search_args: ${TWITTER_SEARCH_ARGS:str:query={search_query}&tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_search_args: ${TWITTER_SEARCH_ARGS:str:query={search_query}&tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_tweets_endpoint: ${TWITTER_TWEETS_ENDPOINT:str:2/users/1450081635559428107/tweets?}
twitter_tweets_args: ${TWITTER_TWEETS_ARGS:str:tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
twitter_tweets_args: ${TWITTER_TWEETS_ARGS:str:tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:true}
validate_timeout: 1205
Expand Down Expand Up @@ -391,13 +391,13 @@ extra:
twitter_api_base: ${TWITTER_API_BASE:str:https://api.twitter.com/}
twitter_api_bearer_token: ${TWITTER_API_BEARER_TOKEN:str:null}
twitter_mentions_endpoint: ${TWITTER_MENTIONS_ENDPOINT:str:2/users/1450081635559428107/mentions?}
twitter_mentions_args: ${TWITTER_MENTIONS_ARGS:str:tweet.fields=author_id&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_mentions_args: ${TWITTER_MENTIONS_ARGS:str:tweet.fields=author_id,created_at,public_metrics&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_max_pages: ${TWITTER_MAX_PAGES:int:1}
max_tweet_pulls_allowed: ${MAX_TWEET_PULLS_ALLOWED:int:80}
twitter_search_endpoint: ${TWITTER_SEARCH_ENDPOINT:str:2/tweets/search/recent?}
twitter_search_args: ${TWITTER_SEARCH_ARGS:str:query={search_query}&tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_search_args: ${TWITTER_SEARCH_ARGS:str:query={search_query}&tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_tweets_endpoint: ${TWITTER_TWEETS_ENDPOINT:str:2/users/1450081635559428107/tweets?}
twitter_tweets_args: ${TWITTER_TWEETS_ARGS:str:tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
twitter_tweets_args: ${TWITTER_TWEETS_ARGS:str:tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:true}
validate_timeout: 1205
Expand Down
8 changes: 4 additions & 4 deletions packages/valory/services/impact_evaluator_local/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeign56hilwuoa6bgos3uqabss4gew4vadkik7vhj3ucpqw6nxtqtpe
fingerprint_ignore_patterns: []
agent: valory/impact_evaluator:0.1.0:bafybeicechifb5xod7lbadhjamirl25d6iwo2c6vhvd4b24e3p2scukjqa
agent: valory/impact_evaluator:0.1.0:bafybeicno3rvvk6racd3ounebvhh5vcghbnbgjkdqqdj633nuwarkchfou
number_of_agents: 1
deployment:
agent:
Expand Down Expand Up @@ -100,13 +100,13 @@ models:
twitter_api_base: ${TWITTER_API_BASE:str:https://api.twitter.com/}
twitter_api_bearer_token: ${TWITTER_API_BEARER_TOKEN:str:null}
twitter_mentions_endpoint: ${TWITTER_MENTIONS_ENDPOINT:str:2/users/1450081635559428107/mentions?}
twitter_mentions_args: ${TWITTER_MENTIONS_ARGS:str:tweet.fields=author_id&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_mentions_args: ${TWITTER_MENTIONS_ARGS:str:tweet.fields=author_id,created_at,public_metrics&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_max_pages: ${TWITTER_MAX_PAGES:int:1}
max_tweet_pulls_allowed: ${MAX_TWEET_PULLS_ALLOWED:int:80}
twitter_search_endpoint: ${TWITTER_SEARCH_ENDPOINT:str:2/tweets/search/recent?}
twitter_search_args: ${TWITTER_SEARCH_ARGS:str:query={search_query}&tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_search_args: ${TWITTER_SEARCH_ARGS:str:query={search_query}&tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=25&since_id={since_id}}
twitter_tweets_endpoint: ${TWITTER_TWEETS_ENDPOINT:str:2/users/1450081635559428107/tweets?}
twitter_tweets_args: ${TWITTER_TWEETS_ARGS:str:tweet.fields=author_id,created_at,conversation_id&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
twitter_tweets_args: ${TWITTER_TWEETS_ARGS:str:tweet.fields=author_id,created_at,conversation_id,public_metrics&user.fields=name&expansions=author_id&max_results=50&start_time={start_time}}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:true}
validate_timeout: 1205
Expand Down
Loading

0 comments on commit fe1eb4a

Please sign in to comment.