Skip to content

Commit

Permalink
Bump PMAT, prophet, and remove dead code (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored Nov 21, 2024
1 parent c9ddb44 commit a785d76
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 216 deletions.
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ def post(self, tweet: str | None, reasoning_reply_tweet: str | None) -> None:

if __name__ == "__main__":
agent = DeployableSocialMediaAgent()
agent.deploy_local(market_type=MarketType.OMEN, sleep_time=540, timeout=180)
agent.deploy_local(market_type=MarketType.OMEN, sleep_time=540, run_time=180)
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ def get_betting_strategy(self, market: AgentMarket) -> BettingStrategy:

if __name__ == "__main__":
agent = DeployableThinkThoroughlyAgent(
place_trades=False, store_prediction=False, store_trades=False
place_trades=False, store_predictions=False, store_trades=False
)
agent.deploy_local(
market_type=MarketType.OMEN,
sleep_time=540,
timeout=180,
run_time=180,
)
16 changes: 0 additions & 16 deletions prediction_market_agent/ai_models/abstract_ai_models.py

This file was deleted.

68 changes: 0 additions & 68 deletions prediction_market_agent/ai_models/llama_ai_models.py

This file was deleted.

95 changes: 0 additions & 95 deletions prediction_market_agent/ai_models/openai_ai_models.py

This file was deleted.

2 changes: 1 addition & 1 deletion prediction_market_agent/tools/web_scrape/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def fetch_html(url: str, timeout: int) -> Response:


@observe()
@db_cache(max_age=timedelta(days=1))
@db_cache(max_age=timedelta(days=1), ignore_args=["timeout"])
def web_scrape(url: str, timeout: int = 10) -> str:
"""
Taken from agentcoinorg/predictionprophet
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ poetry = "^1.7.1"
poetry-plugin-export = "^1.6.0"
functions-framework = "^3.5.0"
cron-validator = "^1.0.8"
prediction-market-agent-tooling = { version = "0.56.3", extras = ["langchain", "google"] }
prediction-market-agent-tooling = { version = "^0.57.0", extras = ["langchain", "google"] }
pydantic-settings = "^2.1.0"
autoflake = "^2.2.1"
isort = "^5.13.2"
Expand Down
2 changes: 1 addition & 1 deletion scripts/agent_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def predict(
) -> None:
agent = AgentClass(
place_trades=False,
store_prediction=False,
store_predictions=False,
store_trades=False,
enable_langfuse=enable_langfuse,
)
Expand Down
27 changes: 0 additions & 27 deletions tests/ai_models/test_llama_ai_models.py

This file was deleted.

0 comments on commit a785d76

Please sign in to comment.