prediction-market-agent-tooling 0.66.0.dev788__py3-none-any.whl → 0.66.0.dev791__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/deploy/agent.py +2 -1
- prediction_market_agent_tooling/markets/data_models.py +15 -4
- {prediction_market_agent_tooling-0.66.0.dev788.dist-info → prediction_market_agent_tooling-0.66.0.dev791.dist-info}/METADATA +1 -1
- {prediction_market_agent_tooling-0.66.0.dev788.dist-info → prediction_market_agent_tooling-0.66.0.dev791.dist-info}/RECORD +7 -7
- {prediction_market_agent_tooling-0.66.0.dev788.dist-info → prediction_market_agent_tooling-0.66.0.dev791.dist-info}/LICENSE +0 -0
- {prediction_market_agent_tooling-0.66.0.dev788.dist-info → prediction_market_agent_tooling-0.66.0.dev791.dist-info}/WHEEL +0 -0
- {prediction_market_agent_tooling-0.66.0.dev788.dist-info → prediction_market_agent_tooling-0.66.0.dev791.dist-info}/entry_points.txt +0 -0
@@ -373,7 +373,8 @@ class DeployablePredictionAgent(DeployableAgent):
|
|
373
373
|
binary_answer = self.answer_binary_market(market)
|
374
374
|
return (
|
375
375
|
CategoricalProbabilisticAnswer.from_probabilistic_answer(
|
376
|
-
binary_answer
|
376
|
+
binary_answer,
|
377
|
+
market.outcomes,
|
377
378
|
)
|
378
379
|
if binary_answer is not None
|
379
380
|
else None
|
@@ -15,6 +15,10 @@ from prediction_market_agent_tooling.gtypes import (
|
|
15
15
|
Probability,
|
16
16
|
)
|
17
17
|
from prediction_market_agent_tooling.logprobs_parser import FieldLogprobs
|
18
|
+
from prediction_market_agent_tooling.markets.omen.omen import (
|
19
|
+
OMEN_FALSE_OUTCOME,
|
20
|
+
OMEN_TRUE_OUTCOME,
|
21
|
+
)
|
18
22
|
from prediction_market_agent_tooling.tools.utils import DatetimeUTC, check_not_none
|
19
23
|
|
20
24
|
|
@@ -142,13 +146,20 @@ class CategoricalProbabilisticAnswer(BaseModel):
|
|
142
146
|
@staticmethod
|
143
147
|
def from_probabilistic_answer(
|
144
148
|
answer: ProbabilisticAnswer,
|
149
|
+
market_outcomes: Sequence[OutcomeStr] | None = None,
|
145
150
|
) -> "CategoricalProbabilisticAnswer":
|
146
151
|
return CategoricalProbabilisticAnswer(
|
147
152
|
probabilities={
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
153
|
+
(
|
154
|
+
OMEN_TRUE_OUTCOME
|
155
|
+
if market_outcomes and OMEN_TRUE_OUTCOME in market_outcomes
|
156
|
+
else OutcomeStr(YES_OUTCOME_LOWERCASE_IDENTIFIER)
|
157
|
+
): answer.p_yes,
|
158
|
+
(
|
159
|
+
OMEN_FALSE_OUTCOME
|
160
|
+
if market_outcomes and OMEN_FALSE_OUTCOME in market_outcomes
|
161
|
+
else OutcomeStr(NO_OUTCOME_LOWERCASE_IDENTIFIER)
|
162
|
+
): Probability(1 - answer.p_yes),
|
152
163
|
},
|
153
164
|
confidence=answer.confidence,
|
154
165
|
reasoning=answer.reasoning,
|
@@ -26,7 +26,7 @@ prediction_market_agent_tooling/benchmark/utils.py,sha256=xQd7p9H08-OtN3iC4QT2i9
|
|
26
26
|
prediction_market_agent_tooling/chains.py,sha256=1qQstoqXMwqwM7k-KH7MjMz8Ei-D83KZByvDbCZpAxs,116
|
27
27
|
prediction_market_agent_tooling/config.py,sha256=-kJfdDr-m0R-tGZ1KRI-hJJk0mXDt142CAlvwaJ2N2I,11778
|
28
28
|
prediction_market_agent_tooling/data_download/langfuse_data_downloader.py,sha256=VY23h324VKIVkevj1B1O-zL1eEp9AElmcfn6SwYDUSc,14246
|
29
|
-
prediction_market_agent_tooling/deploy/agent.py,sha256=
|
29
|
+
prediction_market_agent_tooling/deploy/agent.py,sha256=HLK5rf38PWgKydc_aIUck-wYzWQUnPdhto3Evoq82Lg,26282
|
30
30
|
prediction_market_agent_tooling/deploy/agent_example.py,sha256=yS1fWkHynr9MYGNOM2WsCnRWLPaffY4bOc6bIudrdd4,1377
|
31
31
|
prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=YYayGjTKW02d3BUavJ8M3NmFk41oldEM3FHbwppZGRM,17184
|
32
32
|
prediction_market_agent_tooling/deploy/constants.py,sha256=Qe9cllgsGMkecfmbhXoFkPxuJyG6ATsrT87RF9SmPWM,249
|
@@ -44,7 +44,7 @@ prediction_market_agent_tooling/markets/agent_market.py,sha256=nMIa6BkoUWdiz12kF
|
|
44
44
|
prediction_market_agent_tooling/markets/base_subgraph_handler.py,sha256=7RaYO_4qAmQ6ZGM8oPK2-CkiJfKmV9MxM-rJlduaecU,1971
|
45
45
|
prediction_market_agent_tooling/markets/blockchain_utils.py,sha256=6REOt70v3vnzmtCbuRcUTdwt6htXy9nAfNkLOH3Bv1U,2987
|
46
46
|
prediction_market_agent_tooling/markets/categorize.py,sha256=orLZlPaHgeREU66m1amxfWikeV77idV4sZDPB8NgSD0,1300
|
47
|
-
prediction_market_agent_tooling/markets/data_models.py,sha256=
|
47
|
+
prediction_market_agent_tooling/markets/data_models.py,sha256=Cua28jBom3lBuOifwQLEWb1MrKq2epnA5qognaV5VRM,8006
|
48
48
|
prediction_market_agent_tooling/markets/manifold/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
49
49
|
prediction_market_agent_tooling/markets/manifold/api.py,sha256=tWnjuqvU8pcCuja2B_ynHeds1iiEFc6QWHjeSO_GSxY,7676
|
50
50
|
prediction_market_agent_tooling/markets/manifold/data_models.py,sha256=3z1gFbPMEgCDGqeH-IK8wcvqmIHgLdZX8C2M1UQ7iDw,6740
|
@@ -124,8 +124,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=yuW8iPPtcpP4eLH2nORMD
|
|
124
124
|
prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
|
125
125
|
prediction_market_agent_tooling/tools/utils.py,sha256=RlWSlzS2LavMIWrpwn1fevbzgPZruD4VcXTa-XxjWnE,7343
|
126
126
|
prediction_market_agent_tooling/tools/web3_utils.py,sha256=0r26snqCXGdLKCWA8jpe7DV8x2NPYWZwOy4oyKyDCYk,12615
|
127
|
-
prediction_market_agent_tooling-0.66.0.
|
128
|
-
prediction_market_agent_tooling-0.66.0.
|
129
|
-
prediction_market_agent_tooling-0.66.0.
|
130
|
-
prediction_market_agent_tooling-0.66.0.
|
131
|
-
prediction_market_agent_tooling-0.66.0.
|
127
|
+
prediction_market_agent_tooling-0.66.0.dev791.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
|
128
|
+
prediction_market_agent_tooling-0.66.0.dev791.dist-info/METADATA,sha256=UAUwDR0E0lNWDUcntavNgEX5gQEWBo5Jpu3kF0lA3xo,8741
|
129
|
+
prediction_market_agent_tooling-0.66.0.dev791.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
130
|
+
prediction_market_agent_tooling-0.66.0.dev791.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
|
131
|
+
prediction_market_agent_tooling-0.66.0.dev791.dist-info/RECORD,,
|
File without changes
|
File without changes
|