fetchai / agents-tac

Competition and Agent Frameworks for the Trading Agents Competition
https://fetchai.github.io/agents-tac
Apache License 2.0
28 stars 8 forks source link

Create a way to directly spin up an agent for interacting with it #314

Closed DavidMinarsch closed 5 years ago

DavidMinarsch commented 5 years ago

Is your feature request related to a problem? Please describe. Currently, we do not help the user to just spin up an agent on its own.

Describe the solution you'd like Something like this:

from tac.agents.v1.examples.baseline import BaselineAgent
from tac.agents.v1.examples.strategy import BaselineStrategy
from tac.platform.protocol import GameData

strategy = BaselineStrategy()
agent = BaselineAgent(name='my_agent', oef_addr='127.0.0.1', oef_port=10000,strategy=strategy)

game_data = GameData(agent.crypto.public_key, agent.crypto, 100.0, [2,2,2,2], [50.0, 25.0, 20.0, 5.0], 2, 4, 0.01, {agent.crypto.public_key : 'my_agent', 'another_agent_pbk' : 'another_agent' }, {'good_1' : 'good_1', 'good_2' : 'good_2', 'good_3' : 'good_3', 'good_4' : 'good_4'})
agent.game_instance.init(game_data, agent.crypto.public_key)

Describe alternatives you've considered None

Additional context N/A