From 478718304a2dcf07bfeda3c246a9811b54f267d7 Mon Sep 17 00:00:00 2001 From: Ardian Date: Wed, 13 Mar 2024 20:22:37 +0100 Subject: [PATCH] fix: response type on resolve_market_reasoning.py --- .../customs/resolve_market_reasoning/component.yaml | 2 +- .../resolve_market_reasoning/resolve_market_reasoning.py | 9 ++++----- packages/packages.json | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/napthaai/customs/resolve_market_reasoning/component.yaml b/packages/napthaai/customs/resolve_market_reasoning/component.yaml index ee01f90c..bd647220 100644 --- a/packages/napthaai/customs/resolve_market_reasoning/component.yaml +++ b/packages/napthaai/customs/resolve_market_reasoning/component.yaml @@ -7,7 +7,7 @@ license: Apache-2.0 aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeib36ew6vbztldut5xayk5553rylrq7yv4cpqyhwc5ktvd4cx67vwu - resolve_market_reasoning.py: bafybeibwboa2jc64lsnibssb5wjae75dre67sybnvr645ivzkfr4nin36y + resolve_market_reasoning.py: bafybeiaewyefdxxt55fcp64lrjlsc3e3tiiyngkbzwsysddcivbwgqzpuy fingerprint_ignore_patterns: [] entry_point: resolve_market_reasoning.py callable: run diff --git a/packages/napthaai/customs/resolve_market_reasoning/resolve_market_reasoning.py b/packages/napthaai/customs/resolve_market_reasoning/resolve_market_reasoning.py index 85e402af..8ba607a4 100644 --- a/packages/napthaai/customs/resolve_market_reasoning/resolve_market_reasoning.py +++ b/packages/napthaai/customs/resolve_market_reasoning/resolve_market_reasoning.py @@ -700,7 +700,7 @@ def run(**kwargs) -> Tuple[Optional[str], Optional[Dict[str, Any]], Any]: print(f"Valid: {valid_results}") if not valid_results.is_valid: - return valid_results.json(), None, None, None, None + return valid_results.json(), None, None, None try: ( @@ -772,7 +772,7 @@ def run(**kwargs) -> Tuple[Optional[str], Optional[Dict[str, Any]], Any]: print(f"Determinable: {determinable_results}") if not determinable_results.is_determinable: - return determinable_results.json(), reasoning, additional_information, queries, None + return determinable_results.json(), reasoning, additional_information, None # Make the prediction messages = [ @@ -811,10 +811,9 @@ def run(**kwargs) -> Tuple[Optional[str], Optional[Dict[str, Any]], Any]: results.json(), reasoning, additional_information, - queries, counter_callback, ) - return results.json(), reasoning, additional_information, queries, None + return results.json(), reasoning, additional_information, None except Exception as e: - return None, None, None, None, e + return None, None, None, e diff --git a/packages/packages.json b/packages/packages.json index 0d524960..e73e6adf 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -12,7 +12,7 @@ "custom/psouranis/optimization_by_prompting/0.1.0": "bafybeibgfovquvu3gg4o7y6ud2sr536v45o2dj4shqobc7bqzzdyjbinei", "custom/nickcom007/sme_generation_request/0.1.0": "bafybeihfl4663yjkxltidavnxou7rumld5wzcr43uw23bpvb3ivefsjhv4", "custom/nickcom007/prediction_request_sme/0.1.0": "bafybeicfenfjer2kvmnstul4bzxf7xfiupbipkjzattjsieaapdflnsyni", - "custom/napthaai/resolve_market_reasoning/0.1.0": "bafybeibxt2c654xfcrw24m7wiuhlsawfszogybkadngmun3lfghmbwqbpe", + "custom/napthaai/resolve_market_reasoning/0.1.0": "bafybeih2o6ogoxtptukdlrsxw3pyxzwxspit3bjhg4fxsmqvqidqqhon7a", "custom/napthaai/prediction_request_rag/0.1.0": "bafybeihdywbiaywvia32mpdos7e4pvcnmsq4ij65otctidbd6rjf3j6tqu", "protocol/valory/acn_data_share/0.1.0": "bafybeih5ydonnvrwvy2ygfqgfabkr47s4yw3uqxztmwyfprulwfsoe7ipq", "protocol/valory/websocket_client/0.1.0": "bafybeih43mnztdv3v2hetr2k3gezg7d3yj4ur7cxdvcyaqhg65e52s5sf4",