tac.agents.participant.v1 package¶
Subpackages¶
- tac.agents.participant.v1.base package
- Submodules
- tac.agents.participant.v1.base.actions module
- tac.agents.participant.v1.base.dialogues module
- tac.agents.participant.v1.base.game_instance module
- tac.agents.participant.v1.base.handlers module
- tac.agents.participant.v1.base.helpers module
- tac.agents.participant.v1.base.interfaces module
- tac.agents.participant.v1.base.negotiation_behaviours module
- tac.agents.participant.v1.base.price_model module
- tac.agents.participant.v1.base.reactions module
- tac.agents.participant.v1.base.states module
- tac.agents.participant.v1.base.stats_manager module
- tac.agents.participant.v1.base.strategy module
- tac.agents.participant.v1.base.transaction_manager module
- Module contents
- tac.agents.participant.v1.examples package
Submodules¶
tac.agents.participant.v1.agent module¶
This module contains a base implementation of an agent for TAC.
-
class
tac.agents.participant.v1.agent.
ParticipantAgent
(name: str, oef_addr: str, oef_port: int, strategy: tac.agents.participant.v1.base.strategy.Strategy, expected_version_id: str, agent_timeout: float = 1.0, max_reactions: int = 100, services_interval: int = 10, pending_transaction_timeout: int = 30, dashboard: Optional[tac.gui.dashboards.agent.AgentDashboard] = None, private_key_pem: Optional[str] = None, debug: bool = False)¶ Bases:
aea.agent.Agent
The participant agent class implements a base agent for TAC.
-
act
() → None¶ Perform the agent’s actions.
- Returns
None
-
property
game_instance
¶ Get the game instance.
-
react
() → None¶ React to incoming events.
- Returns
None
-
setup
() → None¶ Set up the agent.
-
start
(rejoin: bool = False) → None¶ Start the agent.
- Returns
None
-
stop
() → None¶ Stop the agent.
- Returns
None
-
teardown
() → None¶ Tear down the agent.
-
update
() → None¶ Update the state of the agent.
- Returns
None
-
Module contents¶
This module contains the modules of the participant agent v1.