Skip to content

Commit

Permalink
fix: linters
Browse files Browse the repository at this point in the history
  • Loading branch information
dvilelaf committed May 13, 2023
1 parent c681ac1 commit 87c5901
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 21 deletions.
4 changes: 2 additions & 2 deletions packages/eightballer/agents/mech/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ skills:
- eightballer/contract_subscription:0.1.0:bafybeidhgfkrxh7ki56ua2fg27vpu2doxri7lh2yqlag6vf64e6e6qtsne
- valory/abstract_abci:0.1.0:bafybeihgerjeq4u4apuue7zzhpb3wmntuju34dbdijbbvl4wclww2gy7di
- valory/abstract_round_abci:0.1.0:bafybeicensk7a2vpqj52iyhf6yhc6z2iwulb2txbym546qvwgsxm3skvcm
- valory/mech_abci:0.1.0:bafybeifkxf6vtxgqtbiyd6kopdb4thgemm67umk5nd5bxdx4aluq23varq
- valory/mech_abci:0.1.0:bafybeibufvqnkicu54md6tvo2eiarrrahiorxutgvdn2jhklqon4qa47va
- valory/multiplexer_abci:0.1.0:bafybeicnh2xwfw64acq6g2xjvnh3whhjgacn373egxxodzjpnzrryubjka
- valory/registration_abci:0.1.0:bafybeicsqhakfliwauyqow62yopcjhejknmfcjzh7ilbjt32ozydbhxleq
- valory/reset_pause_abci:0.1.0:bafybeigwsp2crzvqan7xnap6dh4f4lxdut5il6naj7r4jwaslopstufgl4
- valory/task_execution_abci:0.1.0:bafybeibiljwxz2kulzzpovie67s3aefv4p6ishh34p72xqtzhiczkrzo3e
- valory/task_execution_abci:0.1.0:bafybeih3zsp26c6rkki5lq2t6vxyk6yls6odiwhad4kzsbrwguslnouple
- valory/termination_abci:0.1.0:bafybeiglkntthppslj5p64n35aoqer4fcalezhqvpndo6eb2vaoynm6qxe
- valory/transaction_preparation_abci:0.1.0:bafybeifjcan7yqnscsnw3x6536nfubz5zpjot7zo5egpqzfovpoqieus64
- valory/transaction_settlement_abci:0.1.0:bafybeibor5qxitvgvgm47vzor4u7p53tcpw3fzez7hbd6qv4rglxladxye
Expand Down
2 changes: 1 addition & 1 deletion packages/eightballer/services/mech/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aea_version: '>=1.0.0, <2.0.0'
license: Apache-2.0
fingerprint: {}
fingerprint_ignore_patterns: []
agent: eightballer/mech:0.1.0:bafybeifbwpzwexbtspy6isya7p3ijyx4jc5i4wgaeamk3um3jrknq6msyu
agent: eightballer/mech:0.1.0:bafybeiac4tdys65eftjtpujnxgxuxvzw6ics3nlzikxett5yp6ybwy2uci
number_of_agents: 1
deployment: {}
---
Expand Down
10 changes: 5 additions & 5 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"dev": {
"connection/eightballer/websocket_client/0.1.0": "bafybeihwcracii3fvvdbvku2wmz7ephsi6dlhycisq5yn3xemryxovqn5i",
"skill/eightballer/contract_subscription/0.1.0": "bafybeidhgfkrxh7ki56ua2fg27vpu2doxri7lh2yqlag6vf64e6e6qtsne",
"agent/eightballer/mech/0.1.0": "bafybeifbwpzwexbtspy6isya7p3ijyx4jc5i4wgaeamk3um3jrknq6msyu",
"service/eightballer/mech/0.1.0": "bafybeicyiqcmclu4ferliu7454p62gbyayplr2yziuh6scanj7uw7ninaq",
"agent/eightballer/mech/0.1.0": "bafybeiac4tdys65eftjtpujnxgxuxvzw6ics3nlzikxett5yp6ybwy2uci",
"service/eightballer/mech/0.1.0": "bafybeif6scubpapidoqberaqcvt4gyvcfhymg62o7ejibvddhtps35onpa",
"skill/valory/multiplexer_abci/0.1.0": "bafybeicnh2xwfw64acq6g2xjvnh3whhjgacn373egxxodzjpnzrryubjka",
"skill/valory/task_execution_abci/0.1.0": "bafybeibiljwxz2kulzzpovie67s3aefv4p6ishh34p72xqtzhiczkrzo3e",
"skill/valory/mech_abci/0.1.0": "bafybeifkxf6vtxgqtbiyd6kopdb4thgemm67umk5nd5bxdx4aluq23varq",
"skill/valory/task_execution_abci/0.1.0": "bafybeih3zsp26c6rkki5lq2t6vxyk6yls6odiwhad4kzsbrwguslnouple",
"skill/valory/mech_abci/0.1.0": "bafybeibufvqnkicu54md6tvo2eiarrrahiorxutgvdn2jhklqon4qa47va",
"skill/valory/transaction_preparation_abci/0.1.0": "bafybeifjcan7yqnscsnw3x6536nfubz5zpjot7zo5egpqzfovpoqieus64",
"contract/valory/agent_mech/0.1.0": "bafybeifjjnnbtqttvq3ox5fpmdbppl5vzkcbfdnxes3bdt4z53ayet2yiy",
"service/valory/mech/0.1.0": "bafybeidzxevprpsxyzzurol7bbg6n5g34imup36kjs2u5oktq3af7v2h2y"
"service/valory/mech/0.1.0": "bafybeicy2j3yybnvsvb26tcfsti2uhblguanzt3k4bbk27g57ssf7htkme"
},
"third_party": {
"protocol/fetchai/default/1.0.0": "bafybeig3w57l7laofhuyl7nco2lfzgtbqf4cto75edfccymugtixjqnm6y",
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/services/mech/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license: Apache-2.0
fingerprint:
README.md: bafybeif7ia4jdlazy6745ke2k2x5yoqlwsgwr6sbztbgqtwvs3ndm2p7ba
fingerprint_ignore_patterns: []
agent: eightballer/mech:0.1.0:bafybeifbwpzwexbtspy6isya7p3ijyx4jc5i4wgaeamk3um3jrknq6msyu
agent: eightballer/mech:0.1.0:bafybeiac4tdys65eftjtpujnxgxuxvzw6ics3nlzikxett5yp6ybwy2uci
number_of_agents: 4
deployment:
agent:
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/mech_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ skills:
- valory/multiplexer_abci:0.1.0:bafybeicnh2xwfw64acq6g2xjvnh3whhjgacn373egxxodzjpnzrryubjka
- valory/registration_abci:0.1.0:bafybeicsqhakfliwauyqow62yopcjhejknmfcjzh7ilbjt32ozydbhxleq
- valory/reset_pause_abci:0.1.0:bafybeigwsp2crzvqan7xnap6dh4f4lxdut5il6naj7r4jwaslopstufgl4
- valory/task_execution_abci:0.1.0:bafybeibiljwxz2kulzzpovie67s3aefv4p6ishh34p72xqtzhiczkrzo3e
- valory/task_execution_abci:0.1.0:bafybeih3zsp26c6rkki5lq2t6vxyk6yls6odiwhad4kzsbrwguslnouple
- valory/termination_abci:0.1.0:bafybeiglkntthppslj5p64n35aoqer4fcalezhqvpndo6eb2vaoynm6qxe
- valory/transaction_preparation_abci:0.1.0:bafybeifjcan7yqnscsnw3x6536nfubz5zpjot7zo5egpqzfovpoqieus64
- valory/transaction_settlement_abci:0.1.0:bafybeibor5qxitvgvgm47vzor4u7p53tcpw3fzez7hbd6qv4rglxladxye
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@
# limitations under the License.
#
# ------------------------------------------------------------------------------
"""Contains the job definitions"""
import openai

DEFAULT_OPENAI_SETTINGS = dict(
max_tokens = 500,
temperature=0.7,
)
DEFAULT_OPENAI_SETTINGS = {
"max_tokens": 500,
"temperature": 0.7,
}


def run(*args, **kwargs) -> str:
def run(**kwargs) -> str:
"""Run the task"""

openai.api_key = kwargs["openai_api_key"]

Expand Down Expand Up @@ -56,5 +58,3 @@ def run(*args, **kwargs) -> str:
result = response.choices[0].text.strip()

return result


3 changes: 1 addition & 2 deletions packages/valory/skills/task_execution_abci/rounds.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@

from packages.valory.skills.abstract_round_abci.base import (
AbciApp, AbciAppTransitionFunction, AppState, BaseSynchronizedData,
CollectDifferentUntilAllRound, CollectSameUntilThresholdRound,
DegenerateRound, EventToTimeout, get_name)
CollectDifferentUntilAllRound, DegenerateRound, EventToTimeout, get_name)
from packages.valory.skills.task_execution_abci.payloads import \
TaskExecutionAbciPayload

Expand Down
4 changes: 2 additions & 2 deletions packages/valory/skills/task_execution_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ fingerprint:
dialogues.py: bafybeift7ubqn3fculjpbkihmensbfu26f2ptuec2zvwqybdwlodbz6mpe
fsm_specification.yaml: bafybeieldx3rylsiyb6sfqxqzoogmtnda7jf4czgyjn3ddtzo4bze6sfza
handlers.py: bafybeidjovpcamecgdzqtpir44zp7jvhktnms33p3eueabsc2rtfbxm3wq
jobs/openai_request.py: bafybeigrsb4vomxc64cigqk6x6orp7r2tevwwacdtc55nsm7ucymlcqdxu
jobs/openai_request.py: bafybeigwhqawu524qmcqfgs4qxfzvjc345w2zuiekxnmt4ikczyezlu4ra
models.py: bafybeif2nmwkb5eg7zrvyjiz5d5idi3u27fka4y6vy2pdp7gkdxb2w4igq
payloads.py: bafybeigptsnusjowmqjcxnzc4ct7n2iczuiorlwqsg7dl6ipnwkjb6iqoe
rounds.py: bafybeih26rqapphl66e7ukd736hfeo3o7nwnsce7xsyudsl76pf52q2hne
rounds.py: bafybeiau4t6m4att5xc7mgu55fpllrxy7x6ksnxvyydoy3khwjenfk5lmm
tasks.py: bafybeibc2adulu2x4tnm5qmrsje3apfpw2zlzgty5fxwlo6mterkv3ghrq
fingerprint_ignore_patterns: []
connections: []
Expand Down

0 comments on commit 87c5901

Please sign in to comment.