Create an agent that performs tasks