From 904abaee5c07355fe919b62548082f74ab699cbd Mon Sep 17 00:00:00 2001 From: angrybayblade Date: Mon, 14 Aug 2023 19:30:50 +0530 Subject: [PATCH] fix: define `tweet_evaluation_round_timeout` param --- docs/index.md | 2 +- packages/packages.json | 8 ++++---- packages/valory/agents/impact_evaluator/aea-config.yaml | 4 ++-- packages/valory/services/impact_evaluator/service.yaml | 2 +- packages/valory/skills/impact_evaluator_abci/skill.yaml | 2 +- packages/valory/skills/twitter_scoring_abci/models.py | 3 +++ packages/valory/skills/twitter_scoring_abci/skill.yaml | 3 ++- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/docs/index.md b/docs/index.md index 4cadbf11..08b15506 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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:bafybeibe5uu2nqoxhskw2sdvehe7bok37x4qqbtdpxpnwkqhtfupf64vk4 --service + autonomy fetch valory/impact_evaluator:0.1.0:bafybeidhyioamtmsvrq3be4gw7wobk3jdeum7mjiscgktth7zvq7iffmd4 --service ``` 3. Build the Docker image of the service agents diff --git a/packages/packages.json b/packages/packages.json index 636d6ed3..1048ef4e 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -1,13 +1,13 @@ { "dev": { - "agent/valory/impact_evaluator/0.1.0": "bafybeicqakhjh3e3dvh64bdnr23mlc7ynozhnu2gvrmvcx5qqpuchw276e", + "agent/valory/impact_evaluator/0.1.0": "bafybeif4dhigvti7e4qlb4dm7htfexrvppwivcll4uxzct2g4ssc4xbgvm", "contract/valory/dynamic_contribution/0.1.0": "bafybeiaapvt7o4s5zpkxjcaplbzw7bhgeeqwtsddzjxmg6bfth6ytlvdiq", - "service/valory/impact_evaluator/0.1.0": "bafybeibe5uu2nqoxhskw2sdvehe7bok37x4qqbtdpxpnwkqhtfupf64vk4", + "service/valory/impact_evaluator/0.1.0": "bafybeidhyioamtmsvrq3be4gw7wobk3jdeum7mjiscgktth7zvq7iffmd4", "skill/valory/dynamic_nft_abci/0.1.0": "bafybeifmdn4czg4wr3wclafrpxsqv3s3zptawj3zju5wly3vke7ucjfeea", - "skill/valory/twitter_scoring_abci/0.1.0": "bafybeiaj3fopdvwqrvr2fiuyyjmmu3urudmv5fswuoty2jhsmyfvw43cde", + "skill/valory/twitter_scoring_abci/0.1.0": "bafybeidmtguinvt3tqzyukuc254r4venohof6p36kaer6huwp3ceeoalau", "skill/valory/ceramic_read_abci/0.1.0": "bafybeib36m6fi5swu43s3amtbk7w5rfie2gvzgw3xhxd7yfnka4kpcegme", "skill/valory/ceramic_write_abci/0.1.0": "bafybeifdjb2iisvtgwo44xoddhrbgqehbis6tbjdktuhh6ehwm5bnuee74", - "skill/valory/impact_evaluator_abci/0.1.0": "bafybeihizpowyt764cag4swoteh4ouovfweydzwsenx3vmyvp7d4vvzjqi", + "skill/valory/impact_evaluator_abci/0.1.0": "bafybeigtmwb2zuqwar5zrsxi2s7qbwtbgq2mjsf45c6ut2riwrtog5pnfy", "skill/valory/generic_scoring_abci/0.1.0": "bafybeihvp34ya2eamhf6skntsm4votudv4qzqftuk2mmhtvcprysjbykrq", "protocol/valory/twitter/0.1.0": "bafybeib4eyf7qbs7kdntqzhwqsaaj4o2mzcokcztaza6qgwt7sbxgkqu2m", "protocol/valory/llm/1.0.0": "bafybeigqybmg75vsxexmp57hkms7lkp7iwpf54r7wpygizxryvrhfqqpb4", diff --git a/packages/valory/agents/impact_evaluator/aea-config.yaml b/packages/valory/agents/impact_evaluator/aea-config.yaml index 8ca9ae2c..cc264307 100644 --- a/packages/valory/agents/impact_evaluator/aea-config.yaml +++ b/packages/valory/agents/impact_evaluator/aea-config.yaml @@ -42,9 +42,9 @@ protocols: skills: - valory/abstract_abci:0.1.0:bafybeih3bwx5apteinnoxts7sqmjlskntdbo7vvnmdbs5noo2pv76by7fu - valory/abstract_round_abci:0.1.0:bafybeibqpzbklnljvtc67yon4ciijxj75d7vazm7rurcvbbfnk6jtudukm -- valory/impact_evaluator_abci:0.1.0:bafybeihizpowyt764cag4swoteh4ouovfweydzwsenx3vmyvp7d4vvzjqi +- valory/impact_evaluator_abci:0.1.0:bafybeigtmwb2zuqwar5zrsxi2s7qbwtbgq2mjsf45c6ut2riwrtog5pnfy - valory/generic_scoring_abci:0.1.0:bafybeihvp34ya2eamhf6skntsm4votudv4qzqftuk2mmhtvcprysjbykrq -- valory/twitter_scoring_abci:0.1.0:bafybeiaj3fopdvwqrvr2fiuyyjmmu3urudmv5fswuoty2jhsmyfvw43cde +- valory/twitter_scoring_abci:0.1.0:bafybeidmtguinvt3tqzyukuc254r4venohof6p36kaer6huwp3ceeoalau - valory/ceramic_read_abci:0.1.0:bafybeib36m6fi5swu43s3amtbk7w5rfie2gvzgw3xhxd7yfnka4kpcegme - valory/ceramic_write_abci:0.1.0:bafybeifdjb2iisvtgwo44xoddhrbgqehbis6tbjdktuhh6ehwm5bnuee74 - valory/dynamic_nft_abci:0.1.0:bafybeifmdn4czg4wr3wclafrpxsqv3s3zptawj3zju5wly3vke7ucjfeea diff --git a/packages/valory/services/impact_evaluator/service.yaml b/packages/valory/services/impact_evaluator/service.yaml index 38178323..ef7071fb 100644 --- a/packages/valory/services/impact_evaluator/service.yaml +++ b/packages/valory/services/impact_evaluator/service.yaml @@ -8,7 +8,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeign56hilwuoa6bgos3uqabss4gew4vadkik7vhj3ucpqw6nxtqtpe fingerprint_ignore_patterns: [] -agent: valory/impact_evaluator:0.1.0:bafybeicqakhjh3e3dvh64bdnr23mlc7ynozhnu2gvrmvcx5qqpuchw276e +agent: valory/impact_evaluator:0.1.0:bafybeif4dhigvti7e4qlb4dm7htfexrvppwivcll4uxzct2g4ssc4xbgvm number_of_agents: 4 deployment: agent: diff --git a/packages/valory/skills/impact_evaluator_abci/skill.yaml b/packages/valory/skills/impact_evaluator_abci/skill.yaml index d5e99d3f..12acdc22 100644 --- a/packages/valory/skills/impact_evaluator_abci/skill.yaml +++ b/packages/valory/skills/impact_evaluator_abci/skill.yaml @@ -26,7 +26,7 @@ skills: - valory/abstract_round_abci:0.1.0:bafybeibqpzbklnljvtc67yon4ciijxj75d7vazm7rurcvbbfnk6jtudukm - valory/ceramic_read_abci:0.1.0:bafybeib36m6fi5swu43s3amtbk7w5rfie2gvzgw3xhxd7yfnka4kpcegme - valory/generic_scoring_abci:0.1.0:bafybeihvp34ya2eamhf6skntsm4votudv4qzqftuk2mmhtvcprysjbykrq -- valory/twitter_scoring_abci:0.1.0:bafybeiaj3fopdvwqrvr2fiuyyjmmu3urudmv5fswuoty2jhsmyfvw43cde +- valory/twitter_scoring_abci:0.1.0:bafybeidmtguinvt3tqzyukuc254r4venohof6p36kaer6huwp3ceeoalau - valory/ceramic_write_abci:0.1.0:bafybeifdjb2iisvtgwo44xoddhrbgqehbis6tbjdktuhh6ehwm5bnuee74 - valory/dynamic_nft_abci:0.1.0:bafybeifmdn4czg4wr3wclafrpxsqv3s3zptawj3zju5wly3vke7ucjfeea - valory/registration_abci:0.1.0:bafybeia25gpusnkakb2dp4heqkwtuftbc2apppq3i4bds6sphltsovgzvi diff --git a/packages/valory/skills/twitter_scoring_abci/models.py b/packages/valory/skills/twitter_scoring_abci/models.py index db615a2f..7bcfddcc 100644 --- a/packages/valory/skills/twitter_scoring_abci/models.py +++ b/packages/valory/skills/twitter_scoring_abci/models.py @@ -57,6 +57,9 @@ def __init__(self, *args: Any, **kwargs: Any) -> None: ) self.twitter_search_args = self._ensure("twitter_search_args", kwargs, str) self.max_points_per_period = self._ensure("max_points_per_period", kwargs, int) + self.tweet_evaluation_round_timeout = self._ensure( + "tweet_evaluation_round_timeout", kwargs, float + ) super().__init__(*args, **kwargs) diff --git a/packages/valory/skills/twitter_scoring_abci/skill.yaml b/packages/valory/skills/twitter_scoring_abci/skill.yaml index 4376b220..a9d21227 100644 --- a/packages/valory/skills/twitter_scoring_abci/skill.yaml +++ b/packages/valory/skills/twitter_scoring_abci/skill.yaml @@ -13,7 +13,7 @@ fingerprint: dialogues.py: bafybeibdqzn37hbo2cq4skww4uh2zvvsjyaxxvdhxisefbdvmjp7rh53si fsm_specification.yaml: bafybeiedr7ojvlyriotk6za7fnt4ptnhxklehznn3selyprbehj7tb4kem handlers.py: bafybeid3nqvcyotqj5g5hlgrz57nf7vpjysmgvsxe3p7644f4z5dcwqn6u - models.py: bafybeidobpsgt2vb2vccmo26umewq56mqthv4tfsneucotogsp2gbhoxiq + models.py: bafybeifvmpurh6w4ml27u4kvcjdsh62ldmx3oy5hrfzbqa4ifikvnxzh7m payloads.py: bafybeiapqgm3uscsl2gghy6fe22jceta4d5suujdlux233c37fyqydjp5i prompts.py: bafybeieiuqn427bgwfnzynxf3vtqfpvmqqscs5tyw4oibfofwropifotke rounds.py: bafybeidfkps2sqegmbqqskimxkzmq3c3sme3zgsbdxkoyjlccvyqaooi4u @@ -117,6 +117,7 @@ models: retry_attempts: 400 retry_timeout: 3 round_timeout_seconds: 30.0 + tweet_evaluation_round_timeout: 600.0 service_id: score_read service_registry_address: null setup: