Skip to content

Commit

Permalink
Added PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfior committed Mar 27, 2024
1 parent ba2105c commit dcf0de4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions prediction_market_agent/agents/known_outcome_agent/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ def pick_markets(self, markets: list[AgentMarket]) -> list[AgentMarket]:
# Assume very high probability markets are already known, and have
# been correctly bet on, and therefore the value of betting on them
# is low.
if not market_is_saturated(market=market):
if not has_question_event_happened_in_the_past(
model=self.model, question=market.question
):
# event happened
continue

if not market_is_saturated(
market=market
) and has_question_event_happened_in_the_past(
model=self.model, question=market.question
):
answer = get_known_outcome(
model=self.model,
question=market.question,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def has_known_outcome(self) -> bool:
- If the event has not yet finished, return 0
- If you are not sure, return -1
Answer with the single prompt only, and nothing else.
Answer with the single 1, 0 or -1 only, and nothing else.
[QUESTION]
"{question}"
Expand Down

0 comments on commit dcf0de4

Please sign in to comment.