Hey, thanks for your answer.
The agent outputs an action, here an integer between 0 and 2*n.
The action indicates the joint number (action/2) and the direction:
left if action%2 == 0 else, right.
The robot then rotates the concerned joint by alpha*direction were alpha is arbitrary and can be modified by user.