prediction-market-agent-tooling 0.42.0__py3-none-any.whl → 0.42.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/config.py +10 -1
- prediction_market_agent_tooling/markets/categorize.py +1 -1
- prediction_market_agent_tooling/tools/image_gen/market_thumbnail_gen.py +1 -1
- prediction_market_agent_tooling/tools/is_predictable.py +1 -1
- {prediction_market_agent_tooling-0.42.0.dist-info → prediction_market_agent_tooling-0.42.1.dist-info}/METADATA +3 -3
- {prediction_market_agent_tooling-0.42.0.dist-info → prediction_market_agent_tooling-0.42.1.dist-info}/RECORD +9 -9
- {prediction_market_agent_tooling-0.42.0.dist-info → prediction_market_agent_tooling-0.42.1.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.42.0.dist-info → prediction_market_agent_tooling-0.42.1.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.42.0.dist-info → prediction_market_agent_tooling-0.42.1.dist-info}/entry_points.txt +0 -0
@@ -3,9 +3,14 @@ import typing as t
|
|
3
3
|
from gnosis.eth import EthereumClient
|
4
4
|
from gnosis.safe import Safe
|
5
5
|
from pydantic.types import SecretStr
|
6
|
+
from pydantic.v1.types import SecretStr as SecretStrV1
|
6
7
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
7
8
|
|
8
|
-
from prediction_market_agent_tooling.gtypes import
|
9
|
+
from prediction_market_agent_tooling.gtypes import (
|
10
|
+
ChecksumAddress,
|
11
|
+
PrivateKey,
|
12
|
+
secretstr_to_v1_secretstr,
|
13
|
+
)
|
9
14
|
from prediction_market_agent_tooling.markets.manifold.api import get_authenticated_user
|
10
15
|
from prediction_market_agent_tooling.tools.utils import check_not_none
|
11
16
|
from prediction_market_agent_tooling.tools.web3_utils import private_key_to_public_key
|
@@ -87,6 +92,10 @@ class APIKeys(BaseSettings):
|
|
87
92
|
self.OPENAI_API_KEY, "OPENAI_API_KEY missing in the environment."
|
88
93
|
)
|
89
94
|
|
95
|
+
@property
|
96
|
+
def openai_api_key_secretstr_v1(self) -> SecretStrV1:
|
97
|
+
return secretstr_to_v1_secretstr(self.openai_api_key)
|
98
|
+
|
90
99
|
@property
|
91
100
|
def graph_api_key(self) -> SecretStr:
|
92
101
|
return check_not_none(
|
@@ -14,7 +14,7 @@ def rewrite_question_into_image_generation_prompt(question: str) -> str:
|
|
14
14
|
llm = ChatOpenAI(
|
15
15
|
model="gpt-4-turbo",
|
16
16
|
temperature=0.0,
|
17
|
-
api_key=APIKeys().
|
17
|
+
api_key=APIKeys().openai_api_key_secretstr_v1,
|
18
18
|
)
|
19
19
|
rewritten = str(
|
20
20
|
llm.invoke(
|
@@ -48,7 +48,7 @@ def is_predictable_binary(
|
|
48
48
|
llm = ChatOpenAI(
|
49
49
|
model=engine,
|
50
50
|
temperature=0.0,
|
51
|
-
api_key=APIKeys().
|
51
|
+
api_key=APIKeys().openai_api_key_secretstr_v1,
|
52
52
|
)
|
53
53
|
|
54
54
|
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.42.
|
3
|
+
Version: 0.42.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
|
@@ -21,9 +21,9 @@ Requires-Dist: google-cloud-functions (>=1.16.0,<2.0.0)
|
|
21
21
|
Requires-Dist: google-cloud-resource-manager (>=1.12.0,<2.0.0)
|
22
22
|
Requires-Dist: google-cloud-secret-manager (>=2.18.2,<3.0.0)
|
23
23
|
Requires-Dist: isort (>=5.13.2,<6.0.0)
|
24
|
-
Requires-Dist: langchain (>=0.
|
24
|
+
Requires-Dist: langchain (>=0.2.6,<0.3.0) ; extra == "langchain"
|
25
25
|
Requires-Dist: langchain-community (>=0.0.19)
|
26
|
-
Requires-Dist: langchain-openai (>=0.0
|
26
|
+
Requires-Dist: langchain-openai (>=0.1.0,<0.2.0) ; extra == "langchain"
|
27
27
|
Requires-Dist: langfuse (>=2.27.1,<3.0.0)
|
28
28
|
Requires-Dist: loguru (>=0.7.2,<0.8.0)
|
29
29
|
Requires-Dist: numpy (>=1.26.4,<2.0.0)
|
@@ -12,7 +12,7 @@ prediction_market_agent_tooling/benchmark/__init__.py,sha256=47DEQpj8HBSa-_TImW-
|
|
12
12
|
prediction_market_agent_tooling/benchmark/agents.py,sha256=HPIFJvackW110ch3UkktbxhU48gMRVo4gQse84Klhdc,4000
|
13
13
|
prediction_market_agent_tooling/benchmark/benchmark.py,sha256=xiHKzZx5GHSsDerFHMZ9j_LXAXnSaITSvv67iPe3MEU,21095
|
14
14
|
prediction_market_agent_tooling/benchmark/utils.py,sha256=iS1BzyXcCMfMm1Rx--1QCH0pHvBTblTndcDQFbTUJ2s,2897
|
15
|
-
prediction_market_agent_tooling/config.py,sha256=
|
15
|
+
prediction_market_agent_tooling/config.py,sha256=3j1iMiJWntSkqQv5HllJgihgqf9I2_0e0LPncVFRi7g,5260
|
16
16
|
prediction_market_agent_tooling/deploy/agent.py,sha256=TXuQ0L2-dG0tIrJ7srxD3Hbabe_2gILfdBQI-tkl9Og,10522
|
17
17
|
prediction_market_agent_tooling/deploy/agent_example.py,sha256=tqXVA2HSFK3pdZ49tMmta8aKdJFT8JN8WeJ1akjrpBk,909
|
18
18
|
prediction_market_agent_tooling/deploy/constants.py,sha256=M5ty8URipYMGe_G-RzxRydK3AFL6CyvmqCraJUrLBnE,82
|
@@ -22,7 +22,7 @@ prediction_market_agent_tooling/deploy/gcp/utils.py,sha256=oyW0jgrUT2Tr49c7GlpcM
|
|
22
22
|
prediction_market_agent_tooling/gtypes.py,sha256=lbV2nsPyhMIRI9olx0_6A06jwTWKYBPGMxyiGVFysag,2467
|
23
23
|
prediction_market_agent_tooling/loggers.py,sha256=ua9rynYmsbOJZjxPIFxRBooomeN08zuLSJ7lxZMDS7w,3133
|
24
24
|
prediction_market_agent_tooling/markets/agent_market.py,sha256=zUxDOR-fx1roQKdUCN3FsBfnziIL6POTNK1NsMOgLFw,8365
|
25
|
-
prediction_market_agent_tooling/markets/categorize.py,sha256=
|
25
|
+
prediction_market_agent_tooling/markets/categorize.py,sha256=HyKSFHXPL7Hfe90ahbF7xszamYREUVrPkLcpifw1V9Y,935
|
26
26
|
prediction_market_agent_tooling/markets/data_models.py,sha256=qD0LyFkzimaMkDVE0QO2a4I9fQ8qpO2qPmVzb-0JBik,2085
|
27
27
|
prediction_market_agent_tooling/markets/manifold/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
28
|
prediction_market_agent_tooling/markets/manifold/api.py,sha256=AC2zmkzpBU3P4kyybs7CgPbDg4hLAx3GY5mjgDi7qDo,7221
|
@@ -65,16 +65,16 @@ prediction_market_agent_tooling/tools/gnosis_rpc.py,sha256=_MYSoyOR2MgAJkop1ERf8
|
|
65
65
|
prediction_market_agent_tooling/tools/google.py,sha256=SfVDxb3oEOUK8mpd0l3mTX9ybrdrTPNM6HjfJ7kfNjA,1794
|
66
66
|
prediction_market_agent_tooling/tools/hexbytes_custom.py,sha256=Bp94qgPjvjWf1Vb4lNzGFDXRdThw1rJ91vL6r2PWq5E,2096
|
67
67
|
prediction_market_agent_tooling/tools/image_gen/image_gen.py,sha256=HzRwBx62hOXBOmrtpkXaP9Qq1Ku03uUGdREocyjLQ_k,1266
|
68
|
-
prediction_market_agent_tooling/tools/image_gen/market_thumbnail_gen.py,sha256=
|
69
|
-
prediction_market_agent_tooling/tools/is_predictable.py,sha256=
|
68
|
+
prediction_market_agent_tooling/tools/image_gen/market_thumbnail_gen.py,sha256=g-2BWS11CS7K6QRNbZRMTX_Xo2xOwjyCdhnwaQygX1Y,1104
|
69
|
+
prediction_market_agent_tooling/tools/is_predictable.py,sha256=radTwyxfUGfE1HCKWlvKl05Cpv_HD7E1d6A_Wm1K5ek,2930
|
70
70
|
prediction_market_agent_tooling/tools/parallelism.py,sha256=8mgkF5sBwFGS5GMvlpzam82Y3p2swPYuNsywpQuy-a4,1508
|
71
71
|
prediction_market_agent_tooling/tools/safe.py,sha256=h0xOO0eNtitClf0fPkn-0oTc6A_bflDTee98V_aiV-A,5195
|
72
72
|
prediction_market_agent_tooling/tools/singleton.py,sha256=CiIELUiI-OeS7U7eeHEt0rnVhtQGzwoUdAgn_7u_GBM,729
|
73
73
|
prediction_market_agent_tooling/tools/streamlit_user_login.py,sha256=NXEqfjT9Lc9QtliwSGRASIz1opjQ7Btme43H4qJbzgE,3010
|
74
74
|
prediction_market_agent_tooling/tools/utils.py,sha256=-G22UEbCRm59bm1RWFdeF55hRsaxgwZVAHvK32-Ye1g,6190
|
75
75
|
prediction_market_agent_tooling/tools/web3_utils.py,sha256=nKRHmdLnWSKd3wpo-cysXGvhhrJ2Yf69sN2FFQfSt6s,10578
|
76
|
-
prediction_market_agent_tooling-0.42.
|
77
|
-
prediction_market_agent_tooling-0.42.
|
78
|
-
prediction_market_agent_tooling-0.42.
|
79
|
-
prediction_market_agent_tooling-0.42.
|
80
|
-
prediction_market_agent_tooling-0.42.
|
76
|
+
prediction_market_agent_tooling-0.42.1.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
77
|
+
prediction_market_agent_tooling-0.42.1.dist-info/METADATA,sha256=2sleEbYjQ1DxF34LiETR16iXB1HukqtLjeMVKJYRqNQ,7634
|
78
|
+
prediction_market_agent_tooling-0.42.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
79
|
+
prediction_market_agent_tooling-0.42.1.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
80
|
+
prediction_market_agent_tooling-0.42.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|