Skip to content

Commit

Permalink
fix missing trace update
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Oct 23, 2024
1 parent f455f3e commit 248a12e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions prediction_market_agent_tooling/deploy/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,13 @@ def process_market(
self.update_langfuse_trace_by_market(market_type, market)
logger.info(f"Processing market {market.question=} from {market.url=}.")

answer: ProbabilisticAnswer | None
if verify_market and not self.verify_market(market_type, market):
logger.info(f"Market '{market.question}' doesn't meet the criteria.")
return None

answer = self.answer_binary_market(market)
answer = None
else:
answer = self.answer_binary_market(market)

processed_market = (
ProcessedMarket(answer=answer) if answer is not None else None
)
Expand Down

0 comments on commit 248a12e

Please sign in to comment.