human
Complete this python program:
def adaptAgent(agent_klass):
assistant
#Here is the Python code you requested.

    """Return a factory function that instantiates a pybrain agent and adapts
    it to the rlglue framework interface.
    :type   agent_klass:    subclass of some pybrain agent
    :key  agent_klass:    Some class that is to be adapted to the rlglue
    framework
    """
    def inner(*args, **kwargs):
        return RlglueAgentAdapter(agent_klass, *args, **kwargs)
    return inner