Skip to content

Commit

Permalink
Add think thoroughly agent to run_agent.py (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored Apr 12, 2024
1 parent 9f76096 commit b753f9a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# type: ignore
import time
import typing as t
from datetime import timedelta
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)
from prediction_market_agent_tooling.tools.utils import utcnow

from prediction_market_agent.agents.crewai_subsequential_agent.crewai_agent_subquestions import (
from prediction_market_agent.agents.think_thoroughly_agent.think_thoroughly_agent import (
CrewAIAgentSubquestions,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,13 @@
from prediction_market_agent_tooling.markets.markets import MarketType
from prediction_market_agent_tooling.tools.utils import should_not_happen

from prediction_market_agent.agents.crewai_subsequential_agent.crewai_agent_subquestions import (
from prediction_market_agent.agents.think_thoroughly_agent.think_thoroughly_agent import (
CrewAIAgentSubquestions,
)
from prediction_market_agent.agents.utils import market_is_saturated


class DeployableThinkThoroughlyAgent(DeployableAgent):
# For cheaper credits at this experimental stage
def __init__(self) -> None:
super().__init__()

def pick_markets(self, markets: t.Sequence[AgentMarket]) -> t.Sequence[AgentMarket]:
# We simply pick 5 random markets to bet on
picked_markets: list[AgentMarket] = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from loguru import logger
from pydantic import BaseModel

from prediction_market_agent.agents.crewai_subsequential_agent.prompts import (
from prediction_market_agent.agents.think_thoroughly_agent.prompts import (
CREATE_OUTCOMES_FROM_SCENARIO_OUTPUT,
CREATE_OUTCOMES_FROM_SCENARIO_PROMPT,
FINAL_DECISION_PROMPT,
Expand Down
5 changes: 5 additions & 0 deletions prediction_market_agent/run_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,20 @@
from prediction_market_agent.agents.known_outcome_agent.deploy import (
DeployableKnownOutcomeAgent,
)
from prediction_market_agent.agents.think_thoroughly_agent.deploy import (
DeployableThinkThoroughlyAgent,
)


class RunnableAgent(str, Enum):
coinflip = "coinflip"
think_thoroughly = "think_thoroughly"
knownoutcome = "knownoutcome"


RUNNABLE_AGENTS = {
RunnableAgent.coinflip: DeployableCoinFlipAgent,
RunnableAgent.think_thoroughly: DeployableThinkThoroughlyAgent,
RunnableAgent.knownoutcome: DeployableKnownOutcomeAgent,
}

Expand Down

0 comments on commit b753f9a

Please sign in to comment.