prediction-market-agent-tooling 0.13.0__tar.gz → 0.13.1__tar.gz
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-0.13.0 → prediction_market_agent_tooling-0.13.1}/PKG-INFO +2 -2
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/categorize.py +1 -2
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/is_predictable.py +1 -1
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/pyproject.toml +2 -2
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/README.md +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/abis/omen_dxdao.abi.json +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/abis/omen_fpmm.abi.json +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/abis/omen_fpmm_conditionaltokens.abi.json +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/abis/omen_fpmm_factory.abi.json +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/abis/omen_kleros.abi.json +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/abis/omen_oracle.abi.json +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/abis/omen_realitio.abi.json +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/abis/wxdai.abi.json +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/benchmark/__init__.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/benchmark/agents.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/benchmark/benchmark.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/benchmark/utils.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/config.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/deploy/agent.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/deploy/agent_example.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/deploy/constants.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/deploy/gcp/deploy.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/deploy/gcp/utils.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/gtypes.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/agent_market.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/data_models.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/manifold/__init__.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/manifold/api.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/manifold/data_models.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/manifold/manifold.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/manifold/utils.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/markets.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/omen/__init__.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/omen/data_models.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/omen/omen.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/omen/omen_contracts.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/omen/omen_replicate.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/omen/omen_resolve_replicated.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/polymarket/api.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/polymarket/data_models.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/polymarket/data_models_web.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/polymarket/polymarket.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/markets/polymarket/utils.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/monitor/markets/manifold.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/monitor/markets/omen.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/monitor/markets/polymarket.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/monitor/monitor.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/monitor/monitor_app.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/py.typed +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/balances.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/betting_strategies/kelly_criterion.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/betting_strategies/market_moving.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/betting_strategies/minimum_bet_to_win.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/betting_strategies/stretch_bet_between.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/cache.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/contract.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/gnosis_rpc.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/google.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/hexbytes_custom.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/parallelism.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/singleton.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/utils.py +0 -0
- {prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/prediction_market_agent_tooling/tools/web3_utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: prediction-market-agent-tooling
|
3
|
-
Version: 0.13.
|
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.
|
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)
|
@@ -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=
|
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]
|
{prediction_market_agent_tooling-0.13.0 → prediction_market_agent_tooling-0.13.1}/pyproject.toml
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "prediction-market-agent-tooling"
|
3
|
-
version = "0.13.
|
3
|
+
version = "0.13.1"
|
4
4
|
description = "Tools to benchmark, deploy and monitor prediction market agents."
|
5
5
|
authors = ["Gnosis"]
|
6
6
|
readme = "README.md"
|
@@ -32,7 +32,7 @@ tabulate = "^0.9.0"
|
|
32
32
|
types-pytz = "^2024.1.0.20240203"
|
33
33
|
google-cloud-secret-manager = "^2.18.2"
|
34
34
|
langchain = { version = "^0.1.9", optional = true}
|
35
|
-
langchain-openai = { version = "^0.0.
|
35
|
+
langchain-openai = { version = "^0.0.5", optional = true}
|
36
36
|
google-api-python-client = { version = "2.95.0", optional = true}
|
37
37
|
subgrounds = "^1.8.1"
|
38
38
|
loguru = "^0.7.2"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|