Skip to content

Commit

Permalink
Don't allow Stop in NFT agents (#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored Jan 24, 2025
1 parent 7883045 commit 506d4d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prediction_market_agent/agents/microchain_agent/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class DeployableMicrochainAgentAbstract(DeployableAgent, metaclass=abc.ABCMeta):
max_iterations: int | None = 50
import_actions_from_memory = 0
sleep_between_iterations = 0
allow_stop: bool = True
identifier: AgentIdentifier
functions_config: FunctionsConfig

Expand Down Expand Up @@ -77,7 +78,7 @@ def build_agent(self, market_type: MarketType) -> Agent:
market_type=market_type,
model=self.model,
unformatted_system_prompt=unformatted_system_prompt,
allow_stop=True,
allow_stop=self.allow_stop,
long_term_memory=self.long_term_memory,
keys=APIKeys(),
functions_config=self.functions_config,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
class DeployableAgentNFTGameAbstract(DeployableMicrochainAgentAbstract):
# Agent configuration
sleep_between_iterations = 15
allow_stop = False
import_actions_from_memory = 100
functions_config = FunctionsConfig(
common_functions=True,
Expand Down

0 comments on commit 506d4d1

Please sign in to comment.