prediction-market-agent-tooling 0.21.0__py3-none-any.whl → 0.21.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,4 @@
1
- from langchain.prompts import ChatPromptTemplate
2
- from langchain_openai import ChatOpenAI
1
+ from loguru import logger
3
2
 
4
3
  from prediction_market_agent_tooling.tools.cache import persistent_inmemory_cache
5
4
 
@@ -38,6 +37,13 @@ def is_predictable_binary(
38
37
  """
39
38
  Evaluate if the question is actually answerable.
40
39
  """
40
+ try:
41
+ from langchain.prompts import ChatPromptTemplate
42
+ from langchain_openai import ChatOpenAI
43
+ except ImportError:
44
+ logger.info("langchain not installed, skipping is_predictable_binary")
45
+ return True
46
+
41
47
  llm = ChatOpenAI(model=engine, temperature=0.0)
42
48
 
43
49
  prompt = ChatPromptTemplate.from_template(template=prompt_template)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.21.0
3
+ Version: 0.21.1
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.12
@@ -32,7 +32,7 @@ Requires-Dist: pydantic (>=2.6.1,<3.0.0)
32
32
  Requires-Dist: pydantic-settings (>=2.1.0,<3.0.0)
33
33
  Requires-Dist: safe-cli (>=1.0.0,<2.0.0)
34
34
  Requires-Dist: safe-eth-py (>=6.0.0b14,<7.0.0)
35
- Requires-Dist: scikit-learn (>=1.4.0,<2.0.0)
35
+ Requires-Dist: scikit-learn (>=1.3.1,<2.0.0)
36
36
  Requires-Dist: streamlit (>=1.31.0,<2.0.0)
37
37
  Requires-Dist: subgrounds (>=1.8.1,<2.0.0)
38
38
  Requires-Dist: tabulate (>=0.9.0,<0.10.0)
@@ -58,14 +58,14 @@ prediction_market_agent_tooling/tools/costs.py,sha256=EaAJ7v9laD4VEV3d8B44M4u3_o
58
58
  prediction_market_agent_tooling/tools/gnosis_rpc.py,sha256=_MYSoyOR2MgAJkop1ERf8RhLum-M8S6OjaAsaqUW41w,203
59
59
  prediction_market_agent_tooling/tools/google.py,sha256=P-ifiMk7bxQdU1ceON9apcZlw4rLHeOcYwxdeE4Of6Q,1761
60
60
  prediction_market_agent_tooling/tools/hexbytes_custom.py,sha256=Bp94qgPjvjWf1Vb4lNzGFDXRdThw1rJ91vL6r2PWq5E,2096
61
- prediction_market_agent_tooling/tools/is_predictable.py,sha256=MkElDkQRd2K3ZoAbqwk9WZluhqGDgx4vdt5cq_DoAz8,2618
61
+ prediction_market_agent_tooling/tools/is_predictable.py,sha256=QqcJ2k05oBnd-8JkkSMr9_FT-yZICmzUA41gSxJeP98,2793
62
62
  prediction_market_agent_tooling/tools/parallelism.py,sha256=8mgkF5sBwFGS5GMvlpzam82Y3p2swPYuNsywpQuy-a4,1508
63
63
  prediction_market_agent_tooling/tools/safe.py,sha256=gNgcY6ugckx3DbupR8VBezDgh1dZXpc8oZlPerZ3Atg,5162
64
64
  prediction_market_agent_tooling/tools/singleton.py,sha256=CiIELUiI-OeS7U7eeHEt0rnVhtQGzwoUdAgn_7u_GBM,729
65
65
  prediction_market_agent_tooling/tools/utils.py,sha256=6MRfLr5xGPEQGobLz_eCsE_p-XaAeOCcmygwgNCIvqE,5044
66
66
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=-IAt12kudrx0BaW_IFQu2nAsJJXVGn8hNH43xjQeIw4,9822
67
- prediction_market_agent_tooling-0.21.0.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
68
- prediction_market_agent_tooling-0.21.0.dist-info/METADATA,sha256=NrR68zmn_Jvo1NDjMCTY5M68_trW-omEFqZY8eZaNOo,5563
69
- prediction_market_agent_tooling-0.21.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
70
- prediction_market_agent_tooling-0.21.0.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
71
- prediction_market_agent_tooling-0.21.0.dist-info/RECORD,,
67
+ prediction_market_agent_tooling-0.21.1.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
68
+ prediction_market_agent_tooling-0.21.1.dist-info/METADATA,sha256=0H8Zrp04nJsKlLDUirfYurQOvHwDnnJO_ME2fJf_1_s,5563
69
+ prediction_market_agent_tooling-0.21.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
70
+ prediction_market_agent_tooling-0.21.1.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
71
+ prediction_market_agent_tooling-0.21.1.dist-info/RECORD,,