prediction-market-agent-tooling 0.20.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.
- prediction_market_agent_tooling/tools/is_predictable.py +8 -2
- {prediction_market_agent_tooling-0.20.0.dist-info → prediction_market_agent_tooling-0.21.1.dist-info}/METADATA +4 -3
- {prediction_market_agent_tooling-0.20.0.dist-info → prediction_market_agent_tooling-0.21.1.dist-info}/RECORD +6 -6
- {prediction_market_agent_tooling-0.20.0.dist-info → prediction_market_agent_tooling-0.21.1.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.20.0.dist-info → prediction_market_agent_tooling-0.21.1.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.20.0.dist-info → prediction_market_agent_tooling-0.21.1.dist-info}/entry_points.txt +0 -0
@@ -1,5 +1,4 @@
|
|
1
|
-
from
|
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.
|
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
|
@@ -9,6 +9,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.11
|
10
10
|
Provides-Extra: google
|
11
11
|
Provides-Extra: langchain
|
12
|
+
Provides-Extra: mech-client
|
12
13
|
Requires-Dist: autoflake (>=2.2.1,<3.0.0)
|
13
14
|
Requires-Dist: cron-validator (>=1.0.8,<2.0.0)
|
14
15
|
Requires-Dist: eth-account (>=0.8.0,<0.9.0)
|
@@ -24,14 +25,14 @@ Requires-Dist: langchain-community (>=0.0.19)
|
|
24
25
|
Requires-Dist: langchain-openai (>=0.0.5,<0.0.6) ; extra == "langchain"
|
25
26
|
Requires-Dist: langfuse (>=2.27.1,<3.0.0)
|
26
27
|
Requires-Dist: loguru (>=0.7.2,<0.8.0)
|
27
|
-
Requires-Dist: mech-client (>=0.2.13,<0.3.0)
|
28
|
+
Requires-Dist: mech-client (>=0.2.13,<0.3.0) ; extra == "mech-client"
|
28
29
|
Requires-Dist: numpy (>=1.26.4,<2.0.0)
|
29
30
|
Requires-Dist: prompt-toolkit (>=3.0.43,<4.0.0)
|
30
31
|
Requires-Dist: pydantic (>=2.6.1,<3.0.0)
|
31
32
|
Requires-Dist: pydantic-settings (>=2.1.0,<3.0.0)
|
32
33
|
Requires-Dist: safe-cli (>=1.0.0,<2.0.0)
|
33
34
|
Requires-Dist: safe-eth-py (>=6.0.0b14,<7.0.0)
|
34
|
-
Requires-Dist: scikit-learn (>=1.
|
35
|
+
Requires-Dist: scikit-learn (>=1.3.1,<2.0.0)
|
35
36
|
Requires-Dist: streamlit (>=1.31.0,<2.0.0)
|
36
37
|
Requires-Dist: subgrounds (>=1.8.1,<2.0.0)
|
37
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=
|
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.
|
68
|
-
prediction_market_agent_tooling-0.
|
69
|
-
prediction_market_agent_tooling-0.
|
70
|
-
prediction_market_agent_tooling-0.
|
71
|
-
prediction_market_agent_tooling-0.
|
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,,
|
File without changes
|
File without changes
|