def adaptAgentObject(agent_object):
 agent = adaptAgent(LearningAgent)(Module(1, 1))
 agent.agent = agent_object
 return agent

def adaptAgentObject ( agent_object ) : agent = adaptAgent ( LearningAgent ) ( Module ( 1 , 1 ) ) agent . agent = agent_object return agent
return an object that adapts a pybrain agent to the rlglue interface .