prediction-market-agent-tooling 0.13.0__py3-none-any.whl → 0.13.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.
@@ -3,7 +3,6 @@ from langchain.schema.output_parser import StrOutputParser
3
3
  from langchain_openai import ChatOpenAI
4
4
 
5
5
  from prediction_market_agent_tooling.config import APIKeys
6
- from prediction_market_agent_tooling.gtypes import secretstr_to_v1_secretstr
7
6
 
8
7
 
9
8
  def infer_category(
@@ -22,7 +21,7 @@ Write only the category itself, nothing else.
22
21
  prompt
23
22
  | ChatOpenAI(
24
23
  model=model,
25
- api_key=secretstr_to_v1_secretstr(APIKeys().openai_api_key),
24
+ api_key=APIKeys().openai_api_key.get_secret_value(),
26
25
  )
27
26
  | StrOutputParser()
28
27
  )
@@ -42,7 +42,7 @@ def is_predictable_binary(
42
42
 
43
43
  prompt = ChatPromptTemplate.from_template(template=prompt_template)
44
44
  messages = prompt.format_messages(question=question)
45
- completion = llm(messages, max_tokens=512).content
45
+ completion = str(llm(messages, max_tokens=512).content)
46
46
 
47
47
  try:
48
48
  decision = completion.lower().rsplit("decision", 1)[1]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.13.0
3
+ Version: 0.13.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
@@ -20,7 +20,7 @@ Requires-Dist: google-cloud-secret-manager (>=2.18.2,<3.0.0)
20
20
  Requires-Dist: isort (>=5.13.2,<6.0.0)
21
21
  Requires-Dist: langchain (>=0.1.9,<0.2.0) ; extra == "langchain"
22
22
  Requires-Dist: langchain-community (>=0.0.19)
23
- Requires-Dist: langchain-openai (>=0.0.8,<0.0.9) ; extra == "langchain"
23
+ Requires-Dist: langchain-openai (>=0.0.5,<0.0.6) ; extra == "langchain"
24
24
  Requires-Dist: loguru (>=0.7.2,<0.8.0)
25
25
  Requires-Dist: numpy (>=1.26.4,<2.0.0)
26
26
  Requires-Dist: pydantic (>=2.6.1,<3.0.0)
@@ -18,7 +18,7 @@ prediction_market_agent_tooling/deploy/gcp/deploy.py,sha256=CYUgnfy-9XVk04kkxA_5
18
18
  prediction_market_agent_tooling/deploy/gcp/utils.py,sha256=x_SMhxYgNuRt8jmhlJkJAlpfX31zM6x_mvQ3Arr_3-s,5255
19
19
  prediction_market_agent_tooling/gtypes.py,sha256=ZDjXaszuTnCjnCThfJNeNJaLoxmGDSBQEcayyUfazwQ,2526
20
20
  prediction_market_agent_tooling/markets/agent_market.py,sha256=3Ms3N7OO2eHuSKdHZ2WZXINBB0WeolxOliZ7b-adR0A,5083
21
- prediction_market_agent_tooling/markets/categorize.py,sha256=LzmBkpLQech19yCxmsyKSJ-6trzAo6lXUmOuqgVZbco,1026
21
+ prediction_market_agent_tooling/markets/categorize.py,sha256=yTd-lDMPW4ESDSzmxeLLBuzLX0FggOF7Vbswh7295o0,941
22
22
  prediction_market_agent_tooling/markets/data_models.py,sha256=gijy3i1xSvDtM-BK0XbqZCSNqEjpysD1KJis7BngX5k,793
23
23
  prediction_market_agent_tooling/markets/manifold/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  prediction_market_agent_tooling/markets/manifold/api.py,sha256=dv-uUqt_yRLrQAymGEaTXX6C37NePo8ZPwK1l4CwLWk,6882
@@ -54,13 +54,13 @@ prediction_market_agent_tooling/tools/contract.py,sha256=Onm4vy3Tt8uH7w8CweDu6CD
54
54
  prediction_market_agent_tooling/tools/gnosis_rpc.py,sha256=9L3X5jBQcTZDQK4cHm5vzU7SOnjb0ERA6IWQ9C_bKUw,660
55
55
  prediction_market_agent_tooling/tools/google.py,sha256=P-ifiMk7bxQdU1ceON9apcZlw4rLHeOcYwxdeE4Of6Q,1761
56
56
  prediction_market_agent_tooling/tools/hexbytes_custom.py,sha256=2s_eMa0KwA_a9gLmcI4oXKHL3NwoDIACTSpceomeV7g,2037
57
- prediction_market_agent_tooling/tools/is_predictable.py,sha256=QEH2VEG-RsypXtxo4mPT37qtDVW5N4a8fwAFZGA65EI,2613
57
+ prediction_market_agent_tooling/tools/is_predictable.py,sha256=MkElDkQRd2K3ZoAbqwk9WZluhqGDgx4vdt5cq_DoAz8,2618
58
58
  prediction_market_agent_tooling/tools/parallelism.py,sha256=_PCiD5apyO_jyXcmBDOOVwE7bQFZnhuA_MIjUwCYIjM,733
59
59
  prediction_market_agent_tooling/tools/singleton.py,sha256=CiIELUiI-OeS7U7eeHEt0rnVhtQGzwoUdAgn_7u_GBM,729
60
60
  prediction_market_agent_tooling/tools/utils.py,sha256=6MRfLr5xGPEQGobLz_eCsE_p-XaAeOCcmygwgNCIvqE,5044
61
61
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=-ti5hPuyTmtgAHTpCJsP0zaxZEGa7H7zSMH_RtiSB8A,5314
62
- prediction_market_agent_tooling-0.13.0.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
63
- prediction_market_agent_tooling-0.13.0.dist-info/METADATA,sha256=r1vhW7v0N27cFuPOKsmGoHu_MRIBSblvFLp95LCwwQ4,4661
64
- prediction_market_agent_tooling-0.13.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
65
- prediction_market_agent_tooling-0.13.0.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
66
- prediction_market_agent_tooling-0.13.0.dist-info/RECORD,,
62
+ prediction_market_agent_tooling-0.13.1.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
63
+ prediction_market_agent_tooling-0.13.1.dist-info/METADATA,sha256=s3lmUvI2cBeufNBgQ2vE_7SKI4fORMGNqIQOBz4PvCg,4661
64
+ prediction_market_agent_tooling-0.13.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
65
+ prediction_market_agent_tooling-0.13.1.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
66
+ prediction_market_agent_tooling-0.13.1.dist-info/RECORD,,