prediction-market-agent-tooling 0.65.3.dev683__py3-none-any.whl → 0.65.5__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.
@@ -222,6 +222,7 @@ class DeployablePredictionAgent(DeployableAgent):
222
222
  self.have_bet_on_market_since = observe()(self.have_bet_on_market_since) # type: ignore[method-assign]
223
223
  self.verify_market = observe()(self.verify_market) # type: ignore[method-assign]
224
224
  self.answer_binary_market = observe()(self.answer_binary_market) # type: ignore[method-assign]
225
+ self.answer_categorical_market = observe()(self.answer_categorical_market) # type: ignore[method-assign]
225
226
  self.process_market = observe()(self.process_market) # type: ignore[method-assign]
226
227
 
227
228
  def update_langfuse_trace_by_market(
@@ -321,7 +322,7 @@ class DeployablePredictionAgent(DeployableAgent):
321
322
  def fetch_categorical_markets(self) -> bool:
322
323
  # Check if the subclass has implemented the answer_categorical_market method, if yes, fetch categorical markets as well.
323
324
  if (
324
- self.answer_categorical_market.__func__ # type: ignore[attr-defined] # This works just fine, but mypy doesn't know about it for some reason.
325
+ self.answer_categorical_market.__wrapped__.__func__ # type: ignore[attr-defined] # This works just fine, but mypy doesn't know about it for some reason.
325
326
  is not DeployablePredictionAgent.answer_categorical_market
326
327
  ):
327
328
  return True
@@ -238,6 +238,7 @@ class OmenSubgraphHandler(BaseSubgraphHandler):
238
238
  collateral_token_address_in: tuple[ChecksumAddress, ...] | None,
239
239
  category: str | None,
240
240
  include_categorical_markets: bool = False,
241
+ include_scalar_markets: bool = False,
241
242
  ) -> dict[str, t.Any]:
242
243
  where_stms: dict[str, t.Any] = {
243
244
  "title_not": None,
@@ -247,6 +248,10 @@ class OmenSubgraphHandler(BaseSubgraphHandler):
247
248
  where_stms["outcomeSlotCount"] = 2
248
249
  where_stms["outcomes"] = OMEN_BINARY_MARKET_OUTCOMES
249
250
 
251
+ if not include_scalar_markets:
252
+ # scalar markets can be identified
253
+ where_stms["outcomes_not"] = None
254
+
250
255
  where_stms["question_"] = self.get_omen_question_filters(
251
256
  question_id=question_id,
252
257
  opened_before=question_opened_before,
@@ -413,6 +418,7 @@ class OmenSubgraphHandler(BaseSubgraphHandler):
413
418
  ) = SAFE_COLLATERAL_TOKENS_ADDRESSES,
414
419
  category: str | None = None,
415
420
  include_categorical_markets: bool = True,
421
+ include_scalar_markets: bool = False,
416
422
  ) -> t.List[OmenMarket]:
417
423
  """
418
424
  Complete method to fetch Omen markets with various filters, use `get_omen_markets_simple` for simplified version that uses FilterBy and SortBy enums.
@@ -438,6 +444,7 @@ class OmenSubgraphHandler(BaseSubgraphHandler):
438
444
  collateral_token_address_in=collateral_token_address_in,
439
445
  category=category,
440
446
  include_categorical_markets=include_categorical_markets,
447
+ include_scalar_markets=include_scalar_markets,
441
448
  )
442
449
 
443
450
  # These values can not be set to `None`, but they can be omitted.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: prediction-market-agent-tooling
3
- Version: 0.65.3.dev683
3
+ Version: 0.65.5
4
4
  Summary: Tools to benchmark, deploy and monitor prediction market agents.
5
5
  Author: Gnosis
6
6
  Requires-Python: >=3.10,<3.13
@@ -24,7 +24,7 @@ prediction_market_agent_tooling/benchmark/benchmark.py,sha256=KwMZzwise3sgmhdjw7
24
24
  prediction_market_agent_tooling/benchmark/utils.py,sha256=xQd7p9H08-OtN3iC4QT2i9bkUTmrXa6rxGXeg9yMhgU,2986
25
25
  prediction_market_agent_tooling/chains.py,sha256=1qQstoqXMwqwM7k-KH7MjMz8Ei-D83KZByvDbCZpAxs,116
26
26
  prediction_market_agent_tooling/config.py,sha256=UyhK6u261tBLVsRwvXJm9C0wy6UrUpfAKH6xk4CSfk8,11535
27
- prediction_market_agent_tooling/deploy/agent.py,sha256=kxfJNfuvGJ2LFReI-PCyjGuubZKIrPEYiyphaS6eKcM,25476
27
+ prediction_market_agent_tooling/deploy/agent.py,sha256=ddFvBUhB_WVWtuUGkiZNKBME4Hd3AdquVv588c1rpu0,25602
28
28
  prediction_market_agent_tooling/deploy/agent_example.py,sha256=yS1fWkHynr9MYGNOM2WsCnRWLPaffY4bOc6bIudrdd4,1377
29
29
  prediction_market_agent_tooling/deploy/betting_strategy.py,sha256=YYayGjTKW02d3BUavJ8M3NmFk41oldEM3FHbwppZGRM,17184
30
30
  prediction_market_agent_tooling/deploy/constants.py,sha256=Qe9cllgsGMkecfmbhXoFkPxuJyG6ATsrT87RF9SmPWM,249
@@ -60,7 +60,7 @@ prediction_market_agent_tooling/markets/omen/omen.py,sha256=jyoAV-E_Qcbqqs4oi7ju
60
60
  prediction_market_agent_tooling/markets/omen/omen_constants.py,sha256=D9oflYKafLQiHYtB5sScMHqmXyzM8JP8J0yATmc4SQQ,233
61
61
  prediction_market_agent_tooling/markets/omen/omen_contracts.py,sha256=f0dKbdVM2OUTSpkCSZdPtKqeckS2c48j3rjnK8oD3wE,29716
62
62
  prediction_market_agent_tooling/markets/omen/omen_resolving.py,sha256=05x-Yb0bUsJSEtsWQLqSHyl4HqLChksIb64OGygN-Rw,10226
63
- prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=ONwcLinp4uzlvLGmDDtGcE7_zrFoDVBTNshrYtw3ffk,39678
63
+ prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py,sha256=149T_tJxK2GFnGCulOlGr2Mwiaa7sa74E4lqYsuCv68,39962
64
64
  prediction_market_agent_tooling/markets/polymarket/api.py,sha256=UZ4_TG8ceb9Y-qgsOKs8Qiv8zDt957QkT8IX2c83yqo,4800
65
65
  prediction_market_agent_tooling/markets/polymarket/data_models.py,sha256=U1SXTz93FIG3GO1h5BJWSt1hPKn_YAMBeZ3k8IS-ook,4552
66
66
  prediction_market_agent_tooling/markets/polymarket/data_models_web.py,sha256=wCwpZ8Kppy8JG_1HZDfEK_Gg1g1sL7NCbGoPeTeMSko,12756
@@ -116,8 +116,8 @@ prediction_market_agent_tooling/tools/tokens/usd.py,sha256=yuW8iPPtcpP4eLH2nORMD
116
116
  prediction_market_agent_tooling/tools/transaction_cache.py,sha256=K5YKNL2_tR10Iw2TD9fuP-CTGpBbZtNdgbd0B_R7pjg,1814
117
117
  prediction_market_agent_tooling/tools/utils.py,sha256=Jzpck3_QwShhejhgbAhmNxPSOPQJssBQep0eVemVjZ4,7064
118
118
  prediction_market_agent_tooling/tools/web3_utils.py,sha256=zRq-eeBGWt8uUGN9G_WfjmJ0eVvO8aWE9S0Pz_Y6AOA,12342
119
- prediction_market_agent_tooling-0.65.3.dev683.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
120
- prediction_market_agent_tooling-0.65.3.dev683.dist-info/METADATA,sha256=F_SWJLJtFy6V7HXxQS9f5-ivt8UXclG_4lkGb5rcCwQ,8741
121
- prediction_market_agent_tooling-0.65.3.dev683.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
122
- prediction_market_agent_tooling-0.65.3.dev683.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
123
- prediction_market_agent_tooling-0.65.3.dev683.dist-info/RECORD,,
119
+ prediction_market_agent_tooling-0.65.5.dist-info/LICENSE,sha256=6or154nLLU6bELzjh0mCreFjt0m2v72zLi3yHE0QbeE,7650
120
+ prediction_market_agent_tooling-0.65.5.dist-info/METADATA,sha256=tPU9fNidxnBbaRgIYRy-e_lt_NL65wOg00vONLBnQOo,8734
121
+ prediction_market_agent_tooling-0.65.5.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
122
+ prediction_market_agent_tooling-0.65.5.dist-info/entry_points.txt,sha256=m8PukHbeH5g0IAAmOf_1Ahm-sGAMdhSSRQmwtpmi2s8,81
123
+ prediction_market_agent_tooling-0.65.5.dist-info/RECORD,,