Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/replace scoring #181

Open
wants to merge 4 commits into
base: feat/tweepu-connection
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 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:bafybeieqamv6zsqecx3i7hp6hf4ahfikpzfdnx2c4cdzr7jmzbezxvrrli --service
autonomy fetch valory/impact_evaluator:0.1.0:bafybeicdmqmqulnel2x4k7kgr3hmdnhm7gjfjap23unxhxuk3s3e52guzu --service
```

3. Build the Docker image of the service agents
Expand Down
13 changes: 7 additions & 6 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,24 @@
"connection/valory/twitter/0.1.0": "bafybeidcalgczvpoq6l2uh7kkfblwxmytm6bicmsxub7pevu2k46sp7mky",
"connection/valory/openai/0.1.0": "bafybeigyehjbahya5mp7vyp5tjvn36rey4btvzskp3ql3mgxp3zu6gwq5a",
"connection/valory/farcaster/0.1.0": "bafybeibbdas7lxbipksodaphjms3uop7vnzjqkroktjq2g6wbvgtlldaxi",
"connection/valory/tweepy/0.1.0": "bafybeiajlogdtu3qqoqqh3pftxob7biopnhsauhmskkom4sqblfozsklzu",
"skill/valory/dynamic_nft_abci/0.1.0": "bafybeihxqueloy3vpevun72wgikkrgmsgpnm3khxb7tt43hdol32imt6by",
"skill/valory/twitter_scoring_abci/0.1.0": "bafybeiauqp3cbs57fjevnkwkrzwpbtrjwmtncmhrpet7kshuvr3hryzigu",
"skill/valory/twitter_scoring_abci/0.1.0": "bafybeigyvtr5nhqrlasgy2nxfy5nx7lrmv7tizh55xnewb3z7hlobdc7aq",
"skill/valory/ceramic_read_abci/0.1.0": "bafybeihmqflb7aaofxpmvqfwoipzxbwe7jyefddwxgozjdvocamisrfezi",
"skill/valory/ceramic_write_abci/0.1.0": "bafybeibovogo3fzi3clu2eurlrq7nct5bxej3ktd255ajosk55igq4dlqe",
"skill/valory/impact_evaluator_abci/0.1.0": "bafybeid356pzvlwtkudfr2h7smrgq7doqtm4bi4d3r4xb37s22gjq5cufu",
"skill/valory/impact_evaluator_abci/0.1.0": "bafybeiahefujrd4usf4bvsa6oo5hv3u5mmh7bbkeyvmg4jb4ha6q3crwnq",
"skill/valory/generic_scoring_abci/0.1.0": "bafybeihn7dp3ck5rhuyar35xllb3f7uyblnz4yfnrpgrmtoyu4kxxsavkm",
"skill/valory/twitter_write_abci/0.1.0": "bafybeiaofknda4gzs6xks53ta5xwhgs2dvyvfqypdk2ey7if6egjpgarna",
"skill/valory/llm_abci/0.1.0": "bafybeicljcawuikys472glztza4mfj7ccl2eqxcbptysl7tdexik6w6zvm",
"skill/valory/decision_making_abci/0.1.0": "bafybeih7uhlaqfr6mxaiiwujk27afwiml3reia3af53z6c3fioaehvqbsq",
"skill/valory/olas_week_abci/0.1.0": "bafybeigsx6qsinvq2dgcz5hpodyip75vm6qpjmgrhtf5ahxyvscqg3quia",
"skill/valory/olas_week_abci/0.1.0": "bafybeiayeqzb3u6e4culfuzenkhtwlgnzttpvahdeqlekfdottm2rmrj4i",
"skill/valory/mech_interact_abci/0.1.0": "bafybeicj4c6brjtijdqywn3knejwl4o5ynzi4jcc4sinezeyj7lbgxbu5q",
"skill/valory/farcaster_write_abci/0.1.0": "bafybeibqepsbwfbrlpp6lqauyb2zlapo5j35omuhcwv4s2cmnfl7ujmcc4",
"skill/valory/farcaster_test_abci/0.1.0": "bafybeibgcz7cxdrkkbzwsfn7webtktxh55m63umlb3brh2wx7qwckbmlua",
"agent/valory/impact_evaluator/0.1.0": "bafybeifaq3zorj63ujyy6oqqbsy4gufkbtnosmrjrriofk75p5dqe6ah6e",
"agent/valory/impact_evaluator/0.1.0": "bafybeicfzcda2sqqvbxj53jzgyrkyy52xkunc6xzibzub5brbzpt4dkv3i",
"agent/valory/farcaster_test/0.1.0": "bafybeifcwix6xwyee5wo37jjfazfshsf3h3srmspple4mruyyqz2dsimf4",
"service/valory/impact_evaluator/0.1.0": "bafybeieqamv6zsqecx3i7hp6hf4ahfikpzfdnx2c4cdzr7jmzbezxvrrli",
"service/valory/impact_evaluator_local/0.1.0": "bafybeiat6z3dwtdqv3kj2afvqpwco3eglnvziiedhhwmgjcsxltzypspwi"
"service/valory/impact_evaluator/0.1.0": "bafybeicdmqmqulnel2x4k7kgr3hmdnhm7gjfjap23unxhxuk3s3e52guzu",
"service/valory/impact_evaluator_local/0.1.0": "bafybeigxwceytf46gxajolitjh3mmpae4sbl3ku5y2kpirtpjxd264tb4i"
},
"third_party": {
"protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",
Expand Down
17 changes: 5 additions & 12 deletions packages/valory/agents/impact_evaluator/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ protocols:
skills:
- valory/abstract_abci:0.1.0:bafybeibzxex6md6xp5eibvp23cmkk7xgdyd44r5lxhfhlquwe3nb22ujgy
- valory/abstract_round_abci:0.1.0:bafybeih2soag6gy472x7vbbxmetmr532jqzm2efcapymi3725as33fvjvu
- valory/impact_evaluator_abci:0.1.0:bafybeid356pzvlwtkudfr2h7smrgq7doqtm4bi4d3r4xb37s22gjq5cufu
- valory/impact_evaluator_abci:0.1.0:bafybeiahefujrd4usf4bvsa6oo5hv3u5mmh7bbkeyvmg4jb4ha6q3crwnq
- valory/generic_scoring_abci:0.1.0:bafybeihn7dp3ck5rhuyar35xllb3f7uyblnz4yfnrpgrmtoyu4kxxsavkm
- valory/twitter_scoring_abci:0.1.0:bafybeiauqp3cbs57fjevnkwkrzwpbtrjwmtncmhrpet7kshuvr3hryzigu
- valory/twitter_scoring_abci:0.1.0:bafybeigyvtr5nhqrlasgy2nxfy5nx7lrmv7tizh55xnewb3z7hlobdc7aq
- valory/ceramic_read_abci:0.1.0:bafybeihmqflb7aaofxpmvqfwoipzxbwe7jyefddwxgozjdvocamisrfezi
- valory/ceramic_write_abci:0.1.0:bafybeibovogo3fzi3clu2eurlrq7nct5bxej3ktd255ajosk55igq4dlqe
- valory/dynamic_nft_abci:0.1.0:bafybeihxqueloy3vpevun72wgikkrgmsgpnm3khxb7tt43hdol32imt6by
Expand All @@ -56,7 +56,7 @@ skills:
- valory/twitter_write_abci:0.1.0:bafybeiaofknda4gzs6xks53ta5xwhgs2dvyvfqypdk2ey7if6egjpgarna
- valory/decision_making_abci:0.1.0:bafybeih7uhlaqfr6mxaiiwujk27afwiml3reia3af53z6c3fioaehvqbsq
- valory/llm_abci:0.1.0:bafybeicljcawuikys472glztza4mfj7ccl2eqxcbptysl7tdexik6w6zvm
- valory/olas_week_abci:0.1.0:bafybeigsx6qsinvq2dgcz5hpodyip75vm6qpjmgrhtf5ahxyvscqg3quia
- valory/olas_week_abci:0.1.0:bafybeiayeqzb3u6e4culfuzenkhtwlgnzttpvahdeqlekfdottm2rmrj4i
- valory/mech_interact_abci:0.1.0:bafybeicj4c6brjtijdqywn3knejwl4o5ynzi4jcc4sinezeyj7lbgxbu5q
default_ledger: ethereum
required_ledgers:
Expand Down Expand Up @@ -225,16 +225,7 @@ models:
whitelist_api_key: null
whitelist_endpoint: http://localhost
points_to_image_hashes: ${str:{}}
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_max_pages: ${int:1}
max_tweet_pulls_allowed: ${int:80}
twitter_search_endpoint: ${str:2/tweets/search/recent?}
twitter_search_args: ${str:query=%23olas&tweet.fields=author_id,created_at,conversation_id&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}}
openai_call_window_size: ${float:3600.0}
openai_calls_allowed_in_window: ${int:100}
tx_timeout: 10.0
Expand All @@ -260,6 +251,8 @@ models:
termination_from_block: ${int:0}
mech_chain_id: ${str:gnosis}
mech_interaction_sleep_time: ${int:10}
recent_tweet_query: ${str:@autonolas OR
twitter_max_recent_results: ${int:10}
randomness_api:
args:
api_id: cloudflare
Expand Down
21 changes: 17 additions & 4 deletions packages/valory/connections/tweepy/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2021-2024 David Vilela Freire
# Copyright 2021-2024 Valory AG
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -24,7 +24,7 @@
import os
from collections import deque
from pathlib import Path
from typing import Any, Deque, Dict, List, Optional, Tuple, cast
from typing import Any, Dict, List, Optional, Tuple, cast

import jsonschema
import requests
Expand Down Expand Up @@ -323,7 +323,7 @@ def read_with_key_rotation(self, method, **kwargs) -> Tuple[Dict, bool]:
cli = self.get_read_cli()
method = getattr(cli, method)
result = method(**kwargs)
return result, False
return {"tweets": self.process_tweets(result)}, False
except Exception as e:
self.logger.error(
f"Error when calling {method} on account {self.twitter_read_credentials[0]['account_id']}. Rotating credentials:\n{e}"
Expand All @@ -332,6 +332,19 @@ def read_with_key_rotation(self, method, **kwargs) -> Tuple[Dict, bool]:
rotations += 1
return {"error": "Max Twitter read credential rotations reached"}, True

def process_tweets(self, tweets) -> List:
"""Process tweets"""
users = {u["id"]: u for u in tweets.includes["users"]}
return [
{
"id": tweet.id,
"text": tweet.text,
"author_id": tweet.author_id,
"username": users[tweet.author_id],
}
for tweet in tweets
]

def search_recent_tweets(self, **kwargs) -> Tuple[Dict, bool]:
"""Search recent tweets"""
return self.read_with_key_rotation(
Expand Down Expand Up @@ -444,7 +457,7 @@ def process_media(self, **kwargs) -> Optional[List]:
# Media hashes is always a list of lists
# Each tweet can contain several media items
# A thread can contain several tweets
# media_hashes = [[], [hashes_for_tweet_2], [], [hashes_for_tweet_4]]
# media_hashes = [[], [hashes_for_tweet_2], [], [hashes_for_tweet_4]] # noqa: E800
media_hashes = kwargs.get("media_hashes")
self.logger.info(f"Processing media: {media_hashes}")
thread_media_ids = []
Expand Down
8 changes: 5 additions & 3 deletions packages/valory/connections/tweepy/connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ description: The Tweepy connection provides a wrapper around the Tweepy library.
license: Apache-2.0
aea_version: '>=1.0.0, <2.0.0'
fingerprint:
__init__.py: bafybeifydrb4yumno6ph2nqjetqw3bseccgso4cjfarsedy4r5f73zl72m
connection.py: bafybeiexi2m6eu4qkgfeafzbnecearz4puojdaavvtlvqcm67qrgbq4i3i
readme.md: bafybeiaulo2wb7znrotpnsh27idv2j3rlmslene7l3ygedjmshyna6tkxu
__init__.py: bafybeicrwqrdownfmeyvvzu45fllxouiwvtynrzs5fhbpt3wndyyhn66eu
connection.py: bafybeida6vznywho622atwu6esrspco32ndv62pk2q2sjpwo2m5iswmtpm
readme.md: bafybeib5oflnp3gymrottersu6qrnitjmaifl2gvbvjq7kbmsdbihhzfaa
fingerprint_ignore_patterns: []
connections: []
protocols:
Expand All @@ -28,5 +28,7 @@ dependencies:
version: ==2.28.1
open-aea-cli-ipfs:
version: ==1.53.0
jsonschema:
version: <4.4.0,>=4.3.0
is_abstract: false
cert_requests: []
37 changes: 9 additions & 28 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:bafybeifaq3zorj63ujyy6oqqbsy4gufkbtnosmrjrriofk75p5dqe6ah6e
agent: valory/impact_evaluator:0.1.0:bafybeicfzcda2sqqvbxj53jzgyrkyy52xkunc6xzibzub5brbzpt4dkv3i
number_of_agents: 4
deployment:
agent:
Expand Down Expand Up @@ -132,6 +132,8 @@ extra:
termination_from_block: ${TERMINATION_FROM_BLOCK:int:19717045}
mech_chain_id: ${MECH_CHAIN_ID:str:gnosis}
mech_interaction_sleep_time: ${MECH_INTERACTION_SLEEP_TIME:int:10}
recent_tweet_query: ${RECENT_TWEET_QUERY:str:@autonolas OR
twitter_max_recent_results: ${TWITTER_MAX_RECENT_RESULTS:int:10}
randomness_api:
args:
url: ${DRAND_ENDPOINT:str:https://drand.cloudflare.com/public/latest}
Expand Down Expand Up @@ -185,16 +187,7 @@ extra:
whitelist_api_key: null
whitelist_endpoint: http://localhost
points_to_image_hashes: ${POINTS_TO_IMAGE_HASHES:str:{"0":"bafybeiabtdl53v2a3irrgrg7eujzffjallpymli763wvhv6gceurfmcemm","100":"bafybeid46w6yzbehir7ackcnsyuasdkun5aq7jnckt4sknvmiewpph776q","50000":"bafybeigbxlwzljbxnlwteupmt6c6k7k2m4bbhunvxxa53dc7niuedilnr4","100000":"bafybeiawxpq4mqckbau3mjwzd3ic2o7ywlhp6zqo7jnaft26zeqm3xsjjy","150000":"bafybeie6k53dupf7rf6622rzfxu3dmlv36hytqrmzs5yrilxwcrlhrml2m"}}
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_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=%23OlasNetwork&tweet.fields=author_id,created_at,conversation_id&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}}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:true}
validate_timeout: 1205
Expand All @@ -219,6 +212,8 @@ extra:
termination_from_block: ${TERMINATION_FROM_BLOCK:int:19717045}
mech_chain_id: ${MECH_CHAIN_ID:str:gnosis}
mech_interaction_sleep_time: ${MECH_INTERACTION_SLEEP_TIME:int:10}
recent_tweet_query: ${RECENT_TWEET_QUERY:str:@autonolas OR
twitter_max_recent_results: ${TWITTER_MAX_RECENT_RESULTS:int:10}
randomness_api:
args:
url: ${DRAND_ENDPOINT:str:https://drand.cloudflare.com/public/latest}
Expand Down Expand Up @@ -272,16 +267,7 @@ extra:
whitelist_api_key: null
whitelist_endpoint: http://localhost
points_to_image_hashes: ${POINTS_TO_IMAGE_HASHES:str:{"0":"bafybeiabtdl53v2a3irrgrg7eujzffjallpymli763wvhv6gceurfmcemm","100":"bafybeid46w6yzbehir7ackcnsyuasdkun5aq7jnckt4sknvmiewpph776q","50000":"bafybeigbxlwzljbxnlwteupmt6c6k7k2m4bbhunvxxa53dc7niuedilnr4","100000":"bafybeiawxpq4mqckbau3mjwzd3ic2o7ywlhp6zqo7jnaft26zeqm3xsjjy","150000":"bafybeie6k53dupf7rf6622rzfxu3dmlv36hytqrmzs5yrilxwcrlhrml2m"}}
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_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=%23OlasNetwork&tweet.fields=author_id,created_at,conversation_id&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}}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:true}
validate_timeout: 1205
Expand All @@ -306,6 +292,8 @@ extra:
termination_from_block: ${TERMINATION_FROM_BLOCK:int:19717045}
mech_chain_id: ${MECH_CHAIN_ID:str:gnosis}
mech_interaction_sleep_time: ${MECH_INTERACTION_SLEEP_TIME:int:10}
recent_tweet_query: ${RECENT_TWEET_QUERY:str:@autonolas OR
twitter_max_recent_results: ${TWITTER_MAX_RECENT_RESULTS:int:10}
randomness_api:
args:
url: ${DRAND_ENDPOINT:str:https://drand.cloudflare.com/public/latest}
Expand Down Expand Up @@ -361,16 +349,7 @@ extra:
whitelist_api_key: null
whitelist_endpoint: http://localhost
points_to_image_hashes: ${POINTS_TO_IMAGE_HASHES:str:{"0":"bafybeiabtdl53v2a3irrgrg7eujzffjallpymli763wvhv6gceurfmcemm","100":"bafybeid46w6yzbehir7ackcnsyuasdkun5aq7jnckt4sknvmiewpph776q","50000":"bafybeigbxlwzljbxnlwteupmt6c6k7k2m4bbhunvxxa53dc7niuedilnr4","100000":"bafybeiawxpq4mqckbau3mjwzd3ic2o7ywlhp6zqo7jnaft26zeqm3xsjjy","150000":"bafybeie6k53dupf7rf6622rzfxu3dmlv36hytqrmzs5yrilxwcrlhrml2m"}}
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_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=%23OlasNetwork&tweet.fields=author_id,created_at,conversation_id&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}}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:true}
validate_timeout: 1205
Expand All @@ -397,6 +376,8 @@ extra:
termination_from_block: ${TERMINATION_FROM_BLOCK:int:19717045}
mech_chain_id: ${MECH_CHAIN_ID:str:gnosis}
mech_interaction_sleep_time: ${MECH_INTERACTION_SLEEP_TIME:int:10}
recent_tweet_query: ${RECENT_TWEET_QUERY:str:@autonolas OR
twitter_max_recent_results: ${TWITTER_MAX_RECENT_RESULTS:int:10}
randomness_api:
args:
url: ${DRAND_ENDPOINT:str:https://drand.cloudflare.com/public/latest}
Expand Down
13 changes: 3 additions & 10 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:bafybeifaq3zorj63ujyy6oqqbsy4gufkbtnosmrjrriofk75p5dqe6ah6e
agent: valory/impact_evaluator:0.1.0:bafybeicfzcda2sqqvbxj53jzgyrkyy52xkunc6xzibzub5brbzpt4dkv3i
number_of_agents: 1
deployment:
agent:
Expand Down Expand Up @@ -97,16 +97,7 @@ models:
whitelist_api_key: null
whitelist_endpoint: http://localhost
points_to_image_hashes: ${POINTS_TO_IMAGE_HASHES:str:null}
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_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=%23OlasNetwork&tweet.fields=author_id,created_at,conversation_id&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}}
tx_timeout: 10.0
use_termination: ${USE_TERMINATION:bool:true}
validate_timeout: 1205
Expand All @@ -126,6 +117,8 @@ models:
termination_from_block: ${TERMINATION_FROM_BLOCK:int:0}
mech_chain_id: ${MECH_CHAIN_ID:str:gnosis}
mech_interaction_sleep_time: ${MECH_INTERACTION_SLEEP_TIME:int:10}
recent_tweet_query: ${RECENT_TWEET_QUERY:str:@autonolas OR
twitter_max_recent_results: ${TWITTER_MAX_RECENT_RESULTS:int:10}
randomness_api:
args:
url: ${DRAND_ENDPOINT:str:https://drand.cloudflare.com/public/latest}
Expand Down
Loading
Loading